High context switches on FreeBSD

2004-04-02 Thread Irwan Hadi
I'm a simple iterative web server for a small project. This web server uses regular read(2) and write(2) to both read file from the drive and write it to the socket. When I tested this web server on my FreeBSD 5.2.1 box, on a P IV 3 Ghz Processor and 1 GB memory, I'm getting an enormous number

High context switches on FreeBSD

2004-04-02 Thread Irwan Hadi
I'm a simple iterative web server for a small project. This web server uses regular read(2) and write(2) to both read file from the drive and write it to the socket. When I tested this web server on my FreeBSD 5.2.1 box, on a P IV 3 Ghz Processor and 1 GB memory, I'm getting an enormous number

Re: High context switches on FreeBSD

2004-04-02 Thread Dan Nelson
In the last episode (Apr 01), Irwan Hadi said: When I tested this web server on my FreeBSD 5.2.1 box, on a P IV 3 Ghz Processor and 1 GB memory, I'm getting an enormous number of context switches, as you can see below: # vmstat 1 procs memory pagedisks