Skip to content

Instantly share code, notes, and snippets.

View paul's full-sized avatar

Paul Sadauskas paul

View GitHub Profile
require 'benchmark'
require 'mongoid'
require 'pp'
require 'active_support'
conn = Mongo::Connection.new
conn.drop_database('mongoid_test')
db = conn.db("mongoid_test")
/*
* Correct field names and ids (and for) so forms work and labels
* line up. Replaces names like:
*
* post[author][42][name]
* post[author][][name]
*
* with a timestamp, so that there's no collisions.
*
* post[author][1283896010739][name]
@paul
paul / vimrc
Created September 14, 2010 16:33
" Use vim settings, rather then vi settings (much better!)
" This must be first, because it changes other options as a side effect.
set nocompatible
" Use pathogen to easily modify the runtime path to include all plugins under
" the ~/.vim/bundle directory
call pathogen#helptags()
call pathogen#runtime_append_all_bundles()
" Editing behaviour {{{

2-device stripe

8KB blocks

time sudo iozone -a -c -e -s 1226m -q 8 -y 8
Iozone: Performance Test of File I/O
        Version $Revision: 3.308 $
	Compiled for 64 bit mode.

Build: linux

256 MB RAM

# time iozone -a -c -e -s 512m -q 4096 -y 64
Iozone: Performance Test of File I/O
        Version $Revision: 3.347 $
	Compiled for 64 bit mode.
	Build: linux-AMD64 

Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins

Setup

mdadm --create /dev/md0 --level=stripe --assume-clean --chunk=256 --raid-devices=4 /dev/sdd*
mkfs.xfs /dev/md0
mkdir -p /data
mount /dev/md0 /data

iozone

Setup

mdadm --create /dev/md0 --level=stripe --assume-clean --chunk=256 --raid-devices=4 /dev/sdd*
mkfs.xfs /dev/md0
mkdir -p /data
mount /dev/md0 /data

iozone

m1.large

Single mounted EBS, XFS

Iozone: Performance Test of File I/O
        Version $Revision: 3.308 $
  Compiled for 64 bit mode.
  Build: linux

Run began: Sun Aug 22 19:35:33 2010

m1.large

Iozone: Performance Test of File I/O
        Version $Revision: 3.308 $
  Compiled for 64 bit mode.
  Build: linux 

Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins

Al Slater, Scott Rhine, Mike Wisner, Ken Goss