http://bugzilla.suse.com/show_bug.cgi?id=852482
http://bugzilla.suse.com/show_bug.cgi?id=852482#c3
Franck Bui changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fbui@suse.com
--- Comment #3 from Franck Bui ---
Indeed 300MB for 1000 entries seems excessive. I've checked the sizeof the main
structure used to represent a mount unit (struct Mount) and it's 1488 bytes.
There're probably more structures involve during the process but the memory
consumption per mount seem too high in your case.
I tried to reproduce but the memory consumption was only about 12.5MB (for 1000
mounts) in my case...
Regarding the release of memory, I checked that systemd frees the allocated
structures when unmounting. I also verified there's no memleak by
mounting/unmouting the same directory in an infinite loop and the mem
consumption stood stable.
I don't know why the kernel reports the old memory consumption but you can
easily see the same behaviour with a trivial app which allocates a lot of
structures and releases them after.
--
You are receiving this mail because:
You are on the CC list for the bug.