Re: why swap at all?
From: Satoshi Oshima
Date: Wed May 26 2004 - 08:08:13 EST
Anthony DiSante <orders@xxxxxxxxxxxxxxx> wrote:
> As a general question about ram/swap and relating to some of the issues
in
> this thread:
>
> ~500 megs cached yet 2.6.5 goes into swap hell
>
> Consider this: I have a desktop system with 256MB ram, so I make a 256MB
> swap partition. So I have 512MB "memory" and if some process wants more,
> too bad, there is no more.
>
> Now I buy another 256MB of ram, so I have 512MB of real memory. Why not
> just disable my swap completely now? I won't have increased my memory's
> size at all, but won't I have increased its performance lots?
>
> Or, to make it more appealing, say I initially had 512MB ram and now I
have
> 1GB. Wouldn't I much rather not use swap at all anymore, in this case,
on
> my desktop?
I really agree. And I think swappoff is not enough.
Some of my customers have over 4GB of memory. RDMS,
Java Virtual Machine or Grid system (like Globus tool
kit) run on the servers.
Those kinds of application make a lot of threads and
they have huge amount of shared memory. And those
shared memory is sometimes mlocked.
I think, in those systems, memory aging itself is
useless or obstructive in worst case. Because mlocked
pages which can't be swapped off are on the LRU list.
In such case, aging-off (relevant to process) is
effective, I think.
Of course, I agree that swap-off or aging-off is
NEVER always useful. On the contrary, these functions
may be required by very small number of user.
But it is very important that we can choose
how we use the OS.
Satoshi Oshima
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/