Всем привет.
Имеется вот такая грустная картина.uname -a
FreeBSD server.b 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64top
last pid: 35095; load averages: 91.71, 93.84, 94.46 up 18+13:56:32 06:15:17
177 processes: 97 running, 43 sleeping, 37 lock
CPU: 23.2% user, 0.0% nice, 71.0% system, 5.4% interrupt, 0.4% idle
Mem: 600M Active, 10G Inact, 1216M Wired, 267M Cache, 1643M Buf, 2962M Free
Swap: 4096M Total, 444K Used, 4095M FreePID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
38014 nobody 18 24 0 458M 344M uwait 7 340.4H 77.88% memcached
50374 user 1 35 0 71028K 35488K kqread 6 144:55 20.56% nginx
34748 user 1 78 0 245M 43652K RUN 16 2:29 20.46% php-fpm
34744 user 1 77 0 244M 47432K RUN 3 2:30 19.19% php-fpm
50378 user 1 32 0 71028K 35732K RUN 3 145:21 18.90% nginx
50365 user 1 30 0 66932K 32432K kqread 16 145:14 18.36% nginx
50375 user 1 32 0 75124K 39720K kqread 14 144:38 18.36% nginx
50376 user 1 30 0 71028K 36760K CPU5 1 145:32 17.38% nginx
50369 user 1 32 0 71028K 34356K kqread 20 145:27 17.38% nginx
50366 user 1 31 0 71028K 36724K kqread 11 145:01 17.38% nginx
50370 user 1 30 0 66932K 32484K kqread 0 144:38 16.99% nginx
50379 user 1 31 0 75124K 37256K kqread 14 144:14 16.99% nginx
50371 user 1 30 0 71028K 36764K kqread 20 145:30 16.55% nginx
50364 user 1 30 0 71028K 36596K CPU13 13 144:35 16.55% nginx
34739 user 1 76 0 241M 38936K RUN 3 2:29 16.36% php-fpm
50377 user 1 30 0 66932K 32656K kqread 15 145:36 16.26% nginx
34735 user 1 76 0 245M 42692K RUN 16 2:30 16.16% php-fpm
34678 user 1 76 0 245M 43276K *Name 21 2:39 16.06% php-fpm
50367 user 1 30 0 71028K 36316K kqread 8 144:48 15.97% nginx
34737 user 1 76 0 236M 39476K RUN 17 2:30 15.97% php-fpm
34721 user 1 76 0 236M 39708K RUN 15 2:30 15.77% php-fpmcat /boot/loader.conf
accf_data_load="YES"
accf_http_load="YES"
accf_dns_load="YES"
aio_load="YES"
cc_htcp_load="YES"
#cc_cubic_load="YES"
# syncache tuning
net.inet.tcp.syncache.hashsize=32768
net.inet.tcp.syncache.bucketlimit=100
net.inet.tcp.syncache.cachelimit=1048576
kern.ipc.nmbclusters="128000"net.inet.tcp.hostcache.hashsize=4096
net.inet.tcp.hostcache.bucketlimit=100
net.inet.tcp.hostcache.cachelimit=65536net.inet.ip.fw.default_to_accept=1
net.inet.ip.fw.verbose_limit=10000
net.inet.ip.fw.verbose=1hw.igb.max_interrupt_rate=32000
net.inet.tcp.tcbhashsize=32000cat /etc/sysctl.conf
kern.ipc.somaxconn=32768
net.inet.ip.portrange.randomized=0kern.ipc.shm_use_phys=1
net.inet.icmp.drop_redirect=1
#net.inet.icmp.log_redirect=1
net.inet.tcp.blackhole=1
net.inet.udp.blackhole=1
net.inet.tcp.drop_synfin=1
net.inet.tcp.sendspace=262144
net.inet.tcp.recvspace=65536
net.inet.udp.recvspace=32768
kern.fallback_elf_brand=-1
net.inet.ip.maxfragpackets=1024
kern.sync_on_panic=1
vfs.ufs.dirhash_maxmem=100000000
#kern.polling.burst_max=1000
#kern.polling.each_burst=1000
#kern.polling.reg_frac=100
#kern.polling.user_frac=1
kern.maxvnodes=256000
net.inet.ip.intr_queue_maxlen=256
net.inet.tcp.recvbuf_auto=0
net.inet.tcp.sendbuf_auto=0
net.inet.tcp.tso=0
#net.isr.direct=1
net.route.netisr_maxqlen=1024
#net.inet.flowtable.nmbflows=8192
kern.ipc.nmbclusters=65536net.inet.ip.portrange.first=15000
sysctl net.inet.ip.portrange.last=65534net.inet.ip.portrange.hifirst=1024
net.inet.tcp.hostcache.expire=1200
net.inet.tcp.fast_finwait2_recycle=1
net.inet.tcp.finwait2_timeout=3000
net.inet.tcp.keepinit=5000
net.inet.tcp.nolocaltimewait=1
net.inet.tcp.maxtcptw=65530
net.inet.tcp.msl=5000
kern.coredump=0
kern.random.sys.harvest.interrupt=0
kern.random.sys.harvest.ethernet=0net.inet.ip.fastforwarding=1
kern.maxfiles=65000
kern.maxfilesperproc=32000
net.inet.ip.intr_queue_maxlen=1000
kern.ipc.maxsockbuf=1048576
kern.coredump=0
vm.pmap.pv_entry_max=12000000
net.inet.icmp.icmplim=32000
сервак может неделю работать и ничего не будет происходить, а потом начинается тупняк...
как понять, чем так занят SYSTEM ?
попробуй "top -PSCH" или -PSICH (с интерруптами), так можно увидеть чем ядро страдает.