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

« back to all changes in this revision

Viewing changes to src/test/memuse/test_pool_memuse_tcmalloc.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
 
11
 
 
12
num_osd=$2
 
13
maxosd=$((num_osd-1))
 
14
for osd_num in `seq 0 $maxosd`; do
 
15
    ./ceph osd tell $osd_num start_profiler
 
16
done
 
17
 
 
18
for i in `seq 0 $1`; do
 
19
    for j in `seq 0 9`; do
 
20
        poolnum=$((i*10+j))
 
21
        poolname="pool$poolnum"
 
22
        ./rados mkpool $poolname &
 
23
    done
 
24
    wait
 
25
done