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.

20.2.3 Client Read-Write Offset Survey<br />

The offset_stats parameter maintains statistics for occurrences where a series of<br />

read or write calls from a process did not access the next sequential location. The<br />

offset field is reset to 0 (zero) whenever a different file is read/written.<br />

Read/write offset statistics are off, by default. The statistics can be activated by<br />

writing anything into the offset_stats file.<br />

Example:<br />

# cat /proc/fs/lustre/llite/lustre-f57dee00/rw_offset_stats<br />

snapshot_time: 1155748884.591028 (secs.usecs)<br />

R/W PID RANGE STARTRANGE ENDSMALLEST EXTENTLARGEST EXTENTOFFSET<br />

R 8385 0 128 128 128 0<br />

R 8385 0 224 224 224 -128<br />

W 8385 0 250 50 100 0<br />

W 8385 100 1110 10 500 -150<br />

W 8384 0 5233 5233 5233 0<br />

R 8385 500 600 100 100 -610<br />

Where:<br />

Field<br />

R/W<br />

PID<br />

Range Start/Range End<br />

Description<br />

Whether the non-sequential call was a read or write<br />

Process ID which made the read/write call.<br />

Range in which the read/write calls were sequential.<br />

Smallest Extent<br />

Largest Extent<br />

Offset<br />

Smallest extent (single read/write) in the corresponding range.<br />

Largest extent (single read/write) in the corresponding range.<br />

Difference from the previous range end to the current range start.<br />

For example, Smallest-Extent indicates that the writes in the<br />

range 100 to 1110 were sequential, with a minimum write of 10<br />

and a maximum write of 500. This range was started with an<br />

offset of -150. That means this is the difference between the last<br />

entry’s range-end and this entry’s range-start for the same file.<br />

The rw_offset_stats file can be cleared by writing to it:<br />

echo > /proc/fs/lustre/llite/lustref57dee00/rw_offset_stats<br />

Chapter 20 <strong>Lustre</strong>Proc 20-15

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

Saved successfully!

Ooh no, something went wrong!