On Sat, 31 Jul 1999, Zalman Stern wrote:
>
> We have a system with a group of processes accessing a region of
> memory mapped into each process using mmap. These processes use locks
> for synchronization and generally read and write to the region of
> memory.
This is a known bug in 2.2.x - it is probably fixed in 2.2.11-pre3, but I
didn't check. It is known to be fixed in 2.3.x.
You can probably work around it in older kernels by doing a
"msync(MS_INVALIDATE)" in the process before calling munmap(), because of
some very Linux-specific behaviour wrt MS_INVALIDATE. However, even then
you _may_ see the problem occasionally if you start paging (the problem is
in the writeout logic).
Linus
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]