Skip to content

Instantly share code, notes, and snippets.

View nocko's full-sized avatar

Shawn Nock nocko

View GitHub Profile
@nocko
nocko / fio-output-sample
Created February 12, 2013 20:53
Sample output from fio
cfmi-dicom-reader1: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=2
cfmi-dicom-reader2: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=2
cfmi-dicom-reader3: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=2
cfmi-dicom-reader4: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=2
cfmi-dicom-reader5: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=2
cfmi-dicom-writer: (g=0): rw=write, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=2
cfmi-vm: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=2
fio-2.0.13
Starting 7 processes
@nocko
nocko / adam-multiprocessing-2
Created June 30, 2011 20:35
Second multiprocessing example with Adam's parameters
#!python
from multiprocessing.managers import BaseManager
from multiprocessing import Pool
import subprocess
import time
def dowork(work):
with open('/tmp/proof-of-life', 'a') as output:
retcode = subprocess.call(['/usr/bin/php','/usr/local/neato/process.php', work])
@nocko
nocko / adam-mutliprocessing-1
Created June 30, 2011 20:32
Basic Multiprocessing example for Adam
#!python
#from multiprocessing.managers import BaseManager
from multiprocessing import Pool
import subprocess
import time
def dowork(work):
with open('/tmp/proof-of-life', 'a') as output:
retcode = subprocess.call(['echo -n '+work], shell=True)