Re: What's wrong with MAP_SHARED|MAP_ANONYMOUS?

Stephen C. Tweedie (sct@redhat.com)
Tue, 29 Sep 1998 10:09:55 +0100


Hi,

On Mon, 28 Sep 1998 20:24:57 +0200, Felix von Leitner
<leitner@math.fu-berlin.de> said:

> What is the problem with the shared anonymous mmap syntax?
> I mean, if the programmer is so dumb that he does not use blocks he
> allocated, God help him. That should not be a reason not to have a
> library call.

The library call is there. It's the kernel which doesn't have the
functionality: the swapper assumes that all swappable pages are
private.

The swap cache code in 2.1 makes this much easier to fix, but in the
end it's going to be a 2.3 job. In all likelihood 2.2 will not
support shared anonymous mappings.

--Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/