Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Apr 2006 18:38:48 +0200 (CEST)
From:      Wojciech Puchar <wojtek@tensor.3miasto.net>
To:        questions@freebsd.org
Subject:   MMAP&multiprocessor machine question
Message-ID:  <20060413183320.C7171@chylonia.3miasto.net>
In-Reply-To: <200604131124.17513.josh@tcbug.org>
References:  <200604131055.19504.josh@tcbug.org> <20060413181037.E95399@chylonia.3miasto.net> <200604131124.17513.josh@tcbug.org>

next in thread | previous in thread | raw e-mail | index | archive | help

assume i have my program, that accesses data using mmap interface only, is 
run many times on same machine.

if it's uniprocessor machine, it's clear - all processes will see the data 
coherrent.

what in case of more than one processor. will one processor keep in cache 
data that was already modified by other?

is there any system call to FORCE synchronization when it's needed on 
given page?


on my dual pentium II machine it looks like data being always coherent, 
but how it will be on other architectures/models? for example MIPS 
processors has software managed caches - will my program work wrong on 
such hardware?

for now - it's ok because it works, but i won't like to be surprised say 5 
years after because my program breaks important data on some new machine 
it may run at.

it's multiuser database program (or will be, as it's in beginning phase) 
so such behaviour is inacceptable.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060413183320.C7171>