Skip to content

Instantly share code, notes, and snippets.

View methodmissing's full-sized avatar

Lourens Naudé methodmissing

View GitHub Profile
### Keybase proof
I hereby claim:
* I am methodmissing on github.
* I am methodmissing (https://keybase.io/methodmissing) on keybase.
* I have a public key ASDrhwzuzATDd0jKEdQMv5MKjGJPeEjhdQSzX8wWPVdlago
To claim this, I am signing this object:
lourens@CarbonX1:~/src/optcarrot$ perf record -e cycles:u -j any,u -o perf.data -- ~/src/ruby/ruby/ruby -I~/src/ruby/ruby/lib -I~/src/ruby/ruby/. -I~/src/ruby/ruby/.ext/x86_64-linux -r./tools/shim.rb bin/optcarrot --benchmark --frames 10000 examples/Lan_Master.nes
fps: 41.020819873462244
checksum: 60838
[ perf record: Woken up 2840 times to write data ]
[kernel.kallsyms] with build id c8b95745cc1ba18edca26befae83a11e956471d1 not found, continuing without symbols
[ perf record: Captured and wrote 710.340 MB perf.data (908934 samples) ]
lourens@CarbonX1:~/src/optcarrot$ perf2bolt -p perf.data -o perf.fdata ~/src/ruby/ruby/ruby
PERF2BOLT: Starting data aggregation job for perf.data
PERF2BOLT: spawning perf job to read branch events
PERF2BOLT: spawning perf job to read mem events
# encoding: utf-8
require File.join(File.dirname(__FILE__), 'helper')
class TestIntegration < MosquittoTestCase
def setup
@result = nil
@client = nil
connected = false
@client = Mosquitto::Client.new(nil, true)
Lourenss-MacBook-Air:.libs lourens$ valgrind --tool=memcheck --leak-check=full ./test_monitor
==65128== Memcheck, a memory error detector
==65128== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==65128== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==65128== Command: ./test_monitor
==65128==
--65128-- ./test_monitor:
--65128-- dSYM directory is missing; consider using --dsymutil=yes
UNKNOWN __pthread_sigmask is unsupported. This warning will not be repeated.
==65128==
@methodmissing
methodmissing / speaker.md
Created June 26, 2012 22:18 — forked from matiaskorhonen/speaker.md
Frozen Rails Talk Proposal Template (http://2012.frozenrails.eu/)
methodmissing-2:tests lourens$ glibtool --mode=execute gdb test_shutdown_stress
GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul 1 10:50:06 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries .... done
(gdb) run
lourens@solaris:~/libxs/perf/.libs$ sudo dtrace -Z -n "xs*:::send-command-start{ trace(arg1); }" -c "./inproc_lat 100 100"
dtrace: description 'xs*:::send-command-start' matched 0 probes
message size: 100 [B]
roundtrip count: 100
average latency: 12.825 [us]
CPU ID FUNCTION:NAME
0 71132 _ZN2xs8object_t12send_commandERNS_9command_tE:send-command-start 4
0 71132 _ZN2xs8object_t12send_commandERNS_9command_tE:send-command-start 5
0 71132 _ZN2xs8object_t12send_commandERNS_9command_tE:send-command-start 5
0 71132 _ZN2xs8object_t12send_commandERNS_9command_tE:send-command-start 5
Lourenss-MacBook-Air:rbczmq lourens$ ruby perf/local_thr.rb tcp://127.0.0.1:5020 10 1000000
message size: 10 [B]
message count: 1000000
mean throughput: 410276 [msg/s]
mean throughput: 32.822 [Mb/s]
Lourenss-MacBook-Air:rbczmq lourens$ ruby perf/local_thr.rb tcp://127.0.0.1:5020 100 1000000
message size: 100 [B]
message count: 1000000
mean throughput: 293891 [msg/s]
mean throughput: 235.113 [Mb/s]
diff --git a/src/db.c b/src/db.c
index 669fba1..6ae83d3 100644
--- a/src/db.c
+++ b/src/db.c
@@ -514,7 +514,8 @@ void propagateExpire(redisDb *db, robj *key) {
argv[0] = createStringObject("DEL",3);
argv[1] = key;
incrRefCount(key);
-
+ if (db->expire_channel)
From 67da63b1bec8ba5fe0c71e019f1d287e447ca566 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lourens=20Naud=C3=A9?= <lourens@methodmissing.com>
Date: Thu, 3 Feb 2011 01:05:41 +0000
Subject: [PATCH] RECYCLE, RECYCLETO and DISPOSE commands supporting a Dead Letter Channel infrastructure for expired keys
---
src/db.c | 27 ++++++++++++++++++++++++++-
src/help.h | 17 ++++++++++++++++-
src/redis.c | 11 ++++++++---
src/redis.h | 5 +++++