[ https://issues.apache.org/jira/browse/TS-1405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13447456#comment-13447456 ]
kuotai commented on TS-1405: ---------------------------- {code} ab -n 500000 -c 1000 -k -H "Host: ts.cn" http://115.238.23.222:8080/1024/1.bmp orig: [root@test58 ~]# ab -n 500000 -c 1000 -k -H "Host: ts.cn" http://115.238.23.222:8080/1024/1.bmp This is ApacheBench, Version 2.3 <$Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking 115.238.23.222 (be patient) Completed 50000 requests Completed 100000 requests Completed 150000 requests Completed 200000 requests Completed 250000 requests Completed 300000 requests Completed 350000 requests Completed 400000 requests Completed 450000 requests Completed 500000 requests Finished 500000 requests Server Software: ATS/3.2.0 Server Hostname: 115.238.23.222 Server Port: 8080 Document Path: /1024/1.bmp Document Length: 1024 bytes Concurrency Level: 1000 Time taken for tests: 41.269 seconds Complete requests: 500000 Failed requests: 0 Write errors: 0 Keep-Alive requests: 500000 Total transferred: 691506050 bytes HTML transferred: 512001024 bytes Requests per second: 12115.56 [#/sec] (mean) Time per request: 82.538 [ms] (mean) Time per request: 0.083 [ms] (mean, across all concurrent requests) Transfer rate: 16363.25 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 30.6 0 3002 Processing: 0 82 83.8 56 3105 Waiting: 0 81 82.7 56 3105 Total: 0 82 89.4 56 3676 Percentage of the requests served within a certain time (ms) 50% 56 66% 87 75% 112 80% 131 90% 193 95% 253 98% 328 99% 383 100% 3676 (longest request) time_wheel: [root@test58 ~]# ab -n 500000 -c 1000 -k -H "Host: ts.cn" http://115.238.23.222:8080/1024/1.bmp This is ApacheBench, Version 2.3 <$Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking 115.238.23.222 (be patient) Completed 50000 requests Completed 100000 requests Completed 150000 requests Completed 200000 requests Completed 250000 requests Completed 300000 requests Completed 350000 requests Completed 400000 requests Completed 450000 requests Completed 500000 requests Finished 500000 requests Server Software: ATS/3.2.0 Server Hostname: 115.238.23.222 Server Port: 8080 Document Path: /1024/1.bmp Document Length: 1024 bytes Concurrency Level: 1000 Time taken for tests: 35.423 seconds Complete requests: 500000 Failed requests: 0 Write errors: 0 Keep-Alive requests: 500000 Total transferred: 691504308 bytes HTML transferred: 512000000 bytes Requests per second: 14115.08 [#/sec] (mean) Time per request: 70.846 [ms] (mean) Time per request: 0.071 [ms] (mean, across all concurrent requests) Transfer rate: 19063.74 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 30.0 0 3002 Processing: 0 70 69.6 51 3033 Waiting: 0 70 68.7 51 3033 Total: 0 71 76.2 51 3346 Percentage of the requests served within a certain time (ms) 50% 51 66% 76 75% 96 80% 110 90% 158 95% 210 98% 276 99% 326 100% 3346 (longest request) {code} > apply time-wheel scheduler about event system > ---------------------------------------------- > > Key: TS-1405 > URL: https://issues.apache.org/jira/browse/TS-1405 > Project: Traffic Server > Issue Type: Improvement > Components: Core > Affects Versions: 3.2.0 > Reporter: kuotai > Assignee: kuotai > Fix For: 3.3.1 > > Attachments: time-wheel.patch, time_wheel_v2.patch > > > when have more and more event in event system scheduler, it's worse. This is > the reason why we use inactivecop to handler keepalive. the new scheduler is > time-wheel. It's have better time complexity(O(1)) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira