发信人: neal()
整理人: hahalee(1999-03-29 18:39:40), 站内信件
|
我也来凑凑热闹 :)
128M RAM, 2 x Celeron 266 (overclock to 400) Debian GNU/Linux SMP 2.2.3
ab -n 10000 -c 500 http://dmx320.resnet.ust.hk/cgi-bin/samba/smb2www.pl (smb2www 就是 smbclient 的GUI)
最大 load average 113.81 (可能是最大的吧 :-P )
Server Software: Apache/1.3.6 Server Hostname: dmx320.resnet.ust.hk Server Port: 80
Document Path: /cgi-bin/samba/smb2www.pl Document Length: 1320 bytes
Concurrency Level: 500 Time taken for tests: 416.669 seconds Complete requests: 10000 Failed requests: 6611 (Connect: 0, Length: 6611, Exceptions: 0) Non-2xx responses: 6690 Total transferred: 9974568 bytes HTML transferred: 8111850 bytes Requests per second: 24.00 Transfer rate: 23.94 kb/s received
Connnection Times (ms) min avg max Connect: 0 3646 309949 Processing: 7 13898 3306 Total: 7 17544 313255
ps aux 的 snapshot
www-data 8324 0.0 0.6 2300 784 ? S 07:24 0:00 /usr/sbin/apache www-data 8327 0.0 0.6 2300 784 ? S 07:24 0:00 /usr/sbin/apache www-data 8328 0.0 0.6 2300 784 ? S 07:24 0:00 /usr/sbin/apache root 8425 0.0 0.3 1916 416 tty3 R 07:27 0:02 ab -n 10000 -c 50 www-data 8449 0.0 0.6 2300 784 ? S 07:27 0:00 /usr/sbin/apache ....... www-data 10939 0.0 0.7 2296 996 ? S 07:29 0:00 /usr/sbin/apache www-data 10940 0.0 0.7 2300 1000 ? S 07:29 0:00 /usr/sbin/apache ...... www-data 11055 0.0 0.6 1704 796 ? S 07:29 0:00 /usr/lib/smb2www/ www-data 11056 0.0 0.6 1704 796 ? S 07:29 0:00 /usr/lib/smb2www/ www-data 11057 0.0 0.6 1704 796 ? S 07:29 0:00 /usr/lib/smb2www/ www-data 11058 0.0 0.6 1704 796 ? S 07:29 0:00 /usr/lib/smb2www/ www-data 11059 0.0 0.6 1704 796 ? S 07:29 0:00 /usr/lib/smb2www/ www-data 11060 0.0 0.7 2296 940 ? S 07:29 0:00 /usr/sbin/apache www-data 11062 0.0 0.6 1704 796 ? S 07:29 0:00 /usr/lib/smb2www/ www-data 11063 0.0 0.0 0 0 ? Z 07:29 0:00 [smb2www.pl <defu www-data 11064 0.0 0.0 0 0 ? Z 07:29 0:00 [smb2www.pl <defu www-data 11067 0.0 0.0 0 0 ? Z 07:29 0:00 [smb2www.pl <defu www-data 11071 0.0 0.6 1704 796 ? S 07:29 0:00 /usr/lib/smb2www/ ...... www-data 11294 0.0 1.2 2556 1620 ? R 07:29 0:00 perl /usr/lib/cgi www-data 11295 0.0 1.2 2544 1588 ? R 07:29 0:00 perl /usr/lib/cgi www-data 11296 0.0 1.2 2552 1600 ? R 07:29 0:00 perl /usr/lib/cgi www-data 11297 0.0 1.2 2556 1620 ? R 07:29 0:00 perl /usr/lib/cgi www-data 11298 0.0 1.1 2380 1424 ? R 07:29 0:00 perl /usr/lib/cgi www-data 11299 0.0 0.8 2196 1148 ? R 07:29 0:00 perl /usr/lib/cgi root 11300 0.0 0.0 2240 116 ? R 07:29 0:00 /usr/sbin/apache root 11301 0.0 0.0 2240 116 ? R 07:29 0:00 /usr/sbin/apache root 11302 0.0 0.0 2240 116 ? R 07:29 0:00 /usr/sbin/apache root 11303 0.0 0.0 2240 116 ? R 07:29 0:00 /usr/sbin/apache root 11304 0.0 0.0 2240 116 ? R 07:29 0:00 /usr/sbin/apache www-data 11305 0.0 1.2 2552 1608 ? R 07:29 0:00 perl /usr/lib/cgi
下面是 smb2www.pl
use strict; use smb2www;
my @smbout = GetSMBGroups;
header ("$text{welcome}"); table ( href ($cfg{linkto_other}, image ($cfg{icon_other},"$text{othernet}")), "", href ($cfg{linkto_other}, "<H2><DIV ALIGN=right>$text{othernet}</DIV></H2>") );
table ( "<FORM ACTION=\"$cfg{cgiroot}/smbshr.pl\" METHOD=GET>". "<INPUT TYPE=\"image\" BORDER=0 SRC=$cfg{imgroot}/$cfg{icon_computer}>", "", "<DIV ALIGN=right><INPUT TYPE=\"text\" name=\"host\" SIZE=\"15\"></DIV>". "<INPUT TYPE=\"hidden\" NAME=\"group\" VALUE=\"\">". "<INPUT TYPE=\"hidden\" NAME=\"master\" VALUE=\"\">". "</FORM>\n" );
my $line = ""; foreach $line ( @smbout ) { my $url = shref ("group","$line->{name}","$line->{master}"); table ( "", href ($url,image ($cfg{icon_group},"$text{workgroup}")), "<DIV ALIGN=right>".href($url,"$line->{name}")."</DIV>" ); } trailer;
hahalee同志给分析分析
-- ※ 来源:.网易 BBS bbs.netease.com.[FROM: dmx320.resnet.ust.hk]
|
|