Just sharing that I managed to setup a virtualized ROS as guest on a Debian sid (with qemu-kvm from git for pci-assign).
Some data:
ASUS P8B WS -- has dual intel 82574L
Intel core-i7 2600
RouterOS 5.6 (free)
resources: http://www.linux-kvm.org/page/How_to_as ... T-d_in_KVM (don't miss adding intel_iommu=on to kernel boot options... )
I did this mostly to test ROS on x86 wrt windows, ipad etc to pptp / sstp etc.
Debian Sid eth0, mikrotik (debian sid's re-assigned eth1), linux laptop, windows laptop all connected to the same stupid GE switch.
Basic tests done, three groups:
A) wget to linux laptop from lighttpd @ Debian Sid, serving a 1TB sparse file.
- A1) Through NAT on mikrotik: 97% of wirespeed ( ~95kpps), ~30% cpu & irq load @ mikrotik (crashed webfig's apparently, lost pps updating data there completely)
B) Chrome web dl of same sparse file:
- B1) through vanilla(? ie what most wiki pages suggest, default-encryption etc) pptp & NAT: ~270 Mbps (~34 MB/s) -- cpu-load at client, core i5 420 - (2.4GHz) ~97% on all four cores -- cpu load at mikrotik ~ 97% as well.
- B2) B1, but taking NAT away, replacing it with Proxy-ARP between PPTP and ether1 (no IP header srcnat/masquerading), 340 Mbps (~40 MB/s) -- cpu load as B1.
C) Shooting small icmp echo reply packets from Debian Sid onto Linux Laptop, routed through mikrotik (that is, out eth0 onto GE-switch, back into eth1 on loan to mikrotik, packets arriving straight into the virtualized KVM machine, and then going back to GE switch after ROS routing, and finally out from GE switch onto Linux Laptop):
root@davinci:~# tcpreplay -i eth0 -l 0 -t /dev/shm/packets2.pcap
sending out eth0
processing file: /dev/shm/packets2.pcap
processing file: /dev/shm/packets2.pcap
processing file: /dev/shm/packets2.pcap
^C
Actual: 37125047 packets (3638254606 bytes) sent in 103.41 seconds
Rated: 35182812.0 bps, 268.42 Mbps, 359008.28 pps
... this seems to have hit the ~limit of what I'm able to tcpreplay out... so need better methods to send more packets than that.
This resulted in a ~85% cpu / irq load on the ROS VM.
Ideas for more tests has to be quick, the free license expires soon.
Regards,
Martin