Skip to content

Instantly share code, notes, and snippets.

@hiroyuki-sato
hiroyuki-sato / gist:5020151
Created February 23, 2013 15:32
FreeBSD 10GbE driver
static ixgb_vendor_info_t ixgb_vendor_info_array[] =
{
/* Intel(R) PRO/10000 Network Connection */
{INTEL_VENDOR_ID, IXGB_DEVICE_ID_82597EX, PCI_ANY_ID, PCI_ANY_ID, 0},
{INTEL_VENDOR_ID, IXGB_DEVICE_ID_82597EX_SR, PCI_ANY_ID, PCI_ANY_ID, 0},
{INTEL_VENDOR_ID, IXGB_DEVICE_ID_82597EX_LR, PCI_ANY_ID, PCI_ANY_ID, 0},
/* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */
/* required last entry */
{0, 0, 0, 0, 0}
@hiroyuki-sato
hiroyuki-sato / gist:5161980
Last active December 14, 2015 22:58
Netatalk problem

Problem1

  • Owner Privilege change failed When I chagne privileage "read & write" to "read only"
  • "An unexpected error occurred (error -50)" error occured

Log

@hiroyuki-sato
hiroyuki-sato / gist:6249158
Created August 16, 2013 11:38
patch for OFED-3.5-2-20130805-0844 build on RHEL6.4(2.6.32-358.14.1.el6.x86_64)
--- compat-rdma-3.5/compat/compat-3.3.c.org 2013-08-16 19:20:02.447724492 +0900
+++ compat-rdma-3.5/compat/compat-3.3.c 2013-08-16 19:19:47.834773493 +0900
@@ -101,6 +101,7 @@
}
+#ifndef CONFIG_COMPAT_RHEL_6_4
/**
* __pskb_copy - create copy of an sk_buff with private head.
* @skb: buffer to copy
; 言語を日本語にする
(set-language-environment 'Japanese)
; UTF-8とする
(prefer-coding-system 'utf-8)
; 起動時の画面はいらない
(setq inhibit-startup-message t)
(setq-default ispell-program-name "aspell")
@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