From: Rik van Riel <riel@conectiva.com.br>
To: Roger Larsson <roger.larsson@optronic.se>
Cc: "'quintela@fi.udc.es'" <quintela@fi.udc.es>,
"'linux-mm@kvack.org'" <linux-mm@kvack.org>
Subject: Re: reduce shrink_mmap rate of failure (initial attempt)
Date: Wed, 7 Jun 2000 11:35:37 -0300 (BRST) [thread overview]
Message-ID: <Pine.LNX.4.21.0006071132150.14304-100000@duckman.distro.conectiva> (raw)
In-Reply-To: <01BFD09A.CC430AF0@lando.optronic.se>
On Wed, 7 Jun 2000, Roger Larsson wrote:
> >That patch hangs my machine here when I run mmap002. The machine is
> >in shrink_mmap. It hangs trying to get the pagmap_lru_lock.
>
> The only possible explaination is that we are searching for
> pages on a zone. But no such pages are possible to free from
> LRU... And we LOOP the list, holding the lru lock...
Indeed. I'll make sure to have this fixed in the multi-list
setup I'm working on. A quick fix is to have a per-zone counter
of the number of lru pages, so you can just stop when
zone->lru_pages == 0.
> May the allocation of pages play a part? Filling zone after zone
> will give no mix between the zones.
Ohh, but it does. On most systems, after memory fills up, we'll
be allocating a few pages from one zone, then a few pages from
the next zone, then kswapd kicks in and we start all over again.
The fact that you and quintela had to go through trouble to hit
the bug makes me believe that it's not a very big issue in the
normal case ... just something we want fixed and luckily the
fix is easy.
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/
next prev parent reply other threads:[~2000-06-07 14:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-07 14:04 Roger Larsson
2000-06-07 14:35 ` Rik van Riel [this message]
2000-06-08 0:04 ` Roger Larsson
-- strict thread matches above, loose matches on Subject: below --
2000-06-06 23:49 Roger Larsson
2000-06-07 3:01 ` Quintela Carreira Juan J.
2000-06-07 13:22 ` Zlatko Calusic
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.0006071132150.14304-100000@duckman.distro.conectiva \
--to=riel@conectiva.com.br \
--cc=linux-mm@kvack.org \
--cc=quintela@fi.udc.es \
--cc=roger.larsson@optronic.se \
/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