<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><pre>On Sat, Dec 09, 2006 at 09:34:06PM +0000, Paulo J. Matos wrote:<br>><i> Probably it can't get more because the rest is
<br></i>><i> distributed by the other apps. Worse, all mem and swap seem to be in<br></i>><i> use:<br></i>><i> $ free -m<br></i>><i> total used free shared buffers cached<br>
</i>><i> Mem: 1011 993 18 0 4 57<br></i>><i> -/+ buffers/cache: 931 79<br></i>><i> Swap: 494 494 0<br></i>><i> <br></i>
><i> Why is this? Is there any known leak in 7.1? Is this normal?<br></i><br>This is an age old point of confusion - Unix-like systems don't<br>generally like leving memory free. Free memory is wasted money - if<br>you have the memory, you might as well do something useful with it.
<br><br>One obvious thing you can do with it is cache disk reads and write to<br>speed up the system. You have 1GiB of memory and free is showing that<br>your kernel has used 931MiB of that for buffer cache. Your memory is
<br>not used because of X11 at all. The kernel is caching data from disk.<br><br>Moreover, the swap is probably consumed because the kernel has chosen<br>to swap out applications that you weren't using. By doing this, it
<br>could make more room for caching disk access.<br><br>This is all confirmed by your explanation that you left some large<br>compilation jobs running over night. This means all of your user<br>applications were idle, and so swapped to disk, and that gcc was
<br>eading lots and lots of different files that the kernel was caching.<br><br>You're seeing totally normal behavior that's just keeping your system<br>running better!</pre></blockquote><div><br>Your point is correct, but in this case, you are wrong. If you actually look at the data given, you will see that only 57 MB of RAM is actually being used as cache. Most of the rest is being used by applications. Note also in his "ps aux" output that X is listed as using 666 MB of RAM and considerably more virtual memory. This is NOT right. It should be using considerably less, especially if there aren't any applications open.
<br></div><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><pre>-- <br>Ross Vandegrift<br><a href="http://lists.freedesktop.org/mailman/listinfo/xorg">
ross at kallisti.us</a><br><br>"The good Christian should beware of mathematicians, and all those who<br>make empty prophecies. The danger already exists that the mathematicians<br>have made a covenant with the devil to darken the spirit and to confine
<br>man in the bonds of Hell."<br> --St. Augustine, De Genesi ad Litteram, Book II, xviii, 37</pre></blockquote>