Re: user space web server accelerator support

2001-03-23 Thread Zach Brown
> Zach, have you ever noticed such a performance bottleneck in your phhttpd? yup, this is definitely something you don't want to be doing in the fast path :) > Any thoughts? Sorry I don't remember the start of this thread, but I'll ask anyway; have you looked at Ingo Molnar's Tux server? Its s

Re: user space web server accelerator support

2001-03-22 Thread Fabio Riccardi
Dave, Zach, thanks for your help, I've implemented a file descriptor passing mechanism very similar to that of Zach's and it worked. The problem now is performance, fd passing is utterly slow! On my system (a 1GHz Pentium III + 2G RAM) I can do 1300 SpecWeb99 with a khttp-like socket passing me

Re: user space web server accelerator support

2001-03-20 Thread Zach Brown
> Fantastic! > > I was not aware of it, sorry... where can I find some doc? There are some patches in the apache source rpms in http://www.zabbo.net/phhttpd/ that shows how apache can connect to another daemon and get its incoming connections sockets from it. phhttpd itself is pretty hairy code

Re: user space web server accelerator support

2001-03-19 Thread David S. Miller
Fabio Riccardi writes: > How can Apache "grab" the file descriptor? > > My understanding is that file descriptors are data structures private to > a process... > > Am I missing something? Unix sockets allow one processes to "give" a file descriptor to another process via a facility calle

Re: user space web server accelerator support

2001-03-19 Thread Fabio Riccardi
Fantastic! I was not aware of it, sorry... where can I find some doc? - Fabio "David S. Miller" wrote: > Fabio Riccardi writes: > > How can Apache "grab" the file descriptor? > > > > My understanding is that file descriptors are data structures private to > > a process... > > > > Am I m

Re: user space web server accelerator support

2001-03-19 Thread David S. Miller
Fabio Riccardi writes: > How could this be fixed? Why not pass the filedescriptors to apache over a UNIX domain socket? I see no need for a new facility. Later, David S. Miller [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

Re: user space web server accelerator support

2001-03-19 Thread Fabio Riccardi
How can Apache "grab" the file descriptor? My understanding is that file descriptors are data structures private to a process... Am I missing something? - Fabio "David S. Miller" wrote: > Fabio Riccardi writes: > > How could this be fixed? > > Why not pass the filedescriptors to apache over

user space web server accelerator support

2001-03-19 Thread Fabio Riccardi
Hi, I've been working for a while on a user-space web server accelerator (as opposed to a kernel space accelerator, like TUX). So far I've had very promising results and I can achieve performance (spec) figures comparable to those of TUX. Although my implementation is entirely sitting in user sp