Raspberry Pi 2 model B.

RV vicek.radek na cpost.cz
Pondělí Únor 9 15:03:57 CET 2015


Zdravim,

nevim kdo co podnikal s RPI2, ale ted v pauzach v praci ho tu trapim 
programem AB (Apache Bench) co ustoji. Nainstalovane PHP 5.4 a Apache 
2.2 plus bezne moduly a GD2 - bezi k tomu SSH, Samba. Apache v defaultni 
konfiguraci.

Napsal jsem jednoduchej skriptik, kterej naplni dvesteprvkove pole 
jednorozmernymi poli o trech prvcich v cyklu a vygeneruje hodnoty pro 
graf, ktery je vykreslen na html strance jako PNG o rozmerech 1200x300:

<?php
require 'phplot/phplot.php';
$plot = new PHPlot(1200,300);

for ($i = 0; $i < 200; $i++)
   {
     $data[$i][0]='';
     $data[$i][1]=$i;
     $data[$i][2]=rand(0, 1000)/100;
   }
$plot->SetDataValues($data);
$plot->SetDataType('data-data');
$plot->DrawGraph();
?>
**********************************************************
z nize uvedeneho vyplyva, ze to cele zcela jiste uvazne na te proklate 
100Mb sitovce. I tak ukocirovat 100 paralelnich useru pri odbavovani 
1100 pozadavku za sekundu, je na zarizeni, ktere je skoro studene a 
basti 2.5W je skvele. Zkusim kde se to zlame pri kolika konkurencncich 
usrech.
**********************************************************
E:\Work>ab -n 10000 -c 100 http://rpi2/test/test.html
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 10.104.35.145 (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:        Apache/2.2.22
Server Hostname:        10.104.35.145
Server Port:            80

Document Path:          /test/test.html
Document Length:        130 bytes

Concurrency Level:      100
Time taken for tests:   8.898 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      4060000 bytes
HTML transferred:       1300000 bytes
Requests per second:    1123.86 [#/sec] (mean)
Time per request:       88.979 [ms] (mean)
Time per request:       0.890 [ms] (mean, across all concurrent requests)
Transfer rate:          445.59 [Kbytes/sec] received

Connection Times (ms)
               min  mean[+/-sd] median   max
Connect:        0    1   0.4      1       2
Processing:     4   88  13.1     87     251
Waiting:        3   75  19.6     81     245
Total:          5   89  13.2     88     251

Percentage of the requests served within a certain time (ms)
   50%     88
   66%     90
   75%     92
   80%     92
   90%     96
   95%    104
   98%    113
   99%    180
  100%    251 (longest request)
**********************************************************
E:\Work>ab -n 10000 -c 1000 http://rpi2/test/test.html
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 10.104.35.145 (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:        Apache/2.2.22
Server Hostname:        10.104.35.145
Server Port:            80

Document Path:          /test/test.html
Document Length:        130 bytes

Concurrency Level:      1000
Time taken for tests:   154.011 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      4060000 bytes
HTML transferred:       1300000 bytes
Requests per second:    64.93 [#/sec] (mean)
Time per request:       15401.072 [ms] (mean)
Time per request:       15.401 [ms] (mean, across all concurrent requests)
Transfer rate:          25.74 [Kbytes/sec] received

Connection Times (ms)
               min  mean[+/-sd] median   max
Connect:        0   15 207.3      1    3009
Processing:    98 14307 3410.2  15989   21806
Waiting:        7 8447 4636.5   9476   18765
Total:         98 14322 3409.8  15990   21807

Percentage of the requests served within a certain time (ms)
   50%  15990
   66%  16015
   75%  16024
   80%  16031
   90%  16046
   95%  16057
   98%  18813
   99%  19050
  100%  21807 (longest request)


Radek Vicek

---------------------------------

Pro případ, že tato zpráva obsahuje návrh smlouvy, Česká pošta, s.p. vylučuje možnost přijetí návrhu smlouvy s jakýmikoli změnami, dodatky či odchylkami. Navržení změn, dodatků či odchylek z Vaší strany považujeme toliko za podnět k dalšímu jednání o obsahu smlouvy. Až do okamžiku podpisu/uzavření smlouvy nejsme jakoukoli naší nabídkou vázáni. Výsledky jednání předcházejících uzavření smlouvy považuje Česká pošta, s.p. za nezávazné. Česká pošta, s.p. nenese žádnou odpovědnost za případné ukončení nebo přerušení jednání o smlouvě, a to bez ohledu na jeho důvod.

 

Tento e-mail včetně příloh může obsahovat důvěrné informace. Jestliže nejste zamýšlený adresát tohoto e-mailu, pak jakákoliv forma zveřejnění, tisk, kopírování, distribuce nebo šíření tohoto e-mailu a připojených příloh je přísně zakázáno. Pokud obdržíte tento e-mail omylem, oznamte to neprodleně jeho odesilateli a okamžitě tento e-mail včetně jeho příloh trvale vymažte ze svého systému. Odesilatel e-mailu neodpovídá za jakoukoliv škodu způsobenou modifikacemi či zpožděním přenosu e-mailu.


In the event that this email contains a contract proposal, Česká pošta, s.p. hereby excludes acceptance of the contract proposal with alterations, amendments and adjustments of any nature. Your proposal of alterations, amendments and adjustments may only be subject of further contract negotiation. Česká pošta, s.p. is not bound by any of its offer until the contract is concluded. Česká pošta s.p. considers the result of contract negotiations preceding the conclusion of contract non-binding. Česká pošta, s.p. is not liable for termination or interruption of any contract negotiation for whatever reason.

 

This e-mail and any attached files may contain confidential information. If you are not the intended addressee of this e-mail, you are hereby notified that any disclosure, printing, copying, distribution or dissemination of this e-mail and any attached files is strictly prohibited. If you receive this e-mail in error, please immediately notify the sender and permanently delete this e-mail and its attachments from your system. The sender of this e-mail does not accept liability for any damage that may be caused by any modifications or delay in the transmission of it.



Další informace o konferenci Hw-list