mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Lukas Hejtmanek <xhejtman@ics.muni.cz>
To: linux-kernel@vger.kernel.org
Cc: jirislaby@gmail.com
Subject: Swapping in 2.6.26-rc1 oddities (but it is omnipresent bug)
Date: Fri, 9 May 2008 11:49:22 +0200	[thread overview]
Message-ID: <20080509094922.GJ31771@ics.muni.cz> (raw)

Hello,

I noticed that doing backup with rsync on my laptop from a local disk to a usb
disk swaps out many processes. To advice of Jiri Slaby (cc:), I did some
vmstat dumps.

More precisely, I run:
i=0; while true; do cat /proc/vmstat > vmstat.$i; sleep 3; i=$[$i+1]; done

and in parallel, I run the rsync to make the backup.

The vmstats can be found here:
http://www.fi.muni.cz/~xhejtman/vmstat/
(tar ball included at the end).

Jiri stated that the kernel begins to swap (somewhere around vmstat.50) even
if there are 70000 free pages.

Any ideas?

It more likely starts to swap the applications if I do not touch the laptop
(actively using Firefox or something like).

Also, the memory is occupied by disk caches not by the applications, so
I think it should not be swapped.

Moreover:
$ cat /proc/sys/vm/swappiness 
0

$ cat /proc/sys/vm/dirty_writeback_centisecs 
499

-- 
Lukáš Hejtmánek

                 reply	other threads:[~2008-05-09  9:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20080509094922.GJ31771@ics.muni.cz \
    --to=xhejtman@ics.muni.cz \
    --cc=jirislaby@gmail.com \
    --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®