Skip to content

Instantly share code, notes, and snippets.

View sgzerolc's full-sized avatar
🌱
growing

Sam Li sgzerolc

🌱
growing
  • Berlin, Germany
  • 12:32 (UTC +02:00)
View GitHub Profile
@sgzerolc
sgzerolc / record.txt
Created October 7, 2022 07:09
zenfs build and install
# Today, zns occurs to me so I decide to install zenfs to see how it fits into rocksdb. Environment setting up can always be tedious and ugly. So list a summary here:
# rocksdb only
https://blog.csdn.net/u013171226/article/details/110167997
make static_lib
make install-static PREFIX=/usr/local/rocksdb
# rocksdb + zenfs
// then must add to bashrc(needed for both)
// (Or you may meet errors: undefined reference to `google::FlagRegisterer: rocksdb...
@sgzerolc
sgzerolc / bashfile
Last active October 31, 2022 10:06
qemu
x86_64-softmmu/qemu-system-x86_64 \
-kernel path/to/arch/x86_64/boot/bzImage \
-nographic \
-append "console=ttyS0 nokaslr" \
-initrd test.qcow2\
-m 512\
--enable-kvm \
-cpu host \
-drive if=virtio,file=test.img,format=raw,aio=io_uring,cache=none