Skip to content

Instantly share code, notes, and snippets.

@snowfrs
snowfrs / on-setting-qat-for-zfs.md
Created April 23, 2026 02:01 — forked from arakashic/on-setting-qat-for-zfs.md
On Setting Intel QuickAssist Accelerator for ZFS

I built a TrueNAS storage server with Intel QuickAssist accelerator for ZFS back in 2022. It worked well for me. Since I am upgrading it to TrueNAS 25.04, I had to redo a lot of the past work. So I decided to write down everything. This article is not meant to be a comprehensive guide.

Also, the QAT support in ZFS is mostly a research product. It does not get much maintenance as you can see in git history.

Introduction

The plan was building a TrueNAS storage server, but also using it host various containers and VMs for my services. Essentially, a all-in-one server (or all-in-BOOM if the server fails). Partly because my last NAS had hardware RAID card, and with limited hardware resource in the new server, I was looking at way to offload some ZFS work from the CPU. I did not find any ZFS specific accelerator that I can get cheaply on eBay utill I came across the QZFS paper in USENIX ATC'2019 (https://www.usenix.org/conference/atc19/presentation/hu-xiaokang). It demonstated a way to use the Intel QuickAssis

@snowfrs
snowfrs / create-macOS-iso.sh
Last active November 25, 2020 06:41 — forked from julianxhokaxhiu/create-iso.sh
Simple bash script to create a Bootable ISO from macOS Big Sur Install Image from Mac App Store
#!/usr/bin/env bash
#===========================================================================
# Works only with the official image available in the Mac App Store.
# Make sure you download the official installer before running this script.
#===========================================================================
# Change this at your desire. Sometimes this works out of the box, sometimes not.
# Default size: ~21 GB
DISK_SIZE="20000m"
@snowfrs
snowfrs / gpg.asc
Last active August 11, 2019 03:10
my gpg info
-----BEGIN PGP PUBLIC KEY BLOCK-----
xsFNBFpTD+kBEACrEFLUP+xGp0vQ+6ii7S58azWS8gXEmZHiDIklPV8kAxdU+egj
tB3mLulmFHnCIf/pxDyq/qJlR88AfypvviVrUGUURlT7vEWER970lWv2QOzelg0c
R9QbQ9jTzuyY4j5aVhuUMhfuH8T1tGdVUprZuUT05wSJU7DXrGoQbazPScxf6Z2l
8ZjrcM9spI+8CFOFTGJHL+HY6oCx6RbO3K4SvPa4KduURAPMc+d58WoYTpogGeW1
NlpjyqnADS2t7QfEZR+gy7MCXENzesmyC4E9ygSSbPK1LT2A6xbCOrzkjnjWpiXG
OO091ttxxUD40ZTrtnbqueuevzvRylziTo89HPl2X7QME5FZmwAcZ9C9hSOmAYfB
8rjDNeNmQ5Ku72Q65z4YHTsPQ06t/E0+GP1zrvqF/WS011p3a5I8KGNowcteMrT/
xXlm77IG0S4K6opwFwSxzDRvWDa3ySqOXjEgjYtSJMbIyzItSq/LE2hwEnPYrm4G
@snowfrs
snowfrs / default.custom.yaml
Created March 5, 2018 13:38 — forked from lotem/default.custom.yaml
在Rime輸入方案選單中添加五筆、雙拼、粵拼、注音,保留你需要的
# default.custom.yaml
# save it to:
# ~/.config/ibus/rime (linux)
# ~/Library/Rime (macos)
# %APPDATA%\Rime (windows)
patch:
schema_list:
- schema: luna_pinyin # 朙月拼音
- schema: luna_pinyin_simp # 朙月拼音 简化字模式