zfs tuning

https://wiki.freebsd.org/ZFSTuningGuide

ZFSの性能測定とチューニング https://people.allbsd.org/~hrs/FreeBSD/sato-FBSDS20161129-zfs-profiling.pdf 2016

もう一つの地味な落とし穴
空き容量が20%を切ると性能が低下しやすくなる

ZFSの活用とチューニング https://people.allbsd.org/~hrs/FreeBSD/sato-FBSD20121207.pdf 2017

https://forums.freebsd.org/threads/help-me-track-down-random-crazy-slow-io.71135/

https://openzfs.github.io/openzfs-docs/Performance%20and%20Tuning/index.html

debian 10Gigabit Ethernet NICドライバ

[SOLVED] INTEL X540-T2 network card installed but only at 100Mbit, cant change or improve

auto negotiateをやめてLink速度を指定する - Qiita

100Mでリンク

10Gigabit Ethernet NICドライバをインストールする:CodeZine(コードジン)

Linuxで認識しないNICのドライバをインストールしてみた - Qiita

ドライバ更新で解決しなかった

sudo apt-get install make gcc linux-headers-$(uname -r)
cd /usr/local/src
sudo tar xvzf ixgbe-5.11.3.tar.gz 
cd ixgbe-5.11.3/src
sudo make
sudo make install

(確認)
sudo modinfo ixgbe

munin ホスト名、サーバ名、グループ名変更

rename

特に以下のファイル群は数が多いので、手動での変更は厳しい。参考サイトのワンライナーを使わせてもらう。

cd /var/lib/munin/domain.com/
for A in $(ls | grep localhost); do sudo mv ${A} $(echo ${A} | sed -e "s/localhost/newserver.domain.com/"); done

CentOS7 で munin のホスト名を変える - Qiita 2019

https://nullpopopo.blogcube.info/2015/07/munin-nodenamechange.html 2015

fluent-bit freebsd

https://www.freshports.org/sysutils/fluent-bit

FreeBSD 13.2 + fluent-bit 2.1.7 (pkg) で in_tail 問題なく動作 2023/09

in_tail plugin FreeBSD

https://docs.fluentbit.io/manual/pipeline/inputs/tail

This plugin only supports Linux, macOS and Windows. Please contribute another #elif for FreeBSD if there is "a facility to fetch the current path of an open file descriptor". If there is no such facility yet, you are out of luck.
in_tail crashs on ports FreeBSD, fluentbit-v1.6.7 · Issue #2897 · fluent/fluent-bit · GitHub

198570 – Add fnctl(F_GETPATH) support to FreeBSD fnctl(F_GETPATH) はない

なので http://openbsd-archive.7691.n7.nabble.com/NEW-sysutils-fluent-bit-td391465.html#a391977

patch-plugins_in_tail_tail_file_c 相当の修正をする。
fluent-bit-1.4.6 で確認。1.6.7 も同様のはず

FreeBSD 10.3

fluent-bit-0.11.16 in_tail pluginが有効にならない

fluent-bit-1.3.6 以下でビルド。in_tail も有効

cd fluent-bit-1.3.6
cd build/
cmake .. -DFLB_RECORD_ACCESSOR=Off -DFLB_STREAM_PROCESSOR=Off
gmake
gmake install

fluent-bit --help
...
Inputs
  tail                  Tail files

fluent-bit-1.3.6 で in_tail のrotationの動作がおかしかった(重複)ので
fluent-bit-1.4.6 + plugins/in_tail/tail_file.c パッチに変更。ビルドは 1.3.6 と同様

fluent-bit-1.6.7 以下のビルドエラー

/usr/bin/ld: libluajit.a(lj_prng.o): in function `lj_prng_seed_secure':
lj_prng.c:(.text+0x160): undefined reference to `getentropy'
cc: error: linker command failed with exit code 1 (use -v to see invocation)