tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Kernel VS application file caching



On Friday 22 January 2010 12:37:53 Martin Husemann wrote:
> On Fri, Jan 22, 2010 at 12:29:31PM +0000, Sad Clouds wrote:
> > So far the closet that comes to it is calling open() with O_DIRECT flag.
> 
> Have you looked at bozohttpd's mmap_and_write_part() function?
> You can find it in src/libexec/httpd/bozohttpd.c.
> 
> If not using https, this is quite efficient for a service sending raw
> file content out to a socket.
> 
> Martin
> 

Hmm.. I can't seem to find that function. Maybe it has been removed or 
renamed?

p3smp$ pwd
/opt/src/libexec/httpd

p3smp$ find . -type f | while read i
> do
> grep 'write_part' $i && echo "^^ $i"
> done
p3smp$


Home | Main Index | Thread Index | Old Index