Linux cluster I/O performance test (Li chenguang)
This article describes how to use Iozone's performance testing tool to test cluster performance.
test procedure:
1. install the Iozone on the server node (which can be downloaded on www.iozone.org)
# rpm-IVH iozone-3-326.i386.rpm
2. copy the Iozone of the server node to/tmp of all nodes
# cp/opt/Iozone/bin/Iozone/tmp
# RCP/opt/Iozone/bin/ iozone node1: /tmp (perform this operation on each node or write a shell script)
3. on the server node
# cp/opt/Iozone/bin/Iozone/root
4. edit/root/nodelist in the following format:
node1/test/fs/tmp/Iozone
node2/test/fs/tmp/Iozone
............. ........
5. Export the file system on the server node to mount other nodes.
# Add the following lines to VI/etc/exports
/test * (RW)
# exportfs-A
Mount/testfs on all nodes:
# mkdir/testfs
# Mount server:/testfs
6. run
#/root/Iozone-I 0-I l-R 4096-S 4G -recblog.xls-T 2-+ M nodelist-c | tee Iozone on the server node. log
Program during the test, data packets of each node are generated in/testfs. After the test is completed, data packets of each node are generated in Iozone. log shows the read/write and maximum speed of each node.
note: During the test, the file size must be at least twice the system cache size, so that the test result is feasible.