Gentoo Archives: gentoo-cluster

From: t35t0r <t35t0r@×××××.com>
To: gentoo-cluster@l.g.o
Cc: gentoo-user <gentoo-user@l.g.o>
Subject: Re: [gentoo-cluster] Iozone on multiple nodes using ssh
Date: Thu, 08 Jan 2009 17:04:14
Message-Id: 6b75ae110901080904o9ee880bk561fa8c7110df401@mail.gmail.com
In Reply to: [gentoo-cluster] Iozone on multiple nodes using ssh by Chuanwen Wu
1 Not on gentoo but on RHEL. Run this script on master host. It will run
2 iozone for small to large file sizes (up to 1G).
3
4 ---- cut ----
5
6 #!/bin/sh
7
8 # full path to iozone executable
9 iozoneExec="/home/somewhere/bin/iozone"
10 # full path to the host file
11 hostFile="/home/somewhere/iozoneHostsAwesomeFS.txt"
12 # the number of hosts in the host file
13 numHosts="16"
14 # the record size or block size to use in all transfers
15 recordSize="32k"
16 # the file output prefix (the final file name will be
17 ${filePrefix}-${recordSize}:${fs}k.xls or .out depending on whether it
18 is the excel file or log file, where ${fs} is the file size for the
19 transfer in KB (incrementally generated by the loop)).
20 filePrefix="cluster-awesomeFS"
21
22 # file sizes from 32k to 1g increasing by powers of 2
23 export rsh="ssh"
24 export RSH="ssh"
25 for ((i=5;i<=20;i+=1)); do
26 fs=$((2**$i))
27 $iozoneExec -RcTM -t $numHosts -b
28 ${filePrefix}-${recordSize}:${fs}k.xls -r $recordSize -s ${fs}k -+m
29 $hostFile > ${filePrefix}-${recordSize}:${fs}k.out
30 done
31
32 ---- cut ----
33
34 ---- cut ----
35
36 sample hosts file:
37
38 # hostname directoryForTestFiles pathToIozoneOnEachHost
39 node1 /net/NAS/awesomeFS /home/somewhere/bin/iozone
40 node2 /net/NAS/awesomeFS /home/somewhere/bin/iozone
41 node3 /net/NAS/awesomeFS /home/somewhere/bin/iozone
42
43 ---- cut ----
44
45 On Thu, Jan 8, 2009 at 9:12 AM, Chuanwen Wu <wcw8410@×××××.com> wrote:
46 > Hi,
47 > I am trying to use iozone to test my cluster with ssh but not rsh, but
48 > I still can't running iozone on multiple nodes.

Replies

Subject Author
Re: [gentoo-cluster] Iozone on multiple nodes using ssh Eric Thibodeau <kyron@××××××××.com>