- 论坛徽章:
- 0
|
我的服务器是Dell 2850(2*3.0GHz(2M) EM64T至强处理器,4G内存,2*146G (10K rpm scsi)硬盘,RAID 1)
操作系统使用FreeBSD 6.1(amd 64),WEB发布使用apache(worker mpm)+mod_php,服务器专门运行php程序,没有运行数据库系统。
在负载较轻时(apache总线程数1000左右),使用top命令查看,这时CPU states中system所占比例和user所占比例相当。
如果apache总线程数达到2000,负载就很重,load averages可以超过100,而这时CPU states中system所占比例甚至比user还高。
这样配置的服务器到底能承载多大访问量?是我要求太高还是配置有待优化?
请各位大虾帮我分析一下。谢谢!
以下是用top命令得出的结果:
last pid: 35824; load averages: 2.71, 2.36, 1.79 up 4+23:15:42 11:05:25
891 processes: 1 running, 890 sleeping
CPU states: 5.8% user, 0.0% nice, 2.6% system, 2.8% interrupt, 88.8% idle
Mem: 794M Active, 2408M Inact, 317M Wired, 114M Cache, 214M Buf, 170M Free
Swap: 4096M Total, 4K Used, 4096M Free
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
35790 apache 25 20 0 63044K 28324K kserel 2 0:05 0.54% httpd
35806 apache 21 20 0 62160K 26876K kserel 0 0:06 0.05% httpd
35736 apache 7 20 0 64372K 29608K kserel 0 0:13 0.00% httpd
35754 apache 7 20 0 62388K 27360K kserel 0 0:10 0.00% httpd
35768 apache 26 20 0 63060K 28312K kserel 2 0:09 0.00% httpd
35737 apache 6 20 0 62076K 27320K kserel 2 0:09 0.00% httpd
35761 apache 26 20 0 66452K 31760K kserel 2 0:08 0.00% httpd
35798 apache 27 20 0 62568K 27776K kserel 0 0:08 0.00% httpd
35755 apache 6 20 0 62660K 27692K kserel 0 0:08 0.00% httpd
35759 apache 6 20 0 63400K 28472K kserel 2 0:07 0.00% httpd
35760 apache 16 20 0 63044K 28160K kserel 0 0:06 0.00% httpd
35762 apache 23 20 0 62220K 27776K kserel 0 0:06 0.00% httpd
35757 apache 6 20 0 63192K 28264K kserel 2 0:06 0.00% httpd
35758 apache 12 20 0 62116K 27360K kserel 0 0:06 0.00% httpd
35791 apache 22 20 0 62832K 27952K kserel 2 0:06 0.00% httpd
35763 apache 26 20 0 61452K 26960K kserel 0 0:06 0.00% httpd
以下是我的内核配置:
machine amd64
cpu HAMMER
ident WWW
options SCHED_4BSD
options PREEMPTION
options INET
options FFS
options SOFTUPDATES
options UFS_ACL
options UFS_DIRHASH
options PROCFS
options PSEUDOFS
options COMPAT_43
options COMPAT_IA32
options COMPAT_FREEBSD4
options COMPAT_FREEBSD5
options COMPAT_LINUX32
options SCSI_DELAY=5000
options SYSVSHM
options SYSVMSG
options SYSVSEM
options _KPOSIX_PRIORITY_SCHEDULING
options KBD_INSTALL_CDEV
options ADAPTIVE_GIANT
options LINPROCFS
options MAXDSIZ=(3584UL*1024*1024)
options MAXSSIZ=(256UL*1024*1024)
options DFLDSIZ=(3584UL*1024*1024)
options IPSTEALTH
device acpi
device pci
device scbus
device da
device pass
device amr
device atkbdc
device atkbd
device vga
device sc
device em
device loop
device random
device ether
device pty
device usb
device umass
device uhci
device ohci
options SMP |
|