On Thu, 2006-04-13 at 02:56 +0200, Andi Kleen wrote:
> The problem is not memory consumption but complexity of code/data structures.
> Keeping information in two places is usually a good cue that something
> is wrong. This code is also fragile and hard to test.
Part of the motivation for these patches is that we really duplicate a
lot of functionality across architectures. For instance, on x86, we
have limit_regions() to fiddle with the e820 or efi tables to make them
look right after a mem= on the command-line.
We end up doing the same kind of fiddling on powerpc, but on LMBs,
instead. This code is error-prone, and every one of these
implementations gets it wrong. I believe I've seen and fixed bugs in at
least two of them. Add in NUMA things or hotplug boot-time zone sizing,
and you get an even worse mess.
The motivation for Mel's patches is to keep the architectures from
getting it wrong. If we let them do it themselves, they _will_ get it
wrong, and any bugfixes will not help anybody else.
If we do it in common code, we will certainly have bugs for a while. By
sharing code, we narrow the bugs down to one place, and only have to fix
them once.
-- Dave "guy who hates the same bugs in many arches" Hansen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]