Subject: Re: new mremap(2): relax alignment restrictions?
To: None <tech-kern@NetBSD.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-kern
Date: 07/31/2007 10:56:34
On Mon, Jul 30, 2007 at 12:01:52PM -0400, der Mouse wrote:
> There's actually another one you failed to mention: (6) Zero the page
> at predictable times.

From perspective of both the kernel and each process, there are no
predictable times.

> In particular, I don't *like* sharing the rest
> of the page amonjg multiple simultaneous mappers, but I can deal with
> it - but I really think it's a bug that the rest of the page is shared
> across time, between past mappers and current mappers.

You can't enforce non-sharing the page without breaking a number of
assumptions for accessing the code before. E.g. atomic operations would
be broken.

Joerg