Buffalo WBR2-G54 无线路由的处理器是Broadcom 4712 @200MHz。
首先测试的是一个1K左右的静态文件,并发连接数10,总共100连接。
debian:~# ab -c 10 -n 100 http://192.168.0.1/status.html
This is ApacheBench, Version 2.0.41-dev < $Revision: 1.141 $> apache-2.0
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.0.1 (be patient).....done
Server Software: httpd
Server Hostname: 192.168.0.1
Server Port: 80
Document Path: /status.html
Document Length: 994 bytes
Concurrency Level: 10
Time taken for tests: 1.631254 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 116400 bytes
HTML transferred: 99400 bytes
Requests per second: 61.30 [#/sec] (mean)
Time per request: 163.125 [ms] (mean)
Time per request: 16.313 [ms] (mean, across all concurrent requests)
Transfer rate: 69.27 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 2 5 5.6 4 29
Processing: 20 146 30.8 152 178
Waiting: 19 144 30.7 150 175
Total: 49 151 26.2 155 182
Percentage of the requests served within a certain time (ms)
50% 155
66% 167
75% 172
80% 175
90% 179
95% 179
98% 180
99% 182
100% 182 (longest request)
可以看到每秒请求数为61.30,似乎并发性能不错,于是增大并发连接数到20,结果每秒连接数是62.10,只有轻微的增加。再测试一个38K的文件,结果是:
Concurrency Level: 10
Time taken for tests: 11.435183 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 3746200 bytes
HTML transferred: 3734100 bytes
Requests per second: 8.74 [#/sec] (mean)
Time per request: 1143.518 [ms] (mean)
Time per request: 114.352 [ms] (mean, across all concurrent requests)
Transfer rate: 319.89 [Kbytes/sec] received
下面测试的是DD-WRT的运行状态页面,类似普通网站的一个不太复杂的页面,大小16K,连接有若干图片,样式和脚本文件。如图:
结果如下:
Document Path: /Info.htm
Document Length: 16545 bytes
Concurrency Level: 10
Time taken for tests: 51.66305 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 1674676 bytes
HTML transferred: 1657506 bytes
Requests per second: 1.96 [#/sec] (mean)
Time per request: 5106.630 [ms] (mean)
Time per request: 510.663 [ms] (mean, across all concurrent requests)
Transfer rate: 32.02 [Kbytes/sec] received
性能显著降低。(看Apache的日志,ab并没有抓取文件里面的图片,脚本等外部连接,可是为何性能比上面的文件低呢?)
Friday, January 26, 2007
Saturday, September 23, 2006
Friday, September 22, 2006
putty基于RSA,DSA密钥认证的SSH连接配置
SSH服务器为 Debian linux .
其中 -t 指定密钥类型rsa或dsa,推荐用rsa,dsa据说有安全隐患(不是美国现在的电子签名标准吗?)
-b 是密钥长度,rsa(版本2)这里只能创建最大2048 bits的,注意! 1024 bits已经不够了.
输入地址,域名信息.另外会要求输入passphrase,用来保护私钥的,可以回车跳过,但是你的私钥可就要藏好噜,别让人偷了去.
这里产生了私钥和公钥两个文件id_rsa和id_rsa.pub.
因为ssh配置中缺省使用 .ssh/authorized_keys 文件。
- 安装ssh
- 创建RSA,DSA密钥对
其中 -t 指定密钥类型rsa或dsa,推荐用rsa,dsa据说有安全隐患(不是美国现在的电子签名标准吗?)
-b 是密钥长度,rsa(版本2)这里只能创建最大2048 bits的,注意! 1024 bits已经不够了.
输入地址,域名信息.另外会要求输入passphrase,用来保护私钥的,可以回车跳过,但是你的私钥可就要藏好噜,别让人偷了去.
这里产生了私钥和公钥两个文件id_rsa和id_rsa.pub.
- 重命名公钥
因为ssh配置中缺省使用 .ssh/authorized_keys 文件。
- 下载私钥
- 使用PuTTYgen转换密钥
- 配置putty
Thursday, September 21, 2006
Subscribe to:
Posts (Atom)