Oracle and linux I/O schedulers (part 2)

This paper start from what were left behind in the previous one.
It’s purpose is to further tests the capabilities and performance of oracle against different linux I/O scheduler.
The workload of choice is transactional. Horahammer is going to simulate a TPC-C workload while the scheduler will be switched dynamically.

The main difference compared to the first test is that the redologs have been relocated on another disk with a different I/O scheduler setting.
Since deadline has been the one with less wait event on the redolog it has been the scheduler of choice for the device of the redo logs.

The device sdc (a RAID 1) is going to host the redo logs and is set to deadline with default parameters.
The device sdb, hosting the datafile, will have its scheduler modified without interrupting the TPC-C workload.

Of course, hardware and DB remained the same.
No parameters of oracle and SUSE where modified.


For any scheduler you can see an AWR report following the below links:

 transaction per secondlog file sync %user callsphysical readsphysical writes

Again the winner is deadline and again noop is close to it.
The worst performance seems to be given by cfq (the default scheduler *sigh*).

I tried to retest the deadline scheduler after tuning some of the available parameters but I couldn’t measure any significant variation.
Probably the workload rely mainly on merging while a marginal part can be improved by the I/O sorting algorithm.

A second test has been performed.
The different scheduler are tested with and without direct I/O and asynchronous I/O.

Results setting filesystemio_options=none:

 transaction per secondlog file sync %user callsphysical readsphysical writes

The winner this time is noop while the worst scheduler for this workload remains cfq (the test has been repeated several times to be sure of the performance drop).
The absence of asynch I/O doesn’t seem to make a great deal of difference in the number of transaction per second (only deadline performance are worse).

What now if the direct I/O is enabled?
The I/O merging should be disabled as well as the filesystem caching.
Below the results of the test with filesystemio_options=setall.

 transaction per secondlog file sync %user callsphysical readsphysical writes

Performance surely dropped but still it seems the scheduler got its importance.
As always cfq shows the worst behaviour.

To be noticed: deadline and noop schedulers, which showed the best performance during the previous test, had the highest performance drop.
Probably this is due to the impossibility of the I/O merging (as showed by iostat and the kernel statistics) induced by direct I/O.