Re: Off topic: Numactl "distance" wrong

From: David Rientjes
Date: Tue Apr 07 2009 - 04:09:37 EST


On Tue, 7 Apr 2009, Andi Kleen wrote:

> > It would also be possible to verify that the distance between two
> > localities is described consistently in the table (like in the following
> > patch).
>
> Do you have an real-world example where this is wrong?
>

Um, this is a SLIT validation method, so the change is only necessary to
ensure that the table is actually valid unless affinity is not symmetric
in both directions between localities.

Do you have a real-world example of the firmware handing off a locality
that less than LOCAL_DISTANCE?

If so, that would violate the specification since values 0-9 are reserved.
But the validation method still checks and you're not arguing against it,
right?

slit_valid() is intended to prevent invalid tables from being used because
they are incorrect and, thus, can't possibly be used the describe the
physical topology.

> In general this thread seems to contain much more speculation than
> facts.
>

The fact, which you seem to be ignoring, is node hotplug would require
this table to change anyway. It's quite possible using an _SLI method to
dynamically reconfigure the localities, including those that were
statically described by the BIOS at boot. So while you may be satisfied
with the ACPI 2.0 way of thinking, machines have actually changed in the
last five years.
--
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/