linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Rik van Riel <riel@conectiva.com.br>
To: Christoph Rohland <cr@sap.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
	linux-mm@kvack.org, linux-kernel@vger.rutgers.edu
Subject: Re: [PATCH] VM bugfix + rebalanced + code beauty
Date: Wed, 31 May 2000 18:19:55 -0300 (BRST)	[thread overview]
Message-ID: <Pine.LNX.4.21.0005311817190.30221-100000@duckman.distro.conectiva> (raw)
In-Reply-To: <qwwg0qy309r.fsf@sap.com>

On 31 May 2000, Christoph Rohland wrote:
> Rik van Riel <riel@conectiva.com.br> writes:
> 
> > I'm testing stuff now, but seem unable to reproduce your
> > observation. However, I *am* seeing high cpu usage by
> > kswapd ;)
> 
> I do these tests regularly 8way/8GB and the latest kernel is
> definitely a step back.

I have tracked down why. Shrink_mmap uses a bit more CPU
due to the page aging, but because we really want to free
an SHM page, shrink_mmap won't find anything suitable (yes,
aging works) and just waste some CPU before falling through
to shm_swap.

> > I guess we really want to integrate the SHM swapout routine
> > with shrink_mmap...
> 
> I would love to integrate the whole shm page handling into the
> page cache.

That would be great. If we have this we can weigh page cache,
swap cache and shm pages equally. Not only will this result in
better page replacement, but it will also save on kswapd cpu
usage.

Even better, having this will allow us to (trivially) insert
the active/inactive queue idea into the kernel, fixing the
"write stall" problems for a lot of situations.

regards,

Rik
--
The Internet is not a network of computers. It is a network
of people. That is its real strength.

Wanna talk about the kernel?  irc.openprojects.net / #kernelnewbies
http://www.conectiva.com/		http://www.surriel.com/

--
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.eu.org/Linux-MM/

  reply	other threads:[~2000-05-31 21:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-30 22:49 Rik van Riel
2000-05-31 18:05 ` Christoph Rohland
2000-05-31 18:49   ` Rik van Riel
2000-05-31 19:30   ` Rik van Riel
2000-05-31 20:58     ` Christoph Rohland
2000-05-31 21:19       ` Rik van Riel [this message]
2000-06-01 17:18         ` Christoph Rohland

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=Pine.LNX.4.21.0005311817190.30221-100000@duckman.distro.conectiva \
    --to=riel@conectiva.com.br \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=cr@sap.com \
    --cc=linux-kernel@vger.rutgers.edu \
    --cc=linux-mm@kvack.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