~ubuntu-branches/ubuntu/quantal/ceph/quantal

« back to all changes in this revision

Viewing changes to src/test/memuse/test_pool_memuse.sh

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-07-16 09:56:24 UTC
  • mfrom: (0.3.11)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: package-import@ubuntu.com-20120716095624-azr2w4hbhei1rxmx
Tags: upstream-0.48
ImportĀ upstreamĀ versionĀ 0.48

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -x
 
2
 
 
3
#
 
4
# Create a bunch of pools in parallel
 
5
# This test isn't very smart -- run it from your src dir.
 
6
#
 
7
 
 
8
set -e
 
9
 
 
10
CEPH_NUM_MON=1 CEPH_NUM_MDS=1 CEPH_NUM_OSD=$2 ./vstart.sh -n -d --valgrind_osd 'massif'
 
11
 
 
12
for i in `seq 0 $1`; do
 
13
    for j in `seq 0 9`; do
 
14
        poolnum=$((i*10+j))
 
15
        poolname="pool$poolnum"
 
16
        ./rados mkpool $poolname &
 
17
    done
 
18
    wait
 
19
done