All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Jelinek <rj@petamem.com>
To: linux-kernel@vger.kernel.org
Subject: kswapd0 inefficient?
Date: Fri, 19 Oct 2007 00:05:10 +0200	[thread overview]
Message-ID: <20071018220510.GA22288@petamem.com> (raw)

Hello guys,

I'm not subscribed to this list, so if you find this question valid
enough to answer it, please cc me. Thanks.

This is what the top-output looks like on my machine after having
copied about 550GB of data from a twofish256 crypted disk to a raid
array:
--------------
Mem:   8178452k total,  8132180k used,    46272k free,  2743480k buffers
Swap:        0k total,        0k used,        0k free,  4563032k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 5954 root       0 -20     0    0    0 R   62  0.0  96:42.61 loop0
 6014 root      18   0 23744  19m  484 R   20  0.2  25:45.31 cp
  255 root      10  -5     0    0    0 S    8  0.0  10:21.82 kswapd0
 6011 root      10  -5     0    0    0 D    6  0.0   4:15.66 kjournald
...yadda yadda...
--------------

And what do we see here? We see loop0 and cp eating up some
time. That's ok for me considered the work they do. kjournald is also
ok for me, but I ask myself: why the heck has kswapd0 crunched 10+
minutes of CPU time?

I mean what does kswapd0 do?
http://www.linuxforums.org/forum/linux-kernel/65380-what-does-kswapd0-do.html

And I have no swap - right? So it should just shut up - IMHO. Or am I
missing something?


kind regards,
 Marcel

             reply	other threads:[~2007-10-18 22:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-18 22:05 Richard Jelinek [this message]
2007-10-18 23:52 ` kswapd0 inefficient? Nick Piggin

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=20071018220510.GA22288@petamem.com \
    --to=rj@petamem.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.