From: Zoran V. <zv...@ar...> - 2005-06-16 16:25:41
|
Am 16.06.2005 um 18:18 schrieb Zoran Vasiljevic: > > One can even explore the memmap machinery and see if we can > entirely drop the temp-file and use the system paging for that: > so if the input exceeds the maxinput, we just mmap /dev/zero file > I believe something like that should be possible but will have to > double-check if this is true. > I knew it ("man mmap" on solaris): When MAP_ANON is set in flags, and fd is set to -1, mmap() provides a direct path to return anonymous pages to the caller. This operation is equivalent to passing mmap() an open file descriptor on /dev/zero with MAP_ANON elided from the flags argument. I'd have to see if this is really working on Linux, Mac and Win. Zoran |