Doubt on mmap file backend

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Sep 19 11:42:50 UTC 2018


--------
In message <CAC3PTxJqHqzH_9dsN8Q7jhLOonVc7CGQRscwwP86hDHGykj97w at mail.gmail.com>, Prem Kumar writes:

>Is it possible that mmap content can differ on read after write or is this
>the problem happening because read is called before the msync().Sorry ,it
>is very generic question ..Wanted to know if any idea on the behavior.

If you mean "read by another process", then yes.  Only kernels with
integrated VM/buffers provide consistency without msync.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the varnish-misc mailing list