Virtualization and optimization for node operations with example of pratical use.

sudo zfs set atime=off mypool  
(should be good always)
sudo zfs set redundant_metadata=most mypool
(consider if you want less safety and slightly more speed)
lsblk (will show you the /dev/yournvme
nvme id-ns -H /dev/#yournvme
nvme format --lbaf=X /dev/yournvme (lbaf number with no metadata and highest number of block per operations such as 4K)
4K Random read
fio --filename=test --sync=1 --rw=randread --bs=4k --numjobs=1 --iodepth=4 --group_reporting --name=test --filesize=10G --runtime=300 && rm test
4k Random write
fio --filename=test --sync=1 --rw=randwrite --bs=4k --numjobs=1 --iodepth=4 --group_reporting --name=test --filesize=10G --runtime=300 && rm test
4k Sequential read
fio --filename=test --sync=1 --rw=read --bs=4k --numjobs=1 --iodepth=4 --group_reporting --name=test --filesize=10G --runtime=300 && rm test
4K Sequential write
fio --filename=test --sync=1 --rw=write --bs=4k --numjobs=1 --iodepth=4 --group_reporting --name=test --filesize=10G --runtime=300 && rm test
Also uncheck firewall as this has around 0.1 ms penalty and we can manually do a firewall inside the virtual machine with UFW unless you have a good reason to have the firewall and think the performance penalty is negible.
Use VirtIO for the hardisks/nvmes as it is faster than the other options. Discard can be on if it is a disk having thin layer capabilities such as ZFS.
For CPU use HOST as type for added performance
sudo add-apt-repository ppa:damentz/liquorix && sudo apt-get updatesudo apt-get install linux-image-liquorix-amd64 linux-headers-liquorix-amd64
sudo findmnt — verify — verbose
vm.dirty_ratio = 10 (default is 20) this is good for latency but not for throughput of IO. 
vm.dirty_background_ratio = 5 (should be half of vm dirty ratio)
vm.vfs_cache_pressure = 500 (flushes the cache often so to not get inconsistencies in latency).
ANPSERVER5 with 4 virtual machines
64GB ram as well as two fast NVME’s are assigned to the node operations VM
Only 2 GB ram and 2 CPU cores assigned to Zabbix as well as a smaller NVME. But plenty for this service.
Plenty of disks for ANPSERVER5–3 due to Chia farming.
Komga with ebooks. Bundles with ebooks for example on cyber security can be found on pages such as
Portainer allowing control of multiple docker containers.
I removed the network device ID for safety but apart from that you can see that this is a low resource operations there to run a mining software for Ergo.
NBMiner mining with a Gefore 3060 LHR from ANPSERVER5–4.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
ADA North Pool

ADA North Pool 0100000101000100010000010010000001001110010011110101001001010100010010000010000001010000010011110100111101001100