<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Mar 18, 2015 at 9:07 AM, Alison Chaiken <span dir="ltr"><<a href="mailto:alison@she-devel.com" target="_blank">alison@she-devel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">After reading about the 'minimal build' on the systemd wiki, I decided<br>
to experiment.<br>
<br>
0. WIth basically all options turned on, in a Fedora 21 Qemu, systemd<br>
used about 300 MB of memory according to 'sudo memstat -p 1'.<br>
<br>
1. With ./configure --disable-gtk-doc --disable-seccomp [&c.]<br>
<br>
In this case, 'memstat -p 1' says systemd uses about 119 MB of memory.<br></blockquote><div><br></div><div>memstat only reports *virtual* memory size, including mapped files and other things that only need the address space, but <i>not necessarily</i> occupy physical RAM or any other shared resources. Remember that each process has its own address space, it's not really a sparse resource... (So tools like `journalctl` might even show up as "using" more total memory than the system actually <i>has</i>.)</div><div><br></div><div>So the number is mostly meaningless if you're trying to determine actual resource usage. The "RSS" column in `ps u 1`, `pmap -x -p 1` or in htop describes it a bit better. Generally systemd-pid1 will be ~5 MB; journald tends to be the largest – it's 12 MB on my system [though in previous versions it used to grow to 50 or even 100 MB].</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>