-
Notifications
You must be signed in to change notification settings - Fork 21
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
1GB memory usage per HM-SMR zoned disk mounted #9
Comments
I've since had to switch to btrfs, but I'd love to switch back to f2fs, since these drives quite buggy with btrfs. I've also had a coworker verify that on his system, with these particular drives (ST14000NM0007-2G), mounting them when they are formatted as f2fs does consume ~1GB of RAM per drive. |
Hi,
May I ask to capture this?
# cat /sys/kernel/debug/f2fs/status
Thanks,
…On Wed, Sep 14, 2022 at 8:28 AM William Allen ***@***.***> wrote:
I've since had to switch to btrfs, but I'd love to switch back to f2fs,
since these drives quite buggy with btrfs. I've also had a coworker verify
that on his system, with these particular drives (ST14000NM0007-2G),
mounting them when they are formatted as f2fs does consume ~1GB of RAM per
drive.
With none mounted:
[image: 1714a881e301fc4f]
<https://user-images.githubusercontent.com/8990544/190085945-ad347e3d-6e8a-44c0-950e-1329849fa904.png>
With some of them mounted:
[image: 1714a88523bb4308]
<https://user-images.githubusercontent.com/8990544/190086906-8699b20c-c466-4dd1-8d9b-0cb0043ef3c2.png>
—
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE4EPAUTEWFJ4OPPA7LPL2DV6F5BPANCNFSM54SRBD3Q>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I just had a btrfs formatted drive with some data corruption, so I formatted it as f2fs and here is the output of /sys/kernel/debug/f2fs/status after mounting it:
|
@jaegeuk I've been trying to troubleshoot this further, and can only determine that the increased memory usage is being utilized by cache:
These aren't the default mount options, but this is one of many things I've been trying, in order to see if I can narrow down a particular culprit:
With the above, only these additional processes are spawned when I mount the HM-SMR volume:
I also have a slabtop diff from before and after mounting: https://gist.github.com/wallentx/a5e98371f8cc2c42084b86bbd99253fc#file-slabtop-diff |
I experience somewhat the same with a much smaller partition sizes, on a relatively small NAS with 512MB RAM.
side story: https://archlinuxarm.org/forum/viewtopic.php?f=57&t=16534&p=71416#p71416 |
I've spent a few days trying to figure out where my memory consumption was going to, and I finally found that for each f2fs formatted zoned disk I mount, 1GB of RAM becomes "used", though I can't find any evidence as to what exactly this is attributed to.
I've even mounted the drives as r/o to make sure it wasn't due to some write cache. Is this to be expected?
I'm running 5.18.12-arch1-1, and have 42 zoned disks mounted that are formatted with f2fs.
The text was updated successfully, but these errors were encountered: