Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am johnwilliams on github.
  • I am williamsjohn (https://keybase.io/williamsjohn) on keybase.
  • I have a public key ASC6vswkKjtf_Y2AOLdjDZVlX6aE8b50mjodtdXMtghVbAo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am johnwilliams on github.
* I am johnwilliams (https://keybase.io/johnwilliams) on keybase.
* I have a public key whose fingerprint is 2427 470F D3FA 80C5 14C6 F144 3E39 CBDA 3E39 2D39
To claim this, I am signing this object:
MODES = %w(setup clean test upload download-prep download read-write query-prep query)
FLAGS = MODES.map { |mode| "--#{mode}" }
flag = (ARGV.shift || "").downcase
index = FLAGS.index(flag)
abort "please specify one of #{FLAGS.join(', ')}" if index.nil?
mode = MODES[index].tr("-", "_").to_sym
options = {}
@johnwilliams
johnwilliams / gist:1136860
Created August 10, 2011 13:59
fusionIO 1.28TB Duo
# fio --filename=/dev/md0 --direct=1 --rw=randread --bs=4k --size=5G --numjobs=64 --runtime=10 --group_reporting --name=file1
file1: (g=0): rw=randread, bs=4K-4K/4K-4K, ioengine=sync, iodepth=1
...
file1: (g=0): rw=randread, bs=4K-4K/4K-4K, ioengine=sync, iodepth=1
fio 1.57
Starting 64 processes
Jobs: 64 (f=59): [rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr] [0.0% done] [996.2M/0K /s] [249K/0 iops] [eta 1158035244d:17h:03mJobs: 64 (f=64): [rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr] [30.8% done] [1053M/0K /s] [263K/0 iops] [eta 00m:09s] Jobs: 2 (f=2): [______________________________________________________r_______Er] [5.3% done] [859.2M/0K /s] [215K/0 iops] [eta 03m:54s]]
file1: (groupid=0, jobs=64): err= 0: pid=7297
read : io=11808MB, bw=1180.7MB/s, iops=302252 , runt= 10001msec
clat (usec): min=22 , max=19987 , avg=174.80, stdev=19.13
john@ubuntu:~/chef-repo$ rake metadata --trace
(in /home/john/chef-repo)
** Invoke metadata (first_time)
** Invoke /home/john/chef-repo/cookbooks/netboot/metadata.json (first_time)
** Invoke /home/john/chef-repo/cookbooks/netboot/metadata.rb (first_time, not_needed)
** Execute /home/john/chef-repo/cookbooks/netboot/metadata.json
/usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/knife.rb:121:in `configure_chef': No user specified, pass via -u or specifiy 'node_name' in /home/john/.chef/knife.rb (ArgumentError)
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/knife.rb:95:in `find_command'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/application/knife.rb:109:in `run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/bin/knife:26
<?xml version="1.0" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0