Re: excessive swap-in time



On Mar 15, 7:53 pm, phil-news-nos...@xxxxxxxx wrote:

I guess I need to test a worst case scenario of how long it takes to read
in all of swap space when the pages are in random order.

Yeah. This is a case where the old "swap out the whole process" has an
advantage. As long as the whole process fits in memory, it's faster to
swap the whole thing in one fell swoop than to have to fault it in
page-by-page.

Another problem may be that if a process is idle for a long time and
then becomes active, many of its pages may be the least recently used
pages in the system. So when it starts causing a swap in, it may well
swap itself out to get the pages in, resulting in an amusing musical
chairs fiasco.

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.

Don't expect much help -- most programmers are working on efficient
ways to use more memory rather than better ways to handle low memory
situations. (Many typical machines now have 4GB-8GB and working sets
that seldom exceed 1.5GB.)

DS
.



Relevant Pages

  • Re: Heaps and Foreigners
    ... >> can ask for the memory and get a pointer to it. ... cause unfathomable deaths when swap space gets low or is exhausted. ... It's probably because there is some reserve memory to print out errors ... of RAM and disk space) and virtual swap (which is just a number managed ...
    (comp.lang.lisp)
  • Re: Is Greenspun enough?
    ... Most OSes memory map executables directly from the file system so code doesn't pollute the file cache or swap space. ...
    (comp.lang.lisp)
  • Re: [PATCH] io-controller: Add io group reference handling for request
    ... Find the io group bio belongs to. ... anonymous pages (swap) you still need the page tracking functionality ... so fair to charge the current task for the whole activity. ... is some other memory hungry application which is forcing these swap outs. ...
    (Linux-Kernel)
  • Re: [kde-linux] VM and Swap problems
    ... swap is half full the system starts removing swap until it is exactly ... Maybe one of your applications leak memory (I have a webpage ... to two times RAM. ... Unused memory will be used as disk buffers. ...
    (KDE)
  • Re: [RFC][PATCH 2/9] deadlock prevention core
    ... don't try to swap over the network. ... We could track dirty anonymous memory and throttle. ... to be stuck in wait queues. ... What is a "socket wait queue" and how/why can it consume so much memory? ...
    (Linux-Kernel)