Date: Sat, 18 May 2013 00:04:05 -0400 From: Ivan Voras <ivoras@freebsd.org> To: freebsd-hackers@freebsd.org Subject: blogbench and write-open serialization Message-ID: <kn6ujg$a46$1@ger.gmane.org>
next in thread | raw e-mail | index | archive | help
During the BSDCan & DevSummit I got interested in finding out why blogbench is so slow on FreeBSD. After talking to jhb, it looked like one of the reasons might be that opening files with O_RDWR or O_WRONLY (anything opening the file for writing) is serialized. To check this, I've written a small test program, which I've run on CentOS 6.3 and FreeBSD 10-HEAD on the same hardware. Here are the results: https://wiki.freebsd.org/Benchmarking/OpenCloseBenchmark Conclusions: * Linux opens and closes files much faster than FreeBSD * Linux does not serialize write-open operations, while FreeBSD does * Even with O_RDONLY, FreeBSD is much slower in opening (and closing) files. I'd welcome a review of these results and comments.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?kn6ujg$a46$1>