LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 686|回复: 1

看差距,系统的负载!对比呀

[复制链接]
发表于 2003-8-22 02:18:16 | 显示全部楼层 |阅读模式
机器一:赛扬400,64M SD 操作系统:FreeBSD 5.1 Release 内核做过优化apache-1.3.27_4
机器二: P4 1.5 512M SD 操作系统:Windows Server 2003企业版 IIS6
使用ab -n 1000 -c 50 IP分别测试
结果如下机器一:
This is ApacheBench, Version 1.3d <$Revision: 1.67 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests
Server Software: Apache/1.3.27
Server Hostname: localhost
Server Port: 80

Document Path: /
Document Length: 1456 bytes

Concurrency Level: 50
Time taken for tests: 17.238 seconds
Complete requests: 1000
Failed requests: 0
Broken pipe errors: 0
Total transferred: 1929733 bytes
HTML transferred: 1495312 bytes
Requests per second: 58.01 [#/sec] (mean)
Time per request: 861.90 [ms] (mean)
Time per request: 17.24 [ms] (mean, across all concurrent requests)
Transfer rate: 111.95 [Kbytes/sec] received

Connnection Times (ms)
min mean[+/-sd] median max
Connect: 0 85 108.1 14 474
Processing: 68 739 347.0 754 2135
Waiting: 4 734 349.9 752 2124
Total: 68 824 347.0 799 2360

Percentage of the requests served within a certain time (ms)
50% 799
66% 866
75% 955
80% 1052
90% 1264
95% 1526
98% 1771
99% 2011
100% 2360 (last request)
+++++++++++++++++++++++++
机器二:
This is ApacheBench, Version 1.3d <$Revision: 1.67 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

Benchmarking 192.168.100.1 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests
Server Software: Microsoft-IIS/6.0
Server Hostname: 192.168.100.1
Server Port: 80

Document Path: /
Document Length: 1433 bytes

Concurrency Level: 50
Time taken for tests: 2.705 seconds
Complete requests: 1000
Failed requests: 0
Broken pipe errors: 0
Total transferred: 1731000 bytes
HTML transferred: 1433000 bytes
Requests per second: 369.69 [#/sec] (mean)
Time per request: 135.25 [ms] (mean)
Time per request: 2.71 [ms] (mean, across all concurrent requests)
Transfer rate: 639.93 [Kbytes/sec] received

Connnection Times (ms)
min mean[+/-sd] median max
Connect: 0 2 6.7 0 65
Processing: 17 129 20.9 134 178
Waiting: 4 128 20.9 133 177
Total: 17 131 16.9 134 178

Percentage of the requests served within a certain time (ms)
50% 134
66% 137
75% 138
80% 140
90% 149
95% 154
98% 158
99% 160
100% 178 (last request)
 楼主| 发表于 2003-8-22 02:20:10 | 显示全部楼层
这是上面机器1的内核请大家看看,帮帮看看如何优化!
machine i386
cpu I686_CPU
ident Neptune
maxusers 64
options CPU_DISABLE_CMPXCHG
options SCHED_4BSD
options INET #InterNETworking
options FFS #Berkeley Fast Filesystem
options SOFTUPDATES #Enable FFS soft updates support
options UFS_ACL #Support for access control lists
options UFS_DIRHASH #Improve performance on big directories
options PROCFS #Process filesystem (requires PSEUDOFS)
options PSEUDOFS #Pseudo-filesystem framework
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 #Compatible with FreeBSD4
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
options IPFILTER
options IPFILTER_LOG
options RANDOM_IP_ID
options TCP_DROP_SYNFIN
options ZERO_COPY_SOCKETS
options PANIC_REBOOT_WAIT_TIME=0
options NMBCLUSTERS=8192
options MAXDSIZ=(63UL*1024*1024)
options MAXSSIZ=(63UL*1024*1024)
options DFLDSIZ=(63UL*1024*1024)
device isa
device eisa
device pci
device ata
device atadisk # ATA disk drives
device atapicd # ATAPI CDROM drives
device atkbdc # AT keyboard controller
device atkbd # AT keyboard
device vga # VGA video card driver
device sc
device agp # support several AGP chipsets
device npx
device miibus # MII bus support
device rl # RealTek 8129/8139
device vr # VIA Rhine, Rhine II
device random # Entropy device
device loop # Network loopback
device ether # Ethernet support
device tun # Packet tunnel.
device pty # Pseudo-ttys (telnet etc)
device bpf # Berkeley packet filter
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表