Linked by Thom Holwerda on Tue 17th Nov 2009 16:13 UTC
Windows Microsoft's Professional Developers Conference is currently under way, and as usual, the technical fellows at Microsoft gave speeches about the deep architecture of Windows - in this case, Windows 7 of course. As it turns out, quite some seriously impressive changes have been made to the very core of Windows - all without breaking a single application. Thanks to BetaNews for summarising this technical talk so well.
Thread beginning with comment 395143
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: Arrggg!
by sbergman27 on Tue 17th Nov 2009 23:57 UTC in reply to "Arrggg!"
sbergman27
Member since:
2005-07-24

Why can't I just control the amount of memory it uses for cache?

I don't understand this. Any memory that is not being used right now for programs can be used for caching. And if programs suddenly have a need for more memory, that memory can simply be freed. Instantly. No disk activity required. Why would you *want* to limit what the kernel does with otherwise unused memory, which can be put to good use?

In the Linux world, we do have a bit of a conflict between those folks who think that programs' seldom-used pages should get swapped out to make more room for disk cache, and those who feel that program's pages are sacred, and should not be swapped out unless absolutely necessary. But that is a different issue.

Reply Parent Score: 4

RE[2]: Arrggg!
by sbenitezb on Wed 18th Nov 2009 03:02 in reply to "RE: Arrggg!"
sbenitezb Member since:
2005-07-22

We have enough memory in today computers that swapping is mostly unneeded. If you have more than 1GiB of memory and you do a fair use of your computer, you'll see most of the time the swap isn't needed at all. I have 1GiB and my KDE desktop uses no more than half most of the time with browser, mail client, chat client and torrent client. Any program that's using more than that is probably misbehaving and ought to be terminated. When you have swap, say double your RAM, and a program goes rogue, it will start consuming all available memory, and then the kernel will allocate all available swap to it. That's gigabytes of swapping until the OOM kicks in, producing a lot of disk thrashing and the normal slowdown. The disk IO is producing the feeling that you need a new computer. Hopefully, in a few years swap will be totally unnecessary.

Reply Parent Score: 1

RE[3]: Arrggg!
by cerbie on Wed 18th Nov 2009 09:42 in reply to "RE[2]: Arrggg!"
cerbie Member since:
2006-01-02

I doubt it will become unnecessary. We will need a fair paradigm shift, before that occurs, I think. Having more memory begets uses of more memory.

However, for general use cases, more RAM and no swap works great, on both Windows and Linux. Any process that can try to use up all my RAM deserves to be forcefully killed ;) .

Reply Parent Score: 2