Re: excessive swap-in time
- From: Rainer Weikusat <rweikusat@xxxxxxxxxxx>
- Date: Mon, 17 Mar 2008 15:59:47 +0100
talon@xxxxxxxxxxxxxxxx (Michel Talon) writes:
phil-news-nospam@xxxxxxxx wrote:
| You can think of obvious ways to tweak this to make this one case
| perform better, but you can think of cases that are made worse by
| those same tweaks.
Something has to be forced back out to swap in a process that becomes
active again. The question is which pages to select. Those of processes
that are recently inactive would be what ultimately would be swapped out.
Might as well go straight to them directly, rather than the newly active
process fighting against its own pages.
Nothing new in this discussion. The Linux people have always been of the
advice that, "if there is not enough memory, buy some more",
If there is significant, continous paging activity on a system, a lot
of process will continously be blocked, waiting for disk I/O to
complete, before they can use some pages of memory, because their
previous contents need to be written to disk if the page was dirty and
the page content the process expects to be there needs to be read from
disk insofar the (physical) memory page was used by a different
process since the time process #0 accessed it last. In addition to
this, code execution of all processes will need to be wait for disk
I/O to complete frequently, because code pages which could otherwise
be cached in memory need to be read or reread from the binaries
containing them when the pages which held them last time they were
needed had been reused for something different in the
meantime. Possibly, the system needs to write the contents of some
dirty pages to disk before it can read the code into them. Disk-I/O is
slow, compared to memory accesses, hence, processes on a system whose
working set does not fit into (physical) memory run slow.
This is not 'some evil conspiracy of "the Linux people"' but a
physical, measurable phenomenon. The way to speed things up is to
EITHER ADD MORE GODDAMN MEMORY OR REDUCE THE F***ING MEMORY DEMANDS OF
THE SOFTWARE.
Was that loud enough to get past the dirt barrier inside your ears this
time?
while it is well known and demonstrated that a system can very well
function fine and dandy with a constant stream of paging to swap.
Believe it or not, but some (actually, quite a few) people are really
old enough to personally remember the time when this was the general
and not exceptional case.
.
- Follow-Ups:
- Re: excessive swap-in time
- From: phil-news-nospam
- Re: excessive swap-in time
- From: Michel Talon
- Re: excessive swap-in time
- References:
- excessive swap-in time
- From: phil-news-nospam
- Re: excessive swap-in time
- From: Jan Knutar
- Re: excessive swap-in time
- From: phil-news-nospam
- Re: excessive swap-in time
- From: David Schwartz
- Re: excessive swap-in time
- From: phil-news-nospam
- Re: excessive swap-in time
- From: Michel Talon
- excessive swap-in time
- Prev by Date: Re: excessive swap-in time
- Next by Date: Re: Dynamic linking with LD_PRELOAD - get it compiled
- Previous by thread: Re: excessive swap-in time
- Next by thread: Re: excessive swap-in time
- Index(es):
Relevant Pages
|