Re: [PATCH] 2.6.4-rc1-mm1: vm-kswapd-incremental-min (was Re: MM VMpatches was: 2.6.3-mm4)

From: Andrew Morton
Date: Mon Mar 01 2004 - 05:20:58 EST


Nick Piggin <piggin@xxxxxxxxxxxxxxx> wrote:
>
> Andrew, I think you had kswapd scanning in the direction opposite the
> one indicated by your comments. Or maybe I've just confused myself?
>

Nope, the node_zones[] array is indexed by

#define ZONE_DMA 0
#define ZONE_NORMAL 1
#define ZONE_HIGHMEM 2

Whereas the zonelist.zones[] array goes the other way:
[[[highmem,]normal,]dma,]NULL.

It's a complete dog's breakfast that stuff. Hard to understand, not very
logical and insufficiently commented.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/