Incidentally there might be a hint of why this is happening in the time of 3648.3 show as a result of the xl list, which was done AFTER the benchmarks had run. Assuming this is Xen reporting the something like the processing time of each VM then it looks like rumprun is doing alot of processing relative to the other configurations.
On 20 Apr 2015, at 11:06 am, Andrew Stuart <[email protected]> wrote: Anyone got any suggestions for things I could change/tune/fiddle with to bring up the rumprun nginx transactions per second? >> (hmm, did the web server discussion jump threads?) jumping back... >> Oh, and just to be precise, that's assuming you're running on Xen. The >> baremetal NIC drivers are in much better shape, since they use regular >> NetBSD PCI code (virtio is "pci" too). Not sure I understand - I am running rumprun on Xen. Is there a way to change the configuration/drivers to use the baremtal NIC drivers to make it faster? >> Did you obtain that reference number by running the benchmarking tool and >> the httpd in different domains? I'd expect things to still be a lot slower, >> but not by a factor of 10. I'm executing the benchmarking siege tool from the Xen host Dom0, not in the same domain. I have tried to configure 4 similar environments, each running nginx. It’s not super scientific but they are similar configurations. ********************RESULT SUMMARY: dom0 ubuntu host with nginx 5878.87 trans/sec domu netbsd with nginx 4503.56 trans/sec domu ubuntu with nginx 4601.26 trans/sec domu rumprun with nginx 257.63 trans/sec ********************This shows the running VM’s: root@contiki:/home/ubuntu# xl list Name ID Mem VCPUs State Time(s) Domain-0 0 1227 1 r----- 499.3 rumprun-nginx 2 1024 1 r----- 3648.3 ubuntuguest 4 1024 1 -b---- 57.5 netbsd 6 512 1 -b---- 37.2 root@contiki:/home/ubuntu# ********************This is the command to start rumprun: rumprun xen -di -M 1024 \ -n inet,static,192.168.1.5/24 \ -b images/data.iso,/data \ -b images/stubetc.iso,/etc \ -- nginx/objs/nginx -c /data/conf/nginx.conf ######################RESULTS FOR NGINX RUNNING OUTSIDE XEN ON DOMU HOST UBUNTU (quad core machine, 3 cores disabled) root@contiki:/home/ubuntu# siege -c10 -b -t20s -i http://127.0.0.1/static/logo150.png ** SIEGE 3.0.5 ** Preparing 10 concurrent users for battle. The server is now under siege... Lifting the server siege... done. Transactions: 112933 hits Availability: 100.00 % Elapsed time: 19.21 secs Data transferred: 699.98 MB Response time: 0.00 secs Transaction rate: 5878.87 trans/sec Throughput: 36.44 MB/sec Concurrency: 6.33 Successful transactions: 112937 Failed transactions: 0 Longest transaction: 0.01 Shortest transaction: 0.00 FILE: /var/log/siege.log You can disable this annoying message by editing the .siegerc file in your home directory; change the directive 'show-logfile' to false. ######################RESULTS FOR NGINX RUNNING ON NETBSD DOMU root@contiki:/home/ubuntu# siege -c10 -b -t20s -i http://192.168.1.129/static/logo150.png ** SIEGE 3.0.5 ** Preparing 10 concurrent users for battle. The server is now under siege... Lifting the server siege... done. Transactions: 87369 hits Availability: 100.00 % Elapsed time: 19.40 secs Data transferred: 541.51 MB Response time: 0.00 secs Transaction rate: 4503.56 trans/sec Throughput: 27.91 MB/sec Concurrency: 7.68 Successful transactions: 87369 Failed transactions: 0 Longest transaction: 0.05 Shortest transaction: 0.00 FILE: /var/log/siege.log You can disable this annoying message by editing the .siegerc file in your home directory; change the directive 'show-logfile' to false. ######################RESULTS FOR NGINX RUNNING ON UBUNTU DOMU root@contiki:/home/ubuntu# siege -c10 -b -t20s -i http://192.168.1.32/static/logo150.png ** SIEGE 3.0.5 ** Preparing 10 concurrent users for battle. The server is now under siege... Lifting the server siege... done. Transactions: 87608 hits Availability: 100.00 % Elapsed time: 19.04 secs Data transferred: 543.00 MB Response time: 0.00 secs Transaction rate: 4601.26 trans/sec Throughput: 28.52 MB/sec Concurrency: 7.07 Successful transactions: 87610 Failed transactions: 0 Longest transaction: 0.03 Shortest transaction: 0.00 FILE: /var/log/siege.log You can disable this annoying message by editing the .siegerc file in your home directory; change the directive 'show-logfile' to false. ######################RESULTS FOR NGINX RUNNING ON RUMPRUN NGINX FROM https://github.com/mato/rump-nginx root@contiki:/home/ubuntu# siege -c10 -b -t20s -i http://192.168.1.5/static/logo150.png ** SIEGE 3.0.5 ** Preparing 10 concurrent users for battle. The server is now under siege... Lifting the server siege... done. Transactions: 5034 hits Availability: 100.00 % Elapsed time: 19.54 secs Data transferred: 31.20 MB Response time: 0.04 secs Transaction rate: 257.63 trans/sec Throughput: 1.60 MB/sec Concurrency: 9.90 Successful transactions: 5034 Failed transactions: 0 Longest transaction: 0.05 Shortest transaction: 0.01 FILE: /var/log/siege.log You can disable this annoying message by editing the .siegerc file in your home directory; change the directive 'show-logfile' to false. root@contiki:/home/ubuntu#
