mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: rmoser <mlmoser@comcast.net>
To: linux-kernel@vger.kernel.org
Subject: How do I make this thing stop laging?  Reboot?  Sounds like  Windows!
Date: Tue, 17 Jun 2003 20:30:23 -0400	[thread overview]
Message-ID: <200306172030230870.01C9900F@smtp.comcast.net> (raw)

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


             reply	other threads:[~2003-06-18  0:19 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-18  0:30 rmoser [this message]
2003-06-18  8:22 ` Helge Hafting
2003-06-18  9:22   ` Karl Vogel
2003-06-18  9:44     ` Oliver Neukum
2003-06-18 10:23     ` Anders Karlsson
2003-06-18 15:08       ` Gianni Tedesco
2003-06-18 16:43     ` Joe
2003-06-18  9:30   ` Yaroslav Rastrigin
2003-06-18 11:02     ` Helge Hafting
2003-06-18 12:17       ` Mike Galbraith
2003-06-19  8:04   ` H. Peter Anvin
2003-06-19 10:00     ` Helge Hafting
2003-06-19 10:02       ` Nick Piggin
2003-06-19 15:54       ` Daniel Gryniewicz
2003-06-18  9:56 Karl Vogel
2003-06-18 16:53 ` Oliver Neukum
2003-06-18 10:43 Karl Vogel
2003-06-18 10:49 Karl Vogel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200306172030230870.01C9900F@smtp.comcast.net \
    --to=mlmoser@comcast.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®