public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nick Piggin <nickpiggin@yahoo.com.au>
To: "Hemmann, Volker Armin" <volker.armin.hemmann@tu-clausthal.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: swap prefetching merge plans
Date: Thu, 23 Mar 2006 19:26:39 +1100	[thread overview]
Message-ID: <44225BBF.2040604@yahoo.com.au> (raw)
In-Reply-To: <200603230856.24091.volker.armin.hemmann@tu-clausthal.de>

Hemmann, Volker Armin wrote:
> Hi,
> 
> I am just a user, but I would love to see this feature.
> 
> After compiling stuff, I have usually some kb in swap (300kb, 360 kb), and 
> lots of free ram. But even this few kb make my KDE desktop extremly sluggish. 
> It feels, like every byte is fetched individually and always the wrong stuff 
> ends in swap.
> 

I'm almost positive this wouldn't be the cause of your problems (even a
slow disk could read all these blocks in, randomly, in under 2 seconds,
assuming they're spread from one end of the platters to the other).

The problem is simply the more general one of parts your working set
being paged out (in this case, cached files). Which is something swap
prefetch will not help with.

> The only 'workaround' so far is to do a 'swapoff -a&& swapon -a' which not 
> only clears swap, but make my box blazzingly fast again (thank you guys, 
> besides this little swap annoyance you all do a great job). 
> 
> So everything that makes the situation better (swap in of data faster) is 
> highly welcome. The CPU is bored most of the time anyway and as I wrote 
> above, usually lots of ram are free. So why not use the free ram and free CPU 
> cycles?
> 
> The compelling argument is: swap is extremly slow. It is so slow that you can 
> go out, plant a tree, build a house and father a son while I am waiting for 
> some few kb to get fetched from it. Everything that reduces swap access when 
> the data is needed, is IMHO a good thing. Oh, and the harddisk is not slow. 
> Only swap is.
> 

I'd be stumped if swapoff helps you. Maybe you aren't exaggerating about
the speed of your swap.

-- 
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com 

  reply	other threads:[~2006-03-23  8:58 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-23  7:56 Re:swap prefetching merge plans Hemmann, Volker Armin
2006-03-23  8:26 ` Nick Piggin [this message]
2006-03-23 11:47   ` swap " Jan Knutar
2006-03-23 13:50     ` Hemmann, Volker Armin
2006-03-24  8:16       ` Helge Hafting
  -- strict thread matches above, loose matches on Subject: below --
2006-03-23  4:53 -mm " Andrew Morton
2006-03-23  7:04 ` swap prefetching " Con Kolivas
2006-03-23 11:19   ` Jesper Juhl
2006-03-23 13:58   ` Francesco Biscani
2006-03-23 15:37     ` James Rayner
2006-03-23 18:35   ` Mattia Dongili
2006-03-23 18:40   ` Rafael J. Wysocki
2006-03-25 14:37   ` Jan Engelhardt
2006-03-25 15:24     ` Nick Piggin
2006-03-25 23:44       ` Con Kolivas
2006-03-26  5:54         ` Mike Galbraith
2006-03-26  8:08           ` Con Kolivas
2006-03-26  7:42             ` Mike Galbraith
2006-03-26  9:34               ` Con Kolivas
2006-03-26  9:20         ` Jan Engelhardt

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=44225BBF.2040604@yahoo.com.au \
    --to=nickpiggin@yahoo.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=volker.armin.hemmann@tu-clausthal.de \
    /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