Re: NUMA policy issues with ZONE_MOVABLE

Christoph Lameter
2007-08-02T19:52:43Z

On Thu, 2 Aug 2007, Mel Gorman wrote:

>
> ---
> diff --git a/drivers/base/node.c b/drivers/base/node.c
> index cae346e..3656489 100644
> --- a/drivers/base/node.c
> +++ b/drivers/base/node.c
> @@ -98,6 +98,7 @@ static SYSDEV_ATTR(meminfo, S_IRUGO, node_read_meminfo, NULL);
>
> static ssize_t node_read_numastat(struct sys_device * dev, char * buf)
> {
> + refresh_all_cpu_vm_stats();

The function is called refresh_vmstats(). Just export it.

> "numa_miss %lu\n"
> diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h
> index 75370ec..31046e2 100644
> --- a/include/linux/vmstat.h
> +++ b/include/linux/vmstat.h
> @@ -213,6 +213,7 @@ extern void dec_zone_state(struct zone *, enum zone_stat_item);
> extern void __dec_zone_state(struct zone *, enum zone_stat_item);
>
> void refresh_cpu_vm_stats(int);
> +void refresh_all_cpu_vm_stats(void);

No need to add another one.