新买了个Dell服务器本来想用FreeBSD因为光盘放单位了,家里只有gentoo的,想想也行,装吧,不装X的Linux还是很爽的。安装过程枯燥的没啥意思,emerge后现睡一觉,编译内核时用的2.6.21内核,编译后引导不了,SATA的问题,已经把驱动编译进去了啊,重试了N遍也没好使,没办法重emerge个2.6.19的核重编译了就OK了。
其他Apache2, Postgresql, Proftpd都没啥问题了,emerge django时要 ~x86.iptables驱动没进内核呢,还得重编。还好服务器快,编译次就几分钟,不会等得无聊。
ab 测试结果
Server Software: Apache
Server Hostname: 192.168.1.100
Server Port: 80
Document Path: /
Document Length: 20452 bytes
Concurrency Level: 200
Time taken for tests: 106.373775 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 205970000 bytes
HTML transferred: 204520000 bytes
Requests per second: 94.01 [#/sec] (mean)
Time per request: 2127.475 [ms] (mean)
Time per request: 10.637 [ms] (mean, across all concurrent requests)
Transfer rate: 1890.90 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 311 1217.7 1 21004
Processing: 25 1767 2727.0 1471 79964
Waiting: 20 1648 2560.8 1348 79957
Total: 801 2078 3036.7 1491 79964
Percentage of the requests served within a certain time (ms)
50% 1491
66% 1599
75% 1709
80% 1830
90% 2916
95% 4499
98% 5762
99% 10867
100% 79964 (longest request)
Requests per second: 之前是86。
页面是我的一个Django程序。静态页面将近3000/s