Re: [2.6.24-rc8-mm1][regression?] numactl --interleave=all doesn't works on memoryless node.

Andi Kleen
2008-02-02T10:56:54Z

> I have 1 simple question.
> Why do libnuma generate bitpattern of all bit on instead
> check /sys/devices/system/node/has_high_memory nor
> check /sys/devices/system/node/online?
>
> Do you know it?

It's far simpler and cheaper (sysfs is expensive) to do this in the kernel
and besides the kernel can do more easily keep up with dynamic topology
changes.

>
> and I made simple patch that has_high_memory exposed however CONFIG_HIGHMEM disabled.
> if CONFIG_HIGHMEM disabled, the has_high_memory file show
> the same as the has_normal_memory.
>
> may be, userland process should check has_high_memory file.

To be honest I've never tried seriously to make 32bit NUMA policy
(with highmem) work well; just kept it at a "should not break"
level. That is because with highmem the kernel's choices at
placing memory are seriously limited anyways so I doubt 32bit
NUMA will ever work very well.

-Andi