우리 2번째 집.
by 라임
Freebsd nmbcluster 수정법
freebsd 6.1 설정


======================================
/boot/loader.conf
======================================
#kern.ipc.nmbclusters="131072"
kern.ipc.nmbclusters="65536"
#kern.ipc.nmbufs="2049536"              # freebsd 5.2 later auto tuned
kern.ipc.nsfbufs="16384"
kern.maxfiles="65536"
kern.ipc.maxsockets="65536"
net.inet.tcp.tcbhashsize="65536"



======================================
/etc/sysctl.conf
======================================
# $FreeBSD: src/etc/sysctl.conf,v 1.8 2003/03/13 18:43:50 mux Exp $
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#

# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0

vfs.vmiodirenable=1
kern.ipc.maxsockbuf=16773216
kern.ipc.somaxconn=8192
kern.maxfilesperproc=32768
net.inet.tcp.rfc1323=1
#net.inet.tcp.sendspace=65535
#net.inet.tcp.recvspace=65535
#net.inet.udp.recvspace=65535
#net.inet.udp.maxdgram=57344
#net.local.stream.recvspace=65535
#net.local.stream.sendspace=65535
net.inet.ip.portrange.last=65535

net.inet.tcp.msl=3000

net.inet.tcp.blackhole=2
net.inet.udp.blackhole=1

##########################################
##Socket queue defense against SYN attacks
##########################################
net.inet.icmp.drop_redirect=1
net.inet.icmp.log_redirect=0
net.inet.ip.redirect=0
net.link.ether.inet.max_age=1200
net.inet.ip.sourceroute=0
net.inet.ip.accept_sourceroute=0
net.inet.icmp.bmcastecho=0
net.inet.icmp.maskrepl=0

net.inet.ip.intr_queue_maxlen=300
net.inet.tcp.drop_synfin=1
##########################################
net.inet.tcp.delayed_ack=0
kern.ipc.shm_use_phys=1


======================================
/etc/rc.conf
======================================
# -- sysinstall generated deltas -- # Wed May 31 14:51:57 2006
# Created: Wed May 31 14:51:57 2006
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
#REMOVED: usbd_enable="YES"
check_quotas="NO"
defaultrouter="218.232.76.1"
hostname="event2.ipop.co.kr"
ifconfig_fxp0="inet 218.232.76.174  netmask 255.255.255.0"
inetd_enable="YES"
sshd_enable="YES"
usbd_enable="NO"
sendmail_enable="NONE"



======================================
/sys/i386/conf/EVENT
======================================
options     TCP_DROP_SYNFIN
options     NMBCLUSTERS=65536
options     PMAP_SHPGPERPROC=2048
options     KVA_PAGES=512

4라인추가
by 라임 | 2008/05/06 15:36 | Linux 계열 | 트랙백(1) | 덧글(0)
< 이전페이지 다음페이지 >