Linux-mtd Archive on lore.kernel.org
 help / color / Atom feed
* UBIFS Image Reserved More Space
@ 2020-01-13 10:29 jaymin.dabhi
  0 siblings, 0 replies; only message in thread
From: jaymin.dabhi @ 2020-01-13 10:29 UTC (permalink / raw)
  To: linux-mtd

There is a ubifs.img has been created with following commands and 
configurations:


mkfs.ubifs -r rfs_out_dir -m 2048 -e 126976 -c 2047 -F -o 
rfs_out_dir/ubifs.img

ubinize -o rfs_out_dir/ubifs -p 131072 -m 2048 -s 2048 
rfs_out_dir/ubicfg.ini


>> ubicfg.ini

[ubifs]
mode=ubi
image=ubifs.img
vol_id=0
vol_type=dynamic
vol_name=rootfs
vol_flags=autoresize


There is 1GB RAM on the board.

>> Output of top command:

Tasks:  43 total,   1 running,  42 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  1.0 sy,  0.0 ni, 98.7 id,  0.0 wa,  0.2 hi,  0.0 si,  
0.0 st
KiB Mem :   703572 total,   649392 free,    20528 used,    33652 
buff/cache
KiB Swap:        0 total,        0 free,        0 used.   671578 avail 
Mem

>> Output of free command:

# free -m
               total        used        free      shared  buff/cache   
available
Mem:            687          19         634           0          32      
    655
Swap:             0           0           0

>> Output of df command:

# df -h
Filesystem                Size      Used Available Use% Mounted on
ubi0:rootfs             107.9M     69.8M     38.1M  65% /
devtmpfs                343.5M         0    343.5M   0% /dev
tmpfs                   343.5M     68.0K    343.5M   0% /dev/shm
tmpfs                   343.5M    160.0K    343.4M   0% /run
tmpfs                   343.5M         0    343.5M   0% /sys/fs/cgroup
tmpfs                   343.5M     12.0K    343.5M   0% /tmp
tmpfs                   343.5M         0    343.5M   0% /webSvr/logs
tmpfs                   343.5M     16.0K    343.5M   0% /var/lib/pulse
tmpfs                   343.5M     24.0K    343.5M   0% /var/run
tmpfs                   343.5M         0    343.5M   0% /var/tmp
tmpfs                    68.7M         0     68.7M   0% /run/user/0


The above commands indicate that ~337MB has been reserved somewhere.

Is my UBIFS keeping it reserved?
How to know why this much memory has been reserved?

Also, how can I get more space in UBIFS?

Thanks in advance.

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-13 10:29 UBIFS Image Reserved More Space jaymin.dabhi

Linux-mtd Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-mtd/0 linux-mtd/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-mtd linux-mtd/ https://lore.kernel.org/linux-mtd \
		linux-mtd@lists.infradead.org
	public-inbox-index linux-mtd

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.infradead.lists.linux-mtd


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git