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.

What is the <strong>Lustre</strong> data path?<br />

On the OST, data is read directly from the disk into pre-allocated network I/O<br />

buffers, in chunks up to 1 MB in size. This data is sent (zero-copy where possible) to<br />

the clients, where it is put (again, zero-copy where possible) into the file's data<br />

mapping. The clients maintain local writeback and readahead caches for <strong>Lustre</strong>.<br />

On the OST, the filesystem metadata such as inodes, bitmaps and file allocation<br />

information is cached in RAM (up to the maximum amount that the kernel allows).<br />

No user data is currently cached on the OST.<br />

In cases where only few files are read by many clients, it makes sense to use a RAID<br />

device with a lot of local RAM cache so that the multiple read requests can skip the<br />

disk access.<br />

The networking code bundles up page requests into a maximum of 1 MB in a single<br />

RPC to minimize overhead. In each client OSC, this is controlled by the<br />

/proc/fs/lustre/osc/*/max_pages_per_rpc field. The size of the writeback<br />

cache can be tuned via /proc/fs/lustre/osc/*/max_dirty_mb. The size of the<br />

readahead can be tuned via /proc/fs/lustre/llite/max_read_ahead_mb.<br />

Total client side cache usage can be limited via<br />

/proc/fs/lustre/llite/max_cached_mb.<br />

Questions about using <strong>Lustre</strong> quotas<br />

This section covers various aspects of using <strong>Lustre</strong> quotas.<br />

When I enable quotas with lfs quotaon, will it automatically set default quotas for<br />

all users or do I have to set them for each user/group individually?<br />

In that case, the default limit will be 0, which means no limit.<br />

What happens if a user/group has already more files/disk usage than his quotas<br />

allows?<br />

Given that it will be 0 initially, no users will be over quotas. To preempt the next<br />

question, if a user has a limit set that is less than his existing usage, he will simply<br />

start to get -EDQUOT errors on subsequent attempts to write data.<br />

We only want group quotas, do we have to enable user quotas as well?<br />

We do not know of any particular failure if only group quotas are enabled, but the<br />

more your use cases match our testing then the better off you will be.<br />

For user quotas, even if you do not want to enforce limits, you can enable quotas<br />

but not set any limits. Doing this makes future operation of enabling limits on<br />

users easier (when/if you decide to) as usage will already be tracked and<br />

accounted for (saving you the need to do that initial accounting). It also provides<br />

you with a means to quickly assess how much space is being consumed on a userby-user<br />

basis.<br />

D-36 <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!