Re: [patch] improve streaming I/O [bug in shrink_mmap()]

From: Juan J. Quintela (quintela@fi.udc.es)
Date: Tue Jun 13 2000 - 12:08:59 EST


>>>>> "andrea" == Andrea Arcangeli <andrea@suse.de> writes:

andrea> You have more kswapd load for sure due the strict zone approch. It maybe
andrea> not noticeable but it's real. You boot, you allocate all the normal zone
andrea> in cache doing some fs load, then you start netscape and you allocate the
andrea> lower 16mbyte of RAM into it, then doing some other thing you trigger
andrea> kswapd to run because also the lower 16mbyte are been allocated now. Then
andrea> netscape exists and release all the lower 16m but kswapd keeps shrinking
andrea> the normal zone (this shouldn't happen and it wouldn't happen with
andrea> classzone design).

Linus argument is that you should never get _all_ the normal zone
allocated and nothing of the DMA zone. You need to balance the
allocations module the .free_pages, .low_pages etc of each zone....

The problem with the actual algorithm is when we have allocated all
the pages in one zone and all the pages in the LRU list are from a
different zone. We need to do some swaping and not write to disk
_all_ the pages of the rest of the zones (that happend to be in the
LRU list). See the comments from riel and Roger Larson in this list.

Later, Juan.

-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy

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



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:28 EST