Skip to content

Instantly share code, notes, and snippets.

@hiroyuki-sato
hiroyuki-sato / gist:36ef286b084a8753c3d1
Created August 26, 2015 00:06
java -jar ./pkg/embulk-0.7.3.jar gem install libyajl2
java -jar ./pkg/embulk-0.7.3.jar gem install libyajl2
2015-08-26 09:06:10.643 +0900: Embulk v0.7.3
Building native extensions. This could take a while...
Successfully installed libyajl2-1.2.0
1 gem installed
@hiroyuki-sato
hiroyuki-sato / gist:a185469981de42de86b4
Created August 26, 2015 12:47
groonga long query log
2015-08-26 20:53:42.805712|0x1104acd70|>select
2015-08-26 20:53:42.828726|0x1104acd70|:000000023016000 filter(14)
2015-08-26 20:53:42.829021|0x1104acd70|:000000023311000 filter(2)
2015-08-26 20:53:42.829286|0x1104acd70|:000000023576000 filter(8)
2015-08-26 20:53:42.829400|0x1104acd70|:000000023696000 filter(7)
2015-08-26 20:53:42.829867|0x1104acd70|:000000024157000 filter(7)
2015-08-26 20:53:42.830062|0x1104acd70|:000000024352000 filter(7)
2015-08-26 20:53:42.830377|0x1104acd70|:000000024667000 filter(34)
2015-08-26 20:53:42.830821|0x1104acd70|:000000025111000 filter(34)
2015-08-26 20:53:42.831021|0x1104acd70|:000000025311000 filter(63)
@hiroyuki-sato
hiroyuki-sato / 00_use_m4_and_GNU_sed
Last active August 27, 2015 10:26
Groonga autoreconf -v --force --install hang
++ /usr/local/Cellar/m4/1.4.17/bin/m4 -daq --prefix --trace=AC_LIB_LTDL --trace=AC_WITH_LTDL --trace=LT_WITH_LTDL --trace=LTDL_INIT - configure.ac
++ /usr/local/opt/gnu-sed/libexec/gnubin/sed -n -e 's|#.*$||; s|^dnl .*$||; s| dnl .*$||;
/^m4trace: -1- AC_LIB_LTDL/ {
s|^m4trace: -1- AC_LIB_LTDL[([]*||
s|], [[]|:|g
s|[])]*$|:|
s|\(.\):$|\1|
p
}
/^m4trace: -1- AC_WITH_LTDL/ {
@hiroyuki-sato
hiroyuki-sato / gist:9390406
Created March 6, 2014 14:05
How to install pib on CentOS6.5
yum install -y libibverbs-devel libibverbs-utils librdmacm librdmacm-utils librdmacm-devel infiniband-diags opensm perftest

rpm -ivh http://www.nminoru.jp/%7Enminoru/network/infiniband/src/libpib-0.0.6-1.el6.x86_64.rpm

cd ~
git clone https://github.com/nminoru/pib.git
cd pib/driver
make
/sbin/service rdma start

insmod pib.ko

@hiroyuki-sato
hiroyuki-sato / gist:9390600
Created March 6, 2014 14:15
Install debuginfo for Infiniband o CentOS6.5
perl -i -pe 's/^enabled=0/enabled=1/' /etc/yum.repos.d/CentOS-Debuginfo.repo
debuginfo-install libibverbs-utils \
librdmacm \
librdmacm-utils \
infiniband-diags \
opensm kernel
@hiroyuki-sato
hiroyuki-sato / gist:9391019
Last active August 29, 2015 13:57
pid 0.3.2でのib_read_bw

pid 0.3.2でのib_read_bw

クライアント

ib_read_bw -d pib_1 -a server_ip
---------------------------------------------------------------------------------------
Device not recognized to implement inline feature. Disabling it

@hiroyuki-sato
hiroyuki-sato / gist:9391426
Created March 6, 2014 14:52
ib_read_lat with pib 0.3.2 on CentOS6.5

ib_read_lat with pib 0.3.2 on CentOS6.5

client

# ib_read_lat -d pib_1 -a server_ip
---------------------------------------------------------------------------------------
Device not recognized to implement inline feature. Disabling it
---------------------------------------------------------------------------------------

RDMA_Read Latency Test

@hiroyuki-sato
hiroyuki-sato / gist:9429809
Created March 8, 2014 12:27
ib_read_bw result on pid 0.3.4 (1st)
# ib_read_lat -d pib_1 -a server_ip
---------------------------------------------------------------------------------------
Device not recognized to implement inline feature. Disabling it
---------------------------------------------------------------------------------------
                    RDMA_Read Latency Test
 Dual-port       : OFF		Device         : pib_1
 Number of qps   : 1		Transport type : IB
 Connection type : RC
 TX depth        : 1

Mtu : 4096[B]

@hiroyuki-sato
hiroyuki-sato / gist:9442541
Last active August 29, 2015 13:57
ib_read_bw result with pib 0.3.4 on CentOS6.5

Client

# ib_read_bw -d pib_1 -a server_ip
---------------------------------------------------------------------------------------
Device not recognized to implement inline feature. Disabling it
---------------------------------------------------------------------------------------
                    RDMA_Read BW Test
 Dual-port       : OFF		Device         : pib_1
 Number of qps   : 1		Transport type : IB

Connection type : RC

@hiroyuki-sato
hiroyuki-sato / gist:9486150
Created March 11, 2014 13:58
ib_read_bw result with be9559 on CentOS 6.5 (8GB mem, 1CPU on ESXi5.5)
# ib_read_bw -d pib_1 -a server_ip
---------------------------------------------------------------------------------------
Device not recognized to implement inline feature. Disabling it
---------------------------------------------------------------------------------------
RDMA_Read BW Test
Dual-port : OFF Device : pib_1
Number of qps : 1 Transport type : IB
Connection type : RC
TX depth : 128
CQ Moderation : 100