linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* 2.4.0-test9-pre4: __alloc_pages(...) try_again:
@ 2000-09-20 20:23 Roger Larsson
  2000-09-21  5:21 ` Mike Galbraith
  2000-09-21 16:26 ` 2.4.0-test9-pre4: __alloc_pages(...) try_again: Rik van Riel
  0 siblings, 2 replies; 9+ messages in thread
From: Roger Larsson @ 2000-09-20 20:23 UTC (permalink / raw)
  To: linux-kernel, linux-mm, Rik van Riel, Juan J. Quintela

Hi,


Trying to find out why test9-pre4 freezes with mmap002
I added a counter for try_again loops.

... __alloc_pages(...)

        int direct_reclaim = 0;
        unsigned int gfp_mask = zonelist->gfp_mask;
        struct page * page = NULL;
+       int try_again_loops = 0;

- - -

+         printk("VM: sync kswapd (direct_reclaim: %d) try_again #
%d\n",
+                direct_reclaim, ++try_again_loops);
                        wakeup_kswapd(1);
                        goto try_again;


Result was surprising:
  direct_reclaim was 1.
  try_again_loops did never stop increasing (note: it is not static,
  and should restart from zero after each success)

Why does this happen?
a) kswapd did not succeed in freeing a suitable page?
b) __alloc_pages did not succeed in grabbing the page?

/RogerL

--
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/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2000-09-23 11:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-20 20:23 2.4.0-test9-pre4: __alloc_pages(...) try_again: Roger Larsson
2000-09-21  5:21 ` Mike Galbraith
2000-09-21 18:17   ` Roger Larsson
2000-09-22  6:20     ` Mike Galbraith
2000-09-22  8:49       ` Rik van Riel
2000-09-22 16:51         ` Mike Galbraith
2000-09-23 11:28           ` 2.4.0-test9-pre6: __alloc_pages(...) datapoint Mike Galbraith
2000-09-21 16:26 ` 2.4.0-test9-pre4: __alloc_pages(...) try_again: Rik van Riel
2000-09-21 17:58   ` Roger Larsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox