Home arrow Benchmarks arrow How to Benchmark a File System in FreeBSD
How to Benchmark a File System in FreeBSD PDF
Thursday, 06 October 2011
This small tutorial is about benchmarking a file system in FreeBSD (usefull to discover bottlenecks and tuning your file system).

For tuning a file system we will use bonnie++:

  cd /usr/ports/benchmarks/bonnie++
  make install clean ; rehash

To benchmark we run bonnie++:

  bonnie++ -u 0:0 -d /usr -s 2000


Size of the temporary file created by benchmark process is defined with parameter -s is in MBytes. For acurate results file size must be at least double of RAM. Also do not run other programs when doing the benchmark.

Another tool to benchmark your hard drive and file system is iozone:

  cd /usr/ports/benchmarks/iozone
  make install clean ; rehash

To use it run:

  iozone -a


To see if your file system is the bottleneck when your machine is running slow you can use gstat tool (from FreeBSD base system):

  gstat

If your file system is bottleneck look for %busy column. If is close to 100% then your file system is the bottleneck.


To get some info regarding your drive you can use diskinfo (from FreeBSD base system):

  diskinfo -v -c -t ad4

Last Updated ( Thursday, 06 October 2011 )
 
< Prev

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?