Use Default Apache Benchmark within Ubuntu 12.04 on PC

See attatch test log file

In static page case , Apache never wins,as I know


2014-06-09 7:23 GMT+08:00 John Syn <[email protected]>:

>
> From: William Hermans <[email protected]>
> Reply-To: <[email protected]>
> Date: Saturday, June 7, 2014 at 8:37 AM
> To: <[email protected]>
> Subject: Re: [beagleboard] BeagleBone Black web server
>
> *Apache on arm is not a too good option try lighthttpd ?*
>
> I haven’t used Apache much, but my understanding is that Apache uses a
> thread per connection which sucks up resources pretty quickly and doesn’t
> scale very well. This is the reason why Node.js is preferred because it is
> single threaded and uses asynchronous I/O so it scales so much better.
> Given the limited resources on the BBB, Node.js is able to support >100x
> connections compared to Apache. I don’t know much about Lighthttpd.
>
> Regards,
> John
>
>
>
> Really ? Care to enlighten us as to why Apache on ARM is no good ?
>
>
> On Sat, Jun 7, 2014 at 5:19 AM, Don deJuan <[email protected]> wrote:
>
>>  darkhttpd and nginx are also good alternatives as well as a few others.
>>
>> On 06/07/2014 04:19 AM, Li926744 wrote:
>>
>> Apache on arm is not a too good option try lighthttpd ?
>>
>> Michael Thompson <[email protected]>
>> <[email protected]>编写:
>>
>> I flashed Debian to the eMMC and it seems to be working fine. My plan is
>> to host a small web page using Apache. I installed Apache and using the IP
>> address the BeagleBone 101 loads fine from outside my network.
>>
>> So, my question is, in what directory do I save my index.html file in
>> order to see it as the default page served by Apache? There are no files in
>> the /var/www/ directory so I am confused. On my Linux Mint (Debian edition)
>> all I had to do was save my index file in the www directory.
>>
>> Anyone know where I am going wrong?
>>
>> Thanks!!
>>  --
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>> --
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>  --
>> For more options, visit http://beagleboard.org/discuss
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BeagleBoard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
>  --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
xihuang@Z620-NAV:/tmp/u-boot$ ab -n 2000 -c 1000 http://localhost:80/index.html
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 localhost (be patient)
Completed 200 requests
Completed 400 requests
Completed 600 requests
Completed 800 requests
Completed 1000 requests
Completed 1200 requests
Completed 1400 requests
Completed 1600 requests
Completed 1800 requests
Completed 2000 requests
Finished 2000 requests


Server Software:        lighttpd/1.4.28
Server Hostname:        localhost
Server Port:            80

Document Path:          /index.html
Document Length:        177 bytes

Concurrency Level:      1000
Time taken for tests:   0.221 seconds
Complete requests:      2000
Failed requests:        0
Write errors:           0
Total transferred:      868000 bytes
HTML transferred:       354000 bytes
Requests per second:    9037.75 [#/sec] (mean)
Time per request:       110.647 [ms] (mean)
Time per request:       0.111 [ms] (mean, across all concurrent requests)
Transfer rate:          3830.45 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        2    6   3.8      5      16
Processing:     3    7   6.5      7     201
Waiting:        2    6   6.6      6     201
Total:          7   13   8.0     11     212

Percentage of the requests served within a certain time (ms)
  50%     11
  66%     11
  75%     11
  80%     20
  90%     21
  95%     24
  98%     25
  99%     25
 100%    212 (longest request)
xihuang@Z620-NAV:/tmp/u-boot$ ab -n 2000 -c 1000 
http://localhost:8081/index.html
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 localhost (be patient)
Completed 200 requests
Completed 400 requests
Completed 600 requests
Completed 800 requests
Completed 1000 requests
Completed 1200 requests
Completed 1400 requests
Completed 1600 requests
Completed 1800 requests
apr_socket_recv: Connection reset by peer (104)
Total of 1935 requests completed

Attachment: apacheVSlighttp_1000.log
Description: Binary data

processor       : 11
vendor_id       : GenuineIntel
cpu family      : 6
model           : 45
model name      : Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz
stepping        : 7
microcode       : 0x710
cpu MHz         : 2493.830
cache size      : 15360 KB
physical id     : 0
siblings        : 12
core id         : 5
cpu cores       : 6
apicid          : 11
initial apicid  : 11
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb 
rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology 
nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est 
tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt 
tsc_deadline_timer aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dtherm 
tpr_shadow vnmi flexpriority ept vpid
bogomips        : 4987.66
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

root@Z620-NAV:/var/log/apache2# cat /proc/meminfo
MemTotal:       32827440 kB
MemFree:         2779544 kB
Buffers:              24 kB
Cached:         25453636 kB
SwapCached:            0 kB
Active:         14366476 kB
Inactive:       11211300 kB
Active(anon):     130136 kB
Inactive(anon):     1520 kB
Active(file):   14236340 kB
Inactive(file): 11209780 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                96 kB
Writeback:             0 kB
AnonPages:        124144 kB
Mapped:            18212 kB
Shmem:              7540 kB
Slab:            4272176 kB
SReclaimable:    4205616 kB
SUnreclaim:        66560 kB
KernelStack:        3808 kB
PageTables:        13496 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    16413720 kB
Committed_AS:    1477200 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      291592 kB
VmallocChunk:   34359430784 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      118372 kB
DirectMap2M:     2955264 kB
DirectMap1G:    30408704 kB
root@Z620-NAV:/var/log/apache2#

Reply via email to