From: Perez-Gonzalez, Inaky (
Date: Mon Nov 11 2002 - 15:28:32 EST

> I am beginning to play with the FUTEX system call. I am hoping that
> PROT_SEM is not required, as I intend to scatter the words throughout
> memory, and it would be a real pain to mprotect(PROT_SEM) each page
> that contains a FUTEX word.

Still you want to group them as much as possible - each time you lock
a futex you are pinning the containing page into physical memory, that
would cause that if you have, for example, 4000 futexes locked in 4000
different pages, there is going to be 4 MB of memory locked in ... it
helps to have an allocator that ties them together.


Inaky Perez-Gonzalez -- Not speaking for Intel - opinions are my own [or my
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:23 EST