Poor read() performance, and I can't profile it

Kirk Strauser kirk at strauser.com
Wed Jun 11 19:47:21 UTC 2008


On Wednesday 11 June 2008, Kirk Strauser wrote:
> On Linux:
>
> $ time ./cdbf /tmp/invoice.dbf >/dev/null
> ./cdbf /tmp/invoice.dbf > /dev/null  42.65s user 20.09s system 71% cpu
> 1:28.15 total
>
> On FreeBSD:

Oops!  I left that out:

$ time /tmp/cdbf /var/tmp/invoice.dbf >/dev/null
/tmp/cdbf /var/tmp/invoice.dbf > /dev/null  59.15s user 11.93s system 36% cpu 3:14.53 
total

Again, Linux is on a boring Dell workstation, FreeBSD is on a far faster Dell server 15K 
RPM SCSI drives (even if they don't come into play once the data files are buffered).
-- 
Kirk Strauser


More information about the freebsd-questions mailing list