Skip to content

Instantly share code, notes, and snippets.

make all-recursive
make[1]: Entering directory `/tmp/memcached-1.4.11'
Making all in doc
make[2]: Entering directory `/tmp/memcached-1.4.11/doc'
make all-am
make[3]: Entering directory `/tmp/memcached-1.4.11/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/tmp/memcached-1.4.11/doc'
make[2]: Leaving directory `/tmp/memcached-1.4.11/doc'
make[2]: Entering directory `/tmp/memcached-1.4.11'
@santisaez
santisaez / memcached-oom.py
Created January 5, 2012 10:09
SERVER_ERROR out of memory storing object with memcached 1.4.10
#!/usr/bin/python
import memcache
import sys
import random
MEMCACHED_SERVER = sys.argv[1]
MEMCACHED_PORT = '11211'
MEMCACHED_KEY = 'testing.' + str(random.randint(1, pow(2,16))) + '.'
@santisaez
santisaez / benchmark.py
Created July 15, 2011 15:43
InnoDB 1GB data
#!/usr/bin/python
import MySQLdb
import time
conn = MySQLdb.connect(host="localhost", db= "benchmark", read_default_file="~/.my.cnf")
cursor = conn.cursor()
id = 1
count = 28200000