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.

19.4.<strong>1.6</strong> Test<br />

A test is a configuration of a test case, which defines individual point-to-pointer<br />

network conversation all running in parallel. A user can specify test properties, such<br />

as RDMA operation type, source group, target group, distribution of test nodes,<br />

concurrency of test, etc.<br />

19.4.1.7 Batch<br />

A test batch is a named collection of tests. All tests in a batch run in parallel. Each<br />

test should belong to a batch; tests should not exist individually. Users can control a<br />

test batch (run, stop); they cannot control individual tests.<br />

19.4.1.8 Sample Script<br />

These are the steps to run a sample LNET self-test script simulating the traffic<br />

pattern of a set of <strong>Lustre</strong> servers on a TCP network, accessed by <strong>Lustre</strong> clients on an<br />

InfiniBand network (connected via LNET routers). In this example, half the clients<br />

are reading and half the clients are writing.<br />

1. Load libcfs.ko, lnet.ko, ksocklnd.ko and lnet_selftest.ko on all test nodes and<br />

the console node.<br />

2. Run this script on the console node:<br />

#!/bin/bash<br />

export LST_SESSION=$$<br />

lst new_session read/write<br />

lst add_group servers 192.168.10.[8,10,12-16]@tcp<br />

lst add_group readers 192.168.1.[1-253/2]@o2ib<br />

lst add_group writers 192.168.1.[2-254/2]@o2ib<br />

lst add_batch bulk_rw<br />

lst add_test --batch bulk_rw --from readers --to servers \<br />

brw read check=simple size=1M<br />

lst add_test --batch bulk_rw --from writers --to servers \<br />

brw write check=full size=4K<br />

# start running<br />

lst run bulk_rw<br />

# display server stats for 30 seconds<br />

lst stat servers & sleep 30; kill $?<br />

# tear down<br />

lst end_session<br />

Chapter 19 <strong>Lustre</strong> I/O Kit 19-19

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

Saved successfully!

Ooh no, something went wrong!