From: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Pavel Machek <pavel@ucw.cz>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: swapping when there's a free memory
Date: Fri, 30 Apr 2010 05:52:38 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.1.10.1004300543290.13905@artax.karlin.mff.cuni.cz> (raw)
In-Reply-To: <20100427103517.ae0658cf.kamezawa.hiroyu@jp.fujitsu.com>
On Tue, 27 Apr 2010, KAMEZAWA Hiroyuki wrote:
> On Mon, 26 Apr 2010 15:33:33 -0700
> Andrew Morton <akpm@linux-foundation.org> wrote:
>
> > On Sun, 25 Apr 2010 09:13:49 +0200
> > Pavel Machek <pavel@ucw.cz> wrote:
> >
> > > Hi!
> > >
> > > > I captured this output of vmstat. The machine was freeing cache and
> > > > swapping out pages even when there was a plenty of free memory.
> > > >
> > > > The machine is sparc64 with 1GB RAM with 2.6.34-rc4. This abnormal
> > > > swapping happened during running spadfsck --- a fsck program for a custom
> > > > filesystem that caches most reads in its internal cache --- so it reads
> > > > buffers and allocates memory at the same time.
> > > >
> > > > Note that sparc64 doesn't have any low/high memory zones, so it couldn't
> > > > be explained by filling one zone and needing to allocate pages in it.
> > >
> > > Fragmented memory + high-order allocation?
> >
> > Yeah, could be. I wonder which slab/slub/slob implementation you're
> > using, and what page sizes it uses for dentries, inodes, etc. Can you
> > have a poke in /prob/slabinfo?
It uses one page-per-slab for dentries and two for inodes. But there was
certainly no dentry or inode-based load --- the machine runs without X
with minimum daemons, there is no major background work. There was just a
process reading 128-kbyte blocks from a raw device and caching them in its
userspace that triggered this. Can it be that kernel uses high-order
allocations for reading from a buffer cache?
> And please /proc/buddyinfo and /proc/zoneinfo when the system is swappy.
It happens rarely, I don't know if I catch it at the right time. The
report I sent, was what I found in a scrollback of vmstat. I didn't catch
it in real time.
> Thanks,
> -Kame
Mikulas
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2010-04-30 3:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <alpine.DEB.1.10.1004220248280.19246@artax.karlin.mff.cuni.cz>
2010-04-26 22:31 ` Andrew Morton
[not found] ` <20100425071349.GA1275@ucw.cz>
2010-04-26 22:33 ` Andrew Morton
2010-04-27 1:35 ` KAMEZAWA Hiroyuki
2010-04-30 3:52 ` Mikulas Patocka [this message]
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=alpine.DEB.1.10.1004300543290.13905@artax.karlin.mff.cuni.cz \
--to=mikulas@artax.karlin.mff.cuni.cz \
--cc=akpm@linux-foundation.org \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=pavel@ucw.cz \
/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