23.07.2014 Views

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

21.5.3 Setting Write-Back Cache<br />

Performance is noticeably improved by running <strong>Lustre</strong> with write-back cache turned<br />

on. However, there is a risk that when the DDN controller crashes you need to run<br />

e2fsck. Still, it takes less time than the performance hit from running with the writeback<br />

cache turned off.<br />

For increased data security and in failover configurations, you may prefer to run<br />

with write-back cache off. However, you might experience performance problems<br />

with the small writes during journal flush. In this mode, it is highly beneficial to<br />

increase the number of OST service threads options ost ost_num_threads=512<br />

in /etc/modprobe.conf. The OST should have enough RAM (about 1.5 MB<br />

/thread is preallocated for I/O buffers). Having more I/O threads allows you to<br />

have more I/O requests in flight, waiting for the disk to complete the synchronous<br />

write.<br />

You have to decide whether performance is more important than the slight risk of<br />

data loss and downtime in case of a hardware/software problem on the DDN.<br />

Note – There is no risk from an OSS/MDS node crashing, only if the DDN itself<br />

fails.<br />

21.5.4 Setting maxcmds<br />

For S2A DDN 8500 array, changing maxcmds to 4 (from the default 2) improved<br />

write performance by as much as 30% in a particular case. This only works with<br />

SATA-based disks and when only one controller of the pair is actually accessing the<br />

shared LUNs.<br />

However, this setting comes with a warning. DDN support does not recommend<br />

changing this setting from the default. By increasing the value to 5, the same setup<br />

experienced some serious problems.<br />

The CLI command for the DDN client is provided below (default value is 2).<br />

$ diskmaxcmds=3<br />

For S2A DDN 9500/9550 hardware, you can safely change the default from 6 to 16.<br />

Although the maximum value is 32, values higher than 16 are not currently<br />

recommended by DDN support.<br />

21-8 <strong>Lustre</strong> <strong>1.6</strong> <strong>Operations</strong> <strong>Manual</strong> • September 2008

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!