linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Roger Larsson <roger.larsson@norran.net>
To: linux-mm@kvack.org
Subject: Re: reduce shrink_mmap rate of failure (initial attempt)
Date: Thu, 08 Jun 2000 02:04:10 +0200	[thread overview]
Message-ID: <393EE2FA.43690671@norran.net> (raw)
In-Reply-To: <01BFD09A.CC430AF0@lando.optronic.se>

Hi again,

There is an even more likely scenario...

* shrink_mmap is called when no zone is under pressure.
  then it will search the list over and over again...

Who could do such a nasty thing?

do_try_to_free_pages !

  Its agenda is not to stop when there is no pressure - it will go on
  until FREE_COUNT (8) pages are freed...

Even in the normal ac10 this should be a problem.
Several turns in do_try_to_free_pages with shrink_mmap failing will be
done - each swapping out some pages...

It will take time and swap...

/RogerL


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.
> >
> >I think that the idea is good, but it doesn't work here :(.
> >
> >Later, Juan.
> 
> Ouch...
> 
> 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...
> Note: without this patch you may end up in another bad situation where
> shrink_mmap always fails and swapping will start until it swaps out a page
> of that specific zone.
> And without the test? We would free all other LRU pages without finding one
> that we want :-(
> 
> This will be interesting to fix...
> 
> May the allocation of pages play a part? Filling zone after zone will give no
> mix between the zones.
> 
> /RogerL
> (from work)
> 
> --
> 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/

--
Home page:
  http://www.norran.net/nra02596/
--
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/

  parent reply	other threads:[~2000-06-08  0:06 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
2000-06-08  0:04 ` Roger Larsson [this message]
  -- 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=393EE2FA.43690671@norran.net \
    --to=roger.larsson@norran.net \
    --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