diff options
| author | Andrew Morton <akpm@digeo.com> | 2002-10-04 20:35:08 -0700 |
|---|---|---|
| committer | Russell King <rmk@flint.arm.linux.org.uk> | 2002-10-04 20:35:08 -0700 |
| commit | bf3f607a57d27cab30d5ddfd203d873856bc22b7 (patch) | |
| tree | 37173622f60ba23844e5923b11ec59ce5baa0895 /include/linux | |
| parent | fe66ad33c85b565d428bd1c5e3f2f84abf82a9e2 (diff) | |
[PATCH] separation of direct-reclaim and kswapd functions
There is some lack of clarity in what kswapd does and what
direct-reclaim tasks do; try_to_free_pages() tries to service both
functions, and they are different.
- kswapd's role is to keep all zones on its node at
zone->free_pages >= zone->pages_high.
and to never stop as long as any zones do not meet that condition.
- A direct reclaimer's role is to try to free some pages from the
zones which are suitable for this particular allocation request, and
to return when that has been achieved, or when all the relevant zones
are at
zone->free_pages >= zone->pages_high.
The patch explicitly separates these two code paths; kswapd does not
run try_to_free_pages() any more. kswapd should not be aware of zone
fallbacks.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mmzone.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index dab0f76cfb20..2b83fca9e08d 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -62,7 +62,6 @@ struct zone { spinlock_t lock; unsigned long free_pages; unsigned long pages_min, pages_low, pages_high; - int need_balance; ZONE_PADDING(_pad1_) |
