Skip to content

Instantly share code, notes, and snippets.

@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
@hiroyuki-sato
hiroyuki-sato / gist:9486306
Created March 11, 2014 14:05
ib_read_lat test be9559848 on CentOS 6.5

Client

# 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

@hiroyuki-sato
hiroyuki-sato / gist:9972198
Created April 4, 2014 10:53
Setup biuld-iso environment for VyOS
for i in git autoconf gpkg-dev live-helper syslinux genisoimage ssh sudo make ; do
apt-get install -y $i
done
wget -O - http://packages.vyos.net/vyos-pubkey.gpg | sudo apt-key add -
echo "deb http://backports.debian.org/debian-backports squeeze-backports main" > /etc/apt/sources.list.d/squeeze-backports.list
apt-get update
sudo apt-get -t squeeze-backports install -y squashfs-tools
@hiroyuki-sato
hiroyuki-sato / gist:9972631
Last active October 10, 2019 04:57
VyOS build-iso環境の作り方

VyOS build-iso環境の作り方

こちらのREADMEに従いましょう。 https://github.com/vyos/build-iso

手順

  • Debian 6.0.9をインストールします。
  • debian-6.0.9-amd64-netinst.iso などを使って環境を構築します。
@hiroyuki-sato
hiroyuki-sato / gist:9975936
Last active April 6, 2024 14:50
おれおれVyOSの作り方。

VyOSの独自拡張の方法(ソースの修正は多分あってる)

ちょっとコマンド追加したVyOSを作りたいなという時に利用します。

カスタムパッケージの作成

自分のgithubなどにカスタムのvyatta-cfg-systemを作っておきます。 例では、https://github.com/hiroyuki-sato/vyatta-cfg-system.git を使います。

@hiroyuki-sato
hiroyuki-sato / gist:10001545
Created April 6, 2014 04:25
Forkしたbuild-isoの内容を最新に同期する方法

Forkしたbuild-isoの内容を最新に同期する方法

git clone https://github.com/hiroyuki-sato/build-iso.git
cd build-iso

git remote add upstream https://github.com/vyos/build-iso.git
git fetch upstream
git merge --ff upstream/helium 
@hiroyuki-sato
hiroyuki-sato / gist:10002694
Created April 6, 2014 07:48
vyos add package
Hit http://packages.vyos.net squeeze Release.gpg
Ign http://packages.vyos.net/debian/helium/ squeeze/main Translation-en
Hit http://packages.vyos.net helium Release.gpg
Ign http://packages.vyos.net/vyos/ helium/main Translation-en
Hit http://packages.vyos.net squeeze Release
Hit http://packages.vyos.net helium Release
Hit http://packages.vyos.net squeeze/main amd64 Packages
Hit http://packages.vyos.net helium/main amd64 Packages
Reading package lists... Done
@hiroyuki-sato
hiroyuki-sato / gist:10014119
Created April 7, 2014 02:40
aptitude --download-only
cat /tmp/aa
infiniband-diags
ibutils
ibverbs-utils
perftest
libmlx4-1
libmthca1
mstflint
rdmacm-utils
opensm
0 packages upgraded, 312 newly installed, 0 to remove and 0 not upgraded.
Need to get 154 MB/155 MB of archives. After unpacking 512 MB will be used.
The following packages have unmet dependencies:
rdmacm-utils: Depends: libibverbs1 (>= 1.1.2) which is a virtual package.
Depends: librdmacm1 (>= 1.0.7) which is a virtual package.
ibutils: Depends: libibcommon1 which is a virtual package.
Depends: libibumad1 which is a virtual package.
Depends: libopensm2 which is a virtual package.
Depends: tcl8.4 (>= 8.4.16) which is a virtual package.
Depends: libibdm1 which is a virtual package.

VyOS Hacking Guideのようなもの

*.debファイルを追加したい。

  • pkgsにdebファイルを追加します。
  • livecd/config.vyatta/chroot_local-packageslists/vyatta-extra.listにパッケージを追加する

コマンドを実行したい。