Re: Very bad swap bug -- 2.0, 2.1 at least

Simon Kirby (sim@netnation.com)
Wed, 16 Sep 1998 09:42:27 -0700 (PDT)


On Wed, 16 Sep 1998, Kurt Garloff wrote:
> On Tue, Sep 15, 1998 at 09:32:30PM -0700, Simon Kirby wrote:
>
> > >From the tests I did before, it seems what is being "swapped in" is the
> > executable code of a program which has been previously swapped out. I had
> > a program running that sleep()ed for a few seconds and then ran a small
> > main loop (stat()ed a file) -- every time the main loop ran, vmstat would
> > show the swap in ("si") number as non-zero. I confirmed this by stracing
> > the program and running "vmstat 1" at the same time.
> >
> > Issuing a "swapoff -a ; swapon -a" causes the program to go away, until
> > something else forces some programs out to swap. (In this case, it seems
> > to be some customer's run-away CGI script).
>
> If swapoff -a; swapon -a kills your program, you're out of physicak memory.
> Then your swapspace is needed and the swapin is just what you should expect.
> Or did I miss anything?

It doesn't kill my program, it makes the problem go away, as it flushes
out the swap.

Simon-

| Simon Kirby | Systems Administration |
| mailto:sim@netnation.com | NetNation Communications |
| http://www.netnation.com/ | Tech: (604) 684-6892 |

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/