[openib-general] Re: madvise MADV_DONTFORK/MADV_DOFORK

Hugh Dickins hugh at veritas.com
Mon Feb 13 11:50:41 PST 2006


On Mon, 13 Feb 2006, Linus Torvalds wrote:
> 
> and the usage ends up matching that (except for some really strange issue 
> with hugepage counting, which just looks wrong, but never mind).

Yes, I cc'ed wli on my reply to Michael,
we're hoping he'll just say delete that block.

> I can see where Hugh is coming from, but I think it's adding cruft very 
> much for a "be very careful" reason.
> 
> I would suggest that if you wanted to be very careful, you'd simply 
> disallow changing - or perhaps just clearing - that DONTCOPY flag on 
> special regions (ie ones that have been marked with VM_IO or VM_RESERVED).

Fair enough, disallow clearing on VM_IO (VM_RESERVED is on its way out,
does little more than perpetuate a few accounting anomalies I think).
So no new VM_DONTFORK flag, stick with VM_DONTCOPY: that's fine with me.

Hugh



More information about the general mailing list