File Buffering Questions ...

Ben Duncan bns
Wed Jun 14 07:51:41 PDT 2006


Thanks Roger,

Yes, this is a database application.

I looked at mmap, briefly.

However (correct me if I am wrong here):

mmap does not seem to support record locking in a multi user
environment (fcntl , lockf or flock).

If I am the first to mmap a file, and when I am done decide to close
the mmap'ing and you are using the file ( a second process) ,
what happens then ? Does the mapping stay open? Does the mapping
go away? Does your process inherit the mapped file ? Is there
a major fubar? Does little Debbie still get to go to college ?

I could not find the answer when googling or RTFM'ing ..

On Wed, 2006-06-14 at 08:36 -0500, Ben Duncan wrote:
<SNIP>

 > I gather this is a database app. Why not mmap() the file? The OS does a
 > great job of managing the cache when you do this. Not sure what MVISAM
 > is up to. But maybe it offers this as a file access option?

 > --
 > Roger Oberholtzer

Thanks ...

-- 
Ben Duncan   - Business Network Solutions, Inc. 336 Elton Road  Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
        - Hanlon's Razor




More information about the Linux-users mailing list