Re: [RFC] 2.3.39 zone balancing

From: Linus Torvalds (torvalds@transmeta.com)
Date: Thu Jan 13 2000 - 17:30:43 EST


On Thu, 13 Jan 2000, Kanoj Sarcar wrote:
>
> Yes, that's what everyone seems to be pointing at. As I mentioned, I am
> looking into this as I type. The only thing is, as Andrea points out,
> 2.3 bh/irq handlers do not request HIGHMEM pages, so shouldn't the
> 2.3 kswapd do something more like:
>
> more_work = 0;
> for (i = 0; i < MAX_NR_ZONES; i++) {
> if (i != ZONE_HIGHMEM)
> more_work |= balance_zone(zone+i)

No, the other reason for kswapd is to get "smoother" behaviour, by trying
to keep some memory free. Also, while we don't use high-memory pages right
now in BH and irq contexts, I don't think that is something we need to
codify, and it may change in the future. There's no real reason per se for
not using them (except for complexity), so I'd hate to have a special case
for that case.

                Linus

-
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 : Sat Jan 15 2000 - 21:00:24 EST