Re: [oom]: [3/4] track wired pages on a per-zone basis

From: Andrew Morton
Date: Wed Jun 23 2004 - 17:19:08 EST


William Lee Irwin III <wli@xxxxxxxxxxxxxx> wrote:
>
> Index: linux-2.6.7/include/linux/mmzone.h
> ===================================================================
> --- linux-2.6.7.orig/include/linux/mmzone.h 2004-06-16 05:19:36.000000000 +0000
> +++ linux-2.6.7/include/linux/mmzone.h 2004-06-23 18:58:13.000000000 +0000
> @@ -170,6 +170,7 @@
> ZONE_PADDING(_pad3_)
>
> struct per_cpu_pageset pageset[NR_CPUS];
> + unsigned long nr_wired[NR_CPUS];

These will share cachelines of course, so the percpuification won't be very
effective. I wonder if there's some way in which the nr_wired accounting
can be batched up and then dumped into a single per-zone counter when we
have the zone->lru_lock.

How come there are all those PageWired() tests in the LRU manipulation
functions?


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