A question about multithreaded server

2001-10-27 Thread A G F Keahan
I have a server built around the following model: One "manager" thread selecting on multiple descriptors (using kqueue() on FreeBSD, poll() on Solaris, select() on some other Unix systems, and WSAWaitForMultipleEvents() on Win32). A small number (typically 2 x the number of CPUs) of worker threa

Optimal UFS parameters

2000-12-06 Thread A G F Keahan
What parameters should I choose for a large (say, 60 or 80Gb) filesystem? I remember a while ago someone (phk?) conducted a survey, but nothing seems to have come of it. In the meantime, the capacity of an average hard drive has increased tenfold, and the defaults have become even less reasonab

Re: Generic config file parser?

2000-05-28 Thread A G F Keahan
Doug Barton wrote: > > A G F Keahan wrote: > > > > This may be a silly question, but is there such a thing?Almost every > > program that I know uses configuration files, often in different, > > incompatible formats. I personally prefer Samba/Wine-style config

Generic config file parser?

2000-05-28 Thread A G F Keahan
This may be a silly question, but is there such a thing?Almost every program that I know uses configuration files, often in different, incompatible formats. I personally prefer Samba/Wine-style config files which are split into "sections" like this: [SECTIONNAME1] wibble1 = blah wibble2 = 3

Re: Linux emu question

2000-05-26 Thread A G F Keahan
James, You can download a fully functional 30-day evaluation version of VMWare and see for yourself (make sure you tell them that your "distribution of Linux" is FreeBSD). There are two ports in the FreeBSD ports collection -- /usr/ports/emulators/vmware1 and vmware2, which make installation a l

Re: new device drivers for RME soundcard and G400-TV

2000-05-23 Thread A G F Keahan
Daniel, First of all, I think you will get a lot more replies if you re-post your message to freebsd-multimedia (cc'd). Secondly, the author and maintainer of the new pcm driver in 4-stable and -current is Cameron Grant ([EMAIL PROTECTED]), and you should talk to him before starting anything ser

Re: Multithreaded server performance

2000-04-24 Thread A G F Keahan
Evans wrote: > > On Mon, Apr 24, 2000 at 05:17:10AM +0300, A G F Keahan wrote: > > > I am currently porting a multithreaded TCP server from NT (yech!) to > > > UNIX using pthreads. The server has a fairly straightforward design -- > > > it opens a thread for each c

Multithreaded server performance

2000-04-23 Thread A G F Keahan
I am currently porting a multithreaded TCP server from NT (yech!) to UNIX using pthreads. The server has a fairly straightforward design -- it opens a thread for each connection, and each thread spends most of its life blocked in a call to read() from a socket. As soon as it receives enough of