Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#2419 - overlay reporting wrong size #8281

Closed
openwrt-bot opened this issue Aug 1, 2019 · 4 comments
Closed

FS#2419 - overlay reporting wrong size #8281

openwrt-bot opened this issue Aug 1, 2019 · 4 comments
Labels

Comments

@openwrt-bot
Copy link

CanadianJeff:

DEVICE: APU2 X86_64 SNAPSHOT FIRMWARE USED: http://downloads.openwrt.org/snapshots/targets/x86/64/openwrt-x86-64-combined-squashfs.img.gz FIRMWARE SHA256: cf0824377d5a8d9832f5e6f60c78f9ae2f6841d4b9cd3c57f9cfdf72e4f47e81 FIRMWARE DATE: Wed Jul 31 18:02:58 2019 FIRMWARE SIZE: 7146.8 KB

BusyBox v1.31.0 () built-in shell (ash)


| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -| || | | || || |
|
_____|| |
||||___||| |____|
|
| W I R E L E S S F R E E D O M

OpenWrt SNAPSHOT, r10641-1d2b2e744e

=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.

root@OpenWrt:/# df -hT
Filesystem Type Size Used Available Use% Mounted on
/dev/root squashfs 2.5M 2.5M 0 100% /rom
tmpfs tmpfs 1.9G 72.0K 1.9G 0% /tmp
/dev/loop0 f2fs 123.5M 65.6M 57.9M 53% /overlay
overlayfs:/overlay overlay 123.5M 65.6M 57.9M 53% /
/dev/mmcblk0p1 ext4 15.7M 4.3M 11.1M 28% /boot
/dev/mmcblk0p1 ext4 15.7M 4.3M 11.1M 28% /boot
tmpfs tmpfs 512.0K 0 512.0K 0% /dev
root@OpenWrt:/# find /overlay
/overlay
/overlay/upper
/overlay/upper/boot
/overlay/upper/etc
/overlay/upper/etc/board.json
/overlay/upper/etc/config
/overlay/upper/etc/config/network
/overlay/upper/etc/config/system
/overlay/upper/etc/config/dhcp
/overlay/upper/etc/config/dropbear
/overlay/upper/etc/config/firewall
/overlay/upper/etc/uci-defaults
/overlay/upper/etc/uci-defaults/10_migrate-shadow
/overlay/upper/etc/uci-defaults/12_network-generate-ula
/overlay/upper/etc/uci-defaults/13_fix_group_user
/overlay/upper/etc/uci-defaults/20_migrate-feeds
/overlay/upper/etc/uci-defaults/odhcpd.defaults
/overlay/upper/etc/dropbear
/overlay/upper/etc/dropbear/dropbear_rsa_host_key
/overlay/upper/etc/urandom.seed
/overlay/work
/overlay/work/work
/overlay/.fs_state
root@OpenWrt:/#

@openwrt-bot
Copy link
Author

yousong:

It's not immediately obvious to me what's wrong and what's the expected behavior. The report needs to be more clear on that.

@openwrt-bot
Copy link
Author

yousong:

Look at this report half a year later, it now occurs to me maybe it's about output of du -sh /overlay and Used column in output of df -hT. Will need to know how f2fs manages space.

@openwrt-bot
Copy link
Author

yousong:

Likely it's overprovision area reserved by f2fs for cleaner operation. mkfs.f2fs by default reserves 25 segments (50MB) for a partition of 128MB. Plus other spaces reserved for metadata and maangement, guess it's not too far from the output in the report.

@openwrt-bot
Copy link
Author

yousong:

Plus other spaces reserved for metadata and maangement, guess it's not too far from the output in the report.

The "plus" could be 1 segment for sb, 2 each for ckpt, sit, nat areas, 1 for ssa. 8 segments and 16MB in size.

The space reserved for cleaner and metadata etc. seems to be a de-facto requirement of f2fs design and implementation, not such room for tuning in my opinion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant