How do I make this thing stop laging? Reboot? Sounds like Windows!

rmoser (mlmoser@comcast.net)
Tue, 17 Jun 2003 20:30:23 -0400


Figured this one out. I had the issue where xmms was skipping a
lot and my system was lagging wasy too much. Rebooted to fix it
(WTF?!) whenever it happened. Couldn't understand why. Hard disk
light flashing, but no programs that read from the HDD all that much
(xmms doesn't do it THAT much).

I got rid of htdig. It stopped.

So I ran GIMP recently and caused it again. Clicked in the wrong
place and BOOM! Gradient needs too much RAM and CPU and time.
Killed gimp. Suddenly, my system is lagging.

Ten minutes later I get the brains to run top. It seems I have about
50 MB in swap, and 54 MB free memory. So I wait ten minutes more.

No change.

% swapoff -a; swapon -a

Fixes all my problems.

Now this long story shows something: The kernel appears to be unable
to intelligently pull swap back into RAM. What gives?

I'm poking around in linux/mm and can't find the code to control this. I
want to make it swap back in any page that it reads, even if it has to
swap out another page (preferably one which hasn't been used for very
long). Also, a more aggressive thing, kswapd should have freepages.max
in there, to force it to pull in pages from swap aggressively if there's a lot
of free RAM and a lot of swap used.

Uhh, I'm lost... how does this stuff work? I'm... really lost. Should I be
doing this? Tell me where to start maybe?

--Bluefox Icy

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