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.

25.4.1 Round-Robin Allocator<br />

When OSTs have approximately the same amount of free space (within 20%), an<br />

efficient round-robin allocator is used. The round-robin allocator alternates stripes<br />

between OSTs on different OSSs. Here are several sample round-robin stripe orders<br />

(the same letter represents the different OSTs on a single OSS):<br />

3: AAA one 3-OST OSS<br />

3x3: ABABAB two 3-OST OSSs<br />

3x4: BBABABA one 3-OST OSS (A) and one 4-OST OSS (B)<br />

3x5: BBABBABA<br />

3x5x1: BBABABABC<br />

3x5x2: BABABCBABC<br />

4x6x2: BABABCBABABC<br />

25.4.2 Weighted Allocator<br />

When the free space difference between the OSTs is significant, then a weighting<br />

algorithm is used to influence OST ordering based on size and location. Note that<br />

these are weightings for a random algorithm, so the "emptiest" OST is not,<br />

necessarily, chosen every time. On average, the weighted allocator fills the emptier<br />

OSTs faster.<br />

25.4.3 Adjusting the Weighting Between Free Space and<br />

Location<br />

This priority can be adjusted via the /proc/fs/lustre/lov/lustremdtlov/qos_prio_free<br />

proc file. The default is 90%. Use the following<br />

command to permanently change this weighting on the MGS:<br />

lctl conf_param -MDT0000.lov.qos_prio_free=90<br />

Increasing the value puts more weighting on free space. When the free space priority<br />

is set to 100%, then location is no longer used in stripe-ordering calculations, and<br />

weighting is based entirely on free space.<br />

Note that setting the priority to 100% means that OSS distribution does not count in<br />

the weighting, but the stripe assignment is still done via a weighting—if OST2 has<br />

twice as much free space as OST1, then OST2 is twice as likely to be used, but it is<br />

not guaranteed to be used.<br />

Chapter 25 Striping and I/O Options 25-9

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

Saved successfully!

Ooh no, something went wrong!