|
From: Tom H. <th...@cy...> - 2004-07-27 18:56:27
|
In message <Pin...@he...>
Nicholas Nethercote <nj...@ca...> wrote:
> Thanks Tom, this fixes the problem! (And it now falls over slightly
> further along :) I had worked out that Valgrind was observing the
> requested 0x100000 alignment and the kernel wasn't, but hadn't got any
> further than that. The kernel's behaviour seems odd here...
>
> Am I right that this second patch completely obsoletes the first?
Yes.
The first one should work, but you'll be mapping most if not
all of the BSS as copy-on-write pages which are then force to
be mapped by the memset instead of mapping them from /dev/zero
where they will only zpring into existence when used.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|