Tunning sysctl.conf and loader.conf on Freebsd  

Edit /etc/sysctl.conf
vfs.usermount=1
kern.maxfilesperproc=65536
kern.maxfiles=262144
net.inet.tcp.fast_finwait2_recycle=1
net.inet.tcp.maxtcptw=40960
net.inet.ip.ttl=128
net.inet.tcp.inflight.enable=1
net.inet.tcp.inflight.min=6144
net.inet.tcp.inflight.max=1073725440
net.inet.tcp.inflight.stab=20
net.inet.ip.redirect=0
net.inet.tcp.syncookies=1
net.inet.tcp.delayed_ack=0
kern.coredump=0
kern.maxfiles=65536
kern.ipc.maxsockbuf=2097152
net.inet.udp.maxdgram=57344
kern.threads.max_threads_per_proc=40000
net.inet.ip.portrange.first=32768
net.inet.ip.portrange.last=49151
net.inet.ip.portrange.hifirst=49152
net.inet.ip.portrange.hilast=65535
kern.ipc.somaxconn=10240
kern.ipc.shmmax=67108864
kern.ipc.shmall=32768
net.inet.ip.maxfragpackets=1600
net.inet.tcp.sendspace=65535
net.inet.tcp.recvspace=65535
net.inet.ip.intr_queue_maxlen=3000
kern.dirdelay=6
kern.metadelay=5
kern.filedelay=7
Edit /boot/loader.conf
vm.kmem_size="512M"
vm.kmem_size_max="512M"
vfs.zfs.arc_max="40M"
vfs.zfs.arc_meta_limit="256M"
vfs.zfs.zfetch.array_rd_sz="16M"
vfs.zfs.zfetch.block_cap="512"
vfs.zfs.vdev.min_pending="4"
vfs.zfs.vdev.max_pending="64"

#utk RAM 512MB
#kern.maxdsiz="256MB"
#kern.dfldsiz="128MB"
#kern.maxssiz="96MB"

#utk RAM 1GB
kern.maxdsiz="512MB"
kern.dfldsiz="256MB"
kern.maxssiz="196MB"

#utk RAM 2 GB
#kern.maxdsiz="1024M"
#kern.dfldsiz="1024M"
#kern.maxssiz="256M"

#utk RAM > 4 Gb
#kern.maxdsiz="2048M"
#kern.dfldsiz="768M"
#kern.maxssiz="512MB"

kern.ipc.semmni="1024"
kern.ipc.semmns="16384"
kern.ipc.semmnu="16384"
kern.ipc.nmbclusters="65536"
kern.maxfiles="65536"
kern.ipc.maxsockbufs="65536"
kern.ipc.msgmnb="8192"
kern.ipc.msgssz="64"
kern.ipc.msgtql="2048"
kern.ipc.shmseg="16"
kern.ipc.maxsockets="65536"
net.inet.tcp.hostcache.hashsize="2048"
net.inet.tcp.tcbhashsize="4096"
net.inet.tcp.hostcache.hashsize="1024"
edit /etc/rc.conf
zfs_enable="YES"
defaultrouter="192.168.3.3"
gateway_enable="YES"
hostname="net60.info"
ifconfig_bfe0="inet 192.168.3.1 netmask 255.255.255.0"
sshd_enable="YES"
unbound_enable="YES"
devfs_set_rulesets="/usr/local/etc/unbound/dev=unbound_ruleset"
#tambahan dari reges/teuku
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"


 rasakan bedanya..............


best regard to teuku rizal

This entry was posted on 16.53 and is filed under . You can leleave a response and llow any responses to this entry through the Langganan: Posting Komentar (Atom) .

0 komentar