Last active
November 12, 2018 22:56
-
-
Save cdcme/6bece28f60143da2624f307caf9b614a to your computer and use it in GitHub Desktop.
FreeBSD loader.conf.local w/custom tuning
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment