Re: [patch] Re: Out Of Memory in v. 2.1

Meelis Roos (mroos@tartu.cyber.ee)
Sun, 4 Oct 1998 22:00:51 +0300


AA> - __get_free_pages() was stalling everything. The system was running
AA> try_to_free_pages() all the time. Now it run try_to_free_pages only
AA> if really there isn' t a free page in the page-order-list. If
AA> try_to_free_pages has freed the whole chunk we try again because
AA> we are sure we' ll find a free page.
AA> And if we can' t free a chunk of pages by hand using try_to_free_pages()
AA> kswapd won' t do better so I don't wakeup it.

I'm not a mm expert (far from it really) but the last two lines sound
suspicios to me. Isn't this what kswapd is made for? Are you duplicating
its work? IOW, it seems not so clear to me.

-- 
Meelis Roos (mroos@tartu.cyber.ee)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/