Skip to content

Instantly share code, notes, and snippets.

View concubidated's full-sized avatar

Tyler Brekke concubidated

View GitHub Profile
#!/bin/bash
object_size=4194304; #4MB
duration=60;
results_folder="./smallio_results"
mkdir -p ${results_folder};
#one at a time
#for iosize in 4096 131072 4194304;
@concubidated
concubidated / bench.sh
Created February 7, 2013 21:06
Rados Bench
#!/bin/bash
num_instances=4
hosts=("ceph0" "ceph1")
let num_pools=${#hosts[@]}*$num_instances
#Create Pools
pgs=16384
#!/bin/bash
echo "Server, Disk, Size, Read BW, Write BW, Read BW, Write IOPS"
for osd in {0..43}
do
throughput=`tail -n3 osd.${osd}_* | grep time | awk -F \" '{print $30}'`
iops=`tail -n3 osd.${osd}_* | grep time | awk -F \" '{print $22}'`
hosts="node-14 compute-0-0"
for size in 4096 131072 4194304
do
for host in $hosts
do
for n in {1..4}
do
ssh $host rados bench 300 write -p performance_${n} -b $size >> rados_write_${size}_${host}_${n} &
done
@concubidated
concubidated / osd_fs_convert.sh
Created December 12, 2012 01:09
Sript to Convert OSD Filesystems
#!/bin/bash
##############
# NOTE
# The number at the end of the path where osd data is stored must match the number used in naming the osd
# Must be able to execute ceph health successfully on each osd host
#
# Last tested
# FROM XFS -> BTRFS (12/11/2012)
# FROM BTRFS -> XFS (12/10/2012)
#!/bin/bash
results="smalliobench_results"
osds=`cat /etc/ceph/ceph.conf | grep -B1 \`hostname\` | grep osd | cut -d. -f2 | cut -d] -f1`
journals=`cat /etc/ceph/ceph.conf | grep -A1 \`hostname\` | grep journal | cut -d'/' -f3`
i=0
for journal in $journals
do
jour[$i]=$journal
#!/usr/bin/python
import sys
import csv
import string
class Row:
def __init__(self, size):
self.size = size
self.node = []
self.run = []
#!/bin/bash
results="smalliobench_results"
osds=`cat /etc/ceph/ceph.conf | grep -B1 \`hostname\` | grep osd | cut -d. -f2 | cut -d] -f1`
journals=`cat /etc/ceph/ceph.conf | grep -A1 \`hostname\` | grep journal | cut -d'/' -f3`
i=0
for journal in $journals
do
jour[$i]=$journal
#!/bin/bash
results="smalliobench_results"
osds=`cat /etc/ceph/ceph.conf | grep -B1 \`hostname\` | grep osd | cut -d. -f2 | cut -d] -f1`
journals=`cat /etc/ceph/ceph.conf | grep -A1 \`hostname\` | grep journal | cut -d'/' -f3`
i=0
for journal in $journals
do
jour[$i]=$journal
root@hpbs-c01-s01:~# cat node.sh
#!/bin/bash
results="smalliobench_results"
osds=`cat /etc/ceph/ceph.conf | grep -B1 \`hostname\` | grep osd | cut -d. -f2 | cut -d] -f1`
journals=`cat /etc/ceph/ceph.conf | grep -A1 \`hostname\` | grep journal | cut -d'/' -f3`
i=0
for journal in $journals
do
jour[$i]=$journal