kompile ulang kernel dengan menambahkan opsi berikut
## Packer Filter (optional)
device pf device pflog device pfsync
jika dirasa perlu tambahkan opsi untuk dukungan ALTQ
options ALTQ options ALTQ_CBQ # Class Bases Queuing (CBQ) options ALTQ_RED # Random Early Detection (RED) options ALTQ_RIO # RED In/Out options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC) options ALTQ_PRIQ # Priority Queuing (PRIQ) options ALTQ_NOPCC # Required for SMP build
Yang ini untuk mengaktifkan dukungan diskd
## diskd options SHMSEG=16 # max shared mem id's per process options SHMMNI=32 # max shared mem id's per system options SHMMAX=2097152 # max shared memory segment size (bytes) options SHMALL=4096 # max amount of shared memory (pages) options MAXFILES=8192 options MSGMNB=8192 # max # of bytes in a queue options MSGMNI=40 # number of message queue identifiers options MSGSEG=512 # number of message segments per queue options MSGSSZ=64 # size of a message segment options MSGTQL=2048 # max messages in system
tambahkan baris berikut ke file /boot/loader.conf
kern.ipc.nmbclusters=32768 kern.maxfiles=65536 kern.maxfilesperproc=32768 net.inet.ip.portrange.last=65535 kern.ipc.maxsockbuf=1024000 net.inet.tcp.recvspace=65536 net.inet.tcp.sendspace=32768