Linked by Eugenia Loli-Queru on Fri 7th Mar 2008 21:38 UTC, submitted by SReilly
Thread beginning with comment 304019
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
That's why I used the phrase 'reference set.' Apps can take tons of memory, but only really touch a little bit of it. "Working Set" is probably the NT equivalent of what you called "Resident Memory." You're right about how to measure the true memory cost of a program... force the OS to drop all of its pages and see what gets pulled back in by the program.
This is really what people should be concerned about when they complain about the bloat of a program. It might have tons of code (to support many features), but if it is well-designed and modular and compiled with a good profile-guided toolchain, the actual cost of all those features is not too bad unless someone is using everything at once.
but if it is well-designed and modular and compiled with a good profile-guided toolchain, the actual cost of all those features is not too bad
Once upon a time there lived a beautiful princess in a lovely castle, and the sky above the castle was always blue, except for when wispy clouds would float overhead and draw pictures for her. And the VM on her computer always knew the right things to put into swap, and the right time to bring them back into ram, and when it didn't, the application programmers and kernel coders knew how to fix that. And they all lived happily ever after. :-)
Edited 2008-03-10 01:30 UTC






Member since:
2005-07-24
I mean that swap muddies the waters when reporting memory usage numbers. I always wonder what people mean when they say "Application X uses Y MB of memory". (Windows users, for some reason, seem particularly smug in their confidence in the absolute numbers they report.) Shared memory and swap make it very difficult to report absolute numbers in a meaningful way.
As it happens, I *was* running with swap turned off throughout my whole Epiphany session, by accident. I had it turned off for a completely different experimental reason, and then forgot to turn it back on again. I don't believe that swap is bad and leave it turned off as some people apparently do. As Andrew Morton said, you really don't want megabytes and megabytes of bloatyapp floating around in your ram.
With swap turned off, "resident - shared" actually means something. If there is stuff in swap, you really can't know what "resident" truly means. On the other hand, one could make an argument that having swap turned on, and measuring when the system is under memory pressure, might give a more meaningful representation of the true cost of the app under real life conditions. If it has a lot of stuff that the OS can just swap out once and forget about, that lowers its impact.
At any rate, I always feel conspicuous when I report memory usage numbers, because the real answer lies out there in the gestalt somewhere.
Edit: Oops! I was responding as if you had replied to this post I just made a few minutes ago:
http://www.osnews.com/thread?304014
But aside from the Epiphany reference, I think it is still appropriate.
Edited 2008-03-09 22:35 UTC