Skip to content

Instantly share code, notes, and snippets.

@syuu1228
syuu1228 / mmcmod-dev.diff
Created January 20, 2011 09:17
mmcmod for development branch of memcached
diff --git a/Makefile.am b/Makefile.am
index 3cc5952..5f3ff2c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -16,7 +16,8 @@ memcached_SOURCES = memcached.c memcached.h \
thread.c daemon.c \
stats.c stats.h \
util.c util.h \
- trace.h cache.h sasl_defs.h
+ trace.h cache.h sasl_defs.h \
@syuu1228
syuu1228 / gist:1056021
Created June 30, 2011 11:09
ERROR: www-client/chromium-12.0.742.91-r1 failed
 * Package: www-client/chromium-12.0.742.91-r1
 * Repository: gentoo
 * Maintainer: chromium@gentoo.org
 * USE: amd64 cups elibc_glibc gnome gnome-keyring kernel_linux multilib userland_GNU xinerama
 * FEATURES: sandbox
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/2.6.38-gentoo-r6/build
syuu@localhost Downloads % uname -a
Linux localhost 2.6.38-gentoo-r6 #5 SMP PREEMPT Sat Jun 25 00:11:07 JST 2011 x86_64 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz GenuineIntel GNU/Linux
syuu@localhost Downloads % ls -ld /usr/src/linux
lrwxrwxrwx 1 root root 22 Jun 25 02:19 /usr/src/linux -> linux-2.6.38-gentoo-r6
syuu@localhost Downloads %
/*
* Copyright (c) 1980, 1986, 1991, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
/*
* Copyright (c) 1980, 1986, 1991, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
/*
* Copyright (c) 1980, 1986, 1991, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
@syuu1228
syuu1228 / gist:1284191
Created October 13, 2011 13:18
netty benchmark log
xsocketsyuu@ubuntu108:~/benchmark$ ant benchmark
Buildfile: /home/syuu/benchmark/build.xml
init:
build:
[echo] benchmark: /home/syuu/benchmark/build.xml
[javac] /home/syuu/benchmark/build.xml:33: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
benchmark:
@syuu1228
syuu1228 / gist:1414558
Created December 1, 2011 07:15
lspci -tv
$ sudo lspci -tv
-[0000:00]-+-00.0 Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller
+-02.0 Intel Corporation 82G33/G31 Express Integrated Graphics Controller
+-1a.0 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4
+-1a.1 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5
+-1a.2 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6
+-1a.7 Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2
+-1b.0 Intel Corporation 82801I (ICH9 Family) HD Audio Controller
+-1c.0-[01]--
+-1c.4-[02]----00.0 Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller
@syuu1228
syuu1228 / gist:1414567
Created December 1, 2011 07:16
lspci -vs
$ sudo lspci -vs 0000:00:1c.4
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 02) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: f0000000-f1ffffff
Prefetchable memory behind bridge: 00000000f2200000-00000000f23fffff
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Giga-byte Technology Device 5001
@syuu1228
syuu1228 / gist:1414591
Created December 1, 2011 07:19
cat /proc/interrupts
$ sudo cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
0: 43 2 8 394 IO-APIC-edge timer
1: 5 6385 11823 11 IO-APIC-edge i8042
7: 0 0 0 0 IO-APIC-edge parport0
8: 0 0 1 0 IO-APIC-edge rtc0
9: 0 0 0 0 IO-APIC-fasteoi acpi
16: 183513 8 7 10 IO-APIC-fasteoi uhci_hcd:usb3
18: 1 0 1 0 IO-APIC-fasteoi ehci_hcd:usb1, uhci_hcd:usb5, uhci_hcd:usb8
19: 0 0 0 0 IO-APIC-fasteoi uhci_hcd:usb7