Re: missing madvise functionality

Ulrich Drepper
2007-04-03T20:58:01Z

[-- Attachment #1: Type: text/plain, Size: 535 bytes --]

Andrew Morton wrote:
> But whatever we do, with the current MM design we need to at least take the
> mmap_sem for reading so we can descend the vma tree and locate the
> pageframes. And if that locking is the main problem then none of this is
> likely to help.

At least it's done only once for the madvise call and not twice as of
today with mmap and mprotect both needing the semaphore. This can
reduce the contention quite a bit.

--
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]