User: Password:
|
|
Subscribe / Log in / New account

Memory overcommit

Memory overcommit

Posted Mar 11, 2011 7:10 UTC (Fri) by rvfh (subscriber, #31018)
In reply to: Memory overcommit by epa
Parent article: Delaying the OOM killer

Why use loads of swap space when I have 3GB of RAM to run a bunch of services?

A quick look at top:
Mem: 3095608k total, 2405948k used, 689660k free, 292560k buffers
Swap: 722920k total, 43508k used, 679412k free, 1034276k cached

So there are 689 MB of unused memory! Not to mention 1 GB+ of of cached stuff for the system to grab in case of need.

Now let's see the memory usage (top two):
238m 126m 26m /usr/bin/systemsettings
294m 95m 23m /usr/lib/firefox-3.6.14/firefox-bin

So the two main memory users (systemsettings!?!) have committed more than half a gig of RAM, but use less than a quarter (I know these numbers are not perfect, but the idea remains).

And you want me to get rid of overcommit???


(Log in to post comments)

Memory overcommit

Posted Mar 16, 2011 12:19 UTC (Wed) by epa (subscriber, #39769) [Link]

Isn't that the point? You have three gigabytes of RAM, more than enough to give every application all it needs and do so in a guaranteed way - not 'you can probably have this but you might be randomly killed later on depending on what else happens'.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds