FreeBSD loader.conf.local w/custom tuning
virtio_balloon_load="YES"
virtio_blk_load="YES"
virtio_load="YES"
virtio_pci_load="YES"
virtio_scsi_load="YES"
virtio_console_load="YES"
if_vtnet_load="YES"
aesni_load="YES"
cd9660_load="YES"
cd9660_iconv_load="YES"
hw.usb.no_shutdown_wait=1
loader_logo="orb"
zfs_load="YES"
vfs.root.mountfrom="zfs:zroot/ROOT/default"
vfs.zfs.arc_max="128M"
vfs.zfs.vdev.cache.size="5M"
console="vidconsole,comconsole"
autoboot_delay="5"
##### CUSTOMISATIONS #####
# load the H-TCP Congestion algorithm
cc_htcp_load="YES"
# async I/O syscalls
# AIO is used for accelerating Nginx on ZFS
aio_load="YES"
# tune vtnet a bit
hw.vtnet.rx_process_limit="2048"
# remove hostcache limit
net.inet.tcp.hostcache.cachelimit="0"
# Enable the optimized version of soreceive() for stream (TCP) sockets
net.inet.tcp.soreceive_stream="1"
# syncache tuning
net.inet.tcp.syncache.hashsize="32768"
net.inet.tcp.syncache.bucketlimit="100"
net.inet.tcp.syncache.cachelimit="1048576"
net.inet.tcp.syncache.rextlimit="0"
# network interface queue length
net.link.ifqmaxlen="2048"
# Pf firewall kernel modules, preload
pf_load="YES"
pflog_load="YES"