mremap, file that need grow on demand, and fast file access
ElFran sent by Nabble.com
lists
Thu Jan 5 19:00:46 PST 2006
Hello,
Seems that mmap is better that i/o to access a file.
But my problem is this:
I need fast file access (on memory for read only) and write a file to the disk seecure.
A good choice seems to be mmap, msync, mremap, etc. But,...
msync (put in disk) and mremap do not work for me (for grow on demand), cannot allocate memory.
The size of maped file is 500 bytes.
Anyone known how to solve this problem?
glibc-2.3.4-2
gcc-3.4.3-9
kernel 2.6.12.4
Thanks in advance.
--
View this message in context: http://www.nabble.com/mremap%2C-file-that-need-grow-on-demand%2C-and-fast-file-access-t860214.html#a2231107
Sent from the Linux Users (linux-sxs.org) forum at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.linux-sxs.org/pipermail/linux-users/attachments/20060105/84d63733/attachment-0001.htm
More information about the Linux-users
mailing list