Mailinglist Archive: opensuse-bugs (3094 mails)

< Previous Next >
[Bug 852482] massive bind mounts makes /sbin/init eat memory
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 18 Jun 2015 13:17:39 +0000
  • Message-id: <>

Franck Bui <fbui@xxxxxxxx> changed:

What |Removed |Added
CC| |fbui@xxxxxxxx

--- Comment #3 from Franck Bui <fbui@xxxxxxxx> ---
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.
< Previous Next >