Performance issues with raspberry pi 2
Andreas Andersson
aandersson at tappsi.co
Mon May 18 16:56:47 UTC 2015
I can confirm the patch doubles the performance:
ab -n10000 -c 100 -T "application/json" -p postfile
http://172.16.0.113:8888/api/v1/alarm/
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 172.16.0.113 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests
Server Software: TornadoServer/4.1
Server Hostname: 172.16.0.113
Server Port: 8888
Document Path: /api/v1/alarm/
Document Length: 16 bytes
Concurrency Level: 100
Time taken for tests: 61.840 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Keep-Alive requests: 10000
Total transferred: 1830000 bytes
Total POSTed: 2968200
HTML transferred: 160000 bytes
Requests per second: 161.71 [#/sec] (mean)
Time per request: 1236.790 [ms] (mean)
Time per request: 6.184 [ms] (mean, across all concurrent requests)
Transfer rate: 28.90 [Kbytes/sec] received
46.87 kb/s sent
75.77 kb/s total
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 148 1426.2 0 22015
Processing: 14 1076 740.8 973 14251
Waiting: 14 1076 740.8 973 14251
Total: 14 1225 1535.7 999 22330
Percentage of the requests served within a certain time (ms)
50% 999
66% 1310
75% 1476
80% 1599
90% 1987
95% 2473
98% 3480
99% 8742
100% 22330 (longest request)
2015-05-18 0:02 GMT+02:00 Daisuke Aoyama <aoyama at peach.ne.jp>:
> http://www.peach.ne.jp/archives/rpi/patch/dwc_otg-rpi2-20150516.patch
>>
>> This patch is subset of my USB patch of ODROID-C1 4x faster version on
>> 1Gbps.
>>
>
> Previous subset does not work correctly in ratecheck.
> I don't know a reason but same code from ODROID-C1 version works.
> I re-create the patch as dwc_otg-rpi2-20150518.patch.
>
> http://www.peach.ne.jp/archives/rpi/patch/dwc_otg-rpi2-20150518.patch
>
> Please use it instead. If you already applied 20150516, please remove it
> by:
>
> # patch -R < /path/to/dwc_otg-rpi2-20150516.patch
>
> Then, apply new version. Sorry for inconvenience.
>
> The below log is patched result on RPI2 using
> iperf3(/usr/ports/benchmarks/iperf3).
> Of course, powerd is enabled.
>
> ----------------------------------------------------------------------
> # iperf3 -c 172.18.0.138 (sending)
>
> Connecting to host 172.18.0.138, port 5201
> [ 4] local 172.18.0.159 port 33503 connected to 172.18.0.138 port 5201
> [ ID] Interval Transfer Bandwidth
> [ 4] 0.00-1.00 sec 11.4 MBytes 96.0 Mbits/sec
> [ 4] 1.00-2.00 sec 11.2 MBytes 94.1 Mbits/sec
> [ 4] 2.00-3.00 sec 11.2 MBytes 94.1 Mbits/sec
> [ 4] 3.00-4.00 sec 11.2 MBytes 94.1 Mbits/sec
> [ 4] 4.00-5.00 sec 11.2 MBytes 94.1 Mbits/sec
> [ 4] 5.00-6.00 sec 11.2 MBytes 94.1 Mbits/sec
> [ 4] 6.00-7.00 sec 11.3 MBytes 95.1 Mbits/sec
> [ 4] 7.00-8.00 sec 11.2 MBytes 94.1 Mbits/sec
> [ 4] 8.00-9.00 sec 11.2 MBytes 94.1 Mbits/sec
> [ 4] 9.00-10.00 sec 11.2 MBytes 94.0 Mbits/sec
> - - - - - - - - - - - - - - - - - - - - - - - - -
> [ ID] Interval Transfer Bandwidth
> [ 4] 0.00-10.00 sec 113 MBytes 94.4 Mbits/sec
> sender
> [ 4] 0.00-10.00 sec 112 MBytes 94.1 Mbits/sec
> receiver
>
> # iperf3 -c 172.18.0.138 -R (receiving)
>
> Connecting to host 172.18.0.138, port 5201
> Reverse mode, remote host 172.18.0.138 is sending
> [ 4] local 172.18.0.159 port 35723 connected to 172.18.0.138 port 5201
> [ ID] Interval Transfer Bandwidth
> [ 4] 0.00-1.00 sec 8.58 MBytes 72.0 Mbits/sec
> [ 4] 1.00-2.00 sec 8.81 MBytes 73.9 Mbits/sec
> [ 4] 2.00-3.00 sec 8.79 MBytes 73.8 Mbits/sec
> [ 4] 3.00-4.00 sec 8.87 MBytes 74.4 Mbits/sec
> [ 4] 4.00-5.00 sec 8.85 MBytes 74.2 Mbits/sec
> [ 4] 5.00-6.00 sec 8.89 MBytes 74.6 Mbits/sec
> [ 4] 6.00-7.00 sec 8.79 MBytes 73.7 Mbits/sec
> [ 4] 7.00-8.00 sec 8.86 MBytes 74.3 Mbits/sec
> [ 4] 8.00-9.00 sec 8.86 MBytes 74.3 Mbits/sec
> [ 4] 9.00-10.00 sec 8.80 MBytes 73.8 Mbits/sec
> - - - - - - - - - - - - - - - - - - - - - - - - -
> [ ID] Interval Transfer Bandwidth
> [ 4] 0.00-10.00 sec 88.2 MBytes 74.0 Mbits/sec
> sender
> [ 4] 0.00-10.00 sec 88.2 MBytes 74.0 Mbits/sec
> receiver
> ----------------------------------------------------------------------
>
> --
> Daisuke Aoyama
>
>
More information about the freebsd-arm
mailing list