sysbench
While initially targeted as a MySQL tool, the sysbench
program available from http://sysbench.sourceforge.net/ is also valuable for testing low-level aspects of performance that impact databases, ones that apply equally well to PostgreSQL. It even supports running read-only tests against PostgreSQL databases, too, a feature not demonstrated here. The use in this chapter is just for its low-level hardware tests.
Note
These specific sysbench
tests should be considered secondary to the ones already shown. If you have confirmed sequential read, writes, and seek speeds are good with bonnie++
, and know commit rates are good from doing INSERT
tests with PostgreSQL, you really don't need this data too. It's mainly useful as an alternate way to do more thorough and specific seek and commit rate tests, and is not recommended as your primary testing tool.
Here's an example of downloading and compiling sysbench
without support for any database, the only way it will be...