23.07.2014 Views

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

■<br />

On the journal:<br />

ext3 journaling is asynchronous unless a handle specifically requests a<br />

synchronous operation. Filesystem-modifying operations on the MDS that make<br />

up a single file create operation are:<br />

■ Allocate inode (inode bitmap, group descriptor, new inode)<br />

■<br />

■<br />

Create directory entry (directory block, parent inode for timestamps)<br />

Update lov_objids file (<strong>Lustre</strong> file)<br />

■ Update last_rcvd file (<strong>Lustre</strong> file)<br />

For a single inode, each of the above items dirties a single block in the journal (7<br />

blocks = 28 KB in total). When many new files are created at one time, dirty<br />

blocks are merged in the journal, because each block needs to be dirtied only<br />

once per transaction (5s or 1/4 of full journal, whichever occurs earlier). For 1,000<br />

files created in a single directory, this works out to 516 KB, if they are all created<br />

within the same transaction.<br />

In 2.6 kernels it is possible to tune the ext3 journal commit interval with "-o<br />

commit={seconds}". This may be desirable for performance testing.<br />

ext3 code reserves a lot more blocks (about 70) for worst-case scenarios (e.g.,<br />

growing a directory which also results in a split of the directory index, quota<br />

updates, adding new indirect blocks for each of the <strong>Lustre</strong> files modified). These<br />

are returned to the journal when the transaction is complete; most are returned<br />

unused.<br />

To avoid spurious journal commits due to these temporary reservations, calculate<br />

the journal size based on this formula (assuming a default of 32 MDS threads):<br />

70 blocks/thread * 32 threads * 4 KB/block * 4 = 35840 KB<br />

Appendix D <strong>Lustre</strong> Knowledge Base D-35

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

Saved successfully!

Ooh no, something went wrong!