Virtual memory on Linux doesn't add up?

Solution 1:

First off, shared memory is not really (?) counted correctly by top. Second, yes, a program asks for rights to memory, and then uses it, but it may never touch any, and the OS knows that. No problem at all for every app to have allocated all the ram and swap, as long as they don't try to use it :-D > We are not in a Mac OS Classic world (in fact, that is how the old Ram Doubler worked, letting you use the difference between allocated and used).