mmap
How do I create a memory-mapped file without a backing file on OSX?
I want to use a library that uses file descriptors as the basic means to access its data. For performance reasons, I don\'t want to have to commit files to the disk each before I use this library\'s f[详细]
2023-01-14 15:00 分类:问答Changing the filename of a memory mapped file
Is it possible to cha开发者_如何学JAVAnge the name of an already open memory mapped file, or, do I need to close it, rename it and then mmap it again?Renaming a file while it is open is fine, regardle[详细]
2023-01-13 03:39 分类:问答Is there really no mremap in Darwin?
I\'m trying to find out how to remap memory-mapped files on a Mac (when I want to expand the available space).[详细]
2023-01-12 11:32 分类:问答mmap regions allocating from reserved stack space?
In our product we use a malloc implementation that relies exclusively on mmap for memory allocation.We also do a fair use of allocaing.We\'ve just encountered a problem where m开发者_如何转开发map wil[详细]
2023-01-09 09:09 分类:问答32-bit FreeBSD 7.2 and 1GB mmaps
I\'ve been having some trouble with FreeBSD and large mmaps. Linux does not show the same problems. On program startup it can always get the 1 GB map. However, there\'s a reload operation where the f[详细]
2023-01-07 18:16 分类:问答Why doesn't POSIX mmap return a volatile void*?
Mmap returns a void*, but not a volatile void*. If I\'m using mmap to map shared memory, then another process could be writing to that memory, which means two subsequent reads from the same memory loc[详细]
2023-01-06 01:00 分类:问答How to have a checkpoint file using mmap which is only synced to disk manually
I need the fastest way to periodically sync file with memory. What I think I would like is to have an mmap\'d file, which is only sync\'d to disk manually. I\'m not sure how to prevent any automatic[详细]
2023-01-05 08:49 分类:问答Can the dirtiness of pages of a mmap be found from userspace?
Can dirtiness of pages of a (non-shared) mmap be accessed fro开发者_Go百科m userspace under linux 2.6.30+?Platform-specific hacks and kludges welcome.[详细]
2023-01-04 06:38 分类:问答PHP script keeps doing mmap/munmap
My PHP script contains a loop, which does nothing much more than echoing and dereferencing pointers (like in $tab[$othertab[$i]]-> stuff).[详细]
2023-01-02 22:35 分类:问答Deriving from streambuf without rewriting a corresponding stream
Some days ago, I decided that it would be fun to write a streambuf subclass that would use mmap and read-ahead.[详细]
2023-01-02 08:03 分类:问答