Re: mmap() sendfile()

2006-01-04 Thread Igor Sysoev
On Mon, 12 Dec 2005, Mike Silbersack wrote: On Mon, 12 Dec 2005, Cedric Tabary wrote: If it is true, doing a sendfile() on some very big files (even if not keeping the descriptor open after) will kill the cache ? Please help me to understand why this patch ? and the difference between

Re: mmap() sendfile()

2005-12-14 Thread Iasen Kostov
On Mon, 2005-12-12 at 18:20 +0100, Cedric Tabary wrote: On 12/12/2005 08:38, Mike Silbersack wrote: On Mon, 12 Dec 2005, Cedric Tabary wrote: If it is true, doing a sendfile() on some very big files (even if not keeping the descriptor open after) will kill the cache ? Please help me

Re: mmap() sendfile()

2005-12-14 Thread Iasen Kostov
On Mon, 2005-12-12 at 18:20 +0100, Cedric Tabary wrote: On 12/12/2005 08:38, Mike Silbersack wrote: On Mon, 12 Dec 2005, Cedric Tabary wrote: If it is true, doing a sendfile() on some very big files (even if not keeping the descriptor open after) will kill the cache ? Please help me

mmap() sendfile()

2005-12-12 Thread Cedric Tabary
I was looking at the freebsd port of thttpd and i saw this patch : /usr/ports/www/thttpd/files/patch-mmc.c This is some sort of file cache, it works by mmap()ing some files and keeping the mmap address in a hashtable. I suppose this is used to keep the file in memory until munmap() is called.

Re: mmap() sendfile()

2005-12-12 Thread Andrey Simonenko
On Mon, Dec 12, 2005 at 09:39:30AM +0100, Cedric Tabary wrote: This is some sort of file cache, it works by mmap()ing some files and keeping the mmap address in a hashtable. I suppose this is used to keep the file in memory until munmap() is called. I guess this is used for accessing file's

Re: mmap() sendfile()

2005-12-12 Thread Mike Silbersack
On Mon, 12 Dec 2005, Cedric Tabary wrote: If it is true, doing a sendfile() on some very big files (even if not keeping the descriptor open after) will kill the cache ? Please help me to understand why this patch ? and the difference between sendfile() and mmap() at the memory or cache

Re: mmap() sendfile()

2005-12-12 Thread Cedric Tabary
On 12/12/2005 08:38, Mike Silbersack wrote: On Mon, 12 Dec 2005, Cedric Tabary wrote: If it is true, doing a sendfile() on some very big files (even if not keeping the descriptor open after) will kill the cache ? Please help me to understand why this patch ? and the difference between