Without batman-advanced protocol between the nodes and when all nodes are communicating to each other the results for TCP and UDP cpu usage were:
A B C (all in communication range)
TCP CPU utilization send local from C to B = 5.85% TCP CPU utilzation send local from B to A = 0.90% TCP CPU utilization send local from C to A = 5.10%
After the nodes C and A were disconnected, we enabled batman-adv on all of the nodes and tested the cpu usage:
A B C (C & A out of contact)
TCP CPU utilization send local from C to B = 6.04% TCP CPU utilzation send local from B to A = 1.127% TCP CPU utilization send local from C to A = 8.615%
Thus I calculated that the (subtracting batman enabled cpu usage - batman disabled cpu usage)
CPU load due to batman-adv (from C to B) = 0.19% (1-hop) (which is 6.04 - 5.85) CPU load due to batman-adv (from B to A) = 0.27% (1-hop) (which is 1.127 - 0.90) CPU load due to batman-adv (from C to A) = 1.865% (2-hop) (which is 8.615 - 5.85 - 0.90)
The CPU load for 2-hop is more than that for 1-hop which is obvious. But, shouldn't the individual some of 1-hops (0.19% + 0.27 % = 0.46%) be equal to the 2-hop (1.865%).
So, the thing is I was expecting 0.46% but ended up with 1.865% for the 2-hop case.
Also, what about the CPU load on the relaying node itself (node B)?
MaX
On Wed, Aug 10, 2011 at 4:37 PM, Marek Lindner lindner_marek@yahoo.de wrote:
On Wednesday, August 10, 2011 13:50:48 Max Ip wrote:
http://www.netperf.org/svn/netperf2/tags/netperf-2.5.0/doc/netperf.html#TCP _005fSTREAM
The receive socket size bytes, send socket size bytes and send message size bytes were set to the default values i.e 87380, 16384 and 16384 respectively. The command gave the CPU utilization of 5.84% on node C (sending node).
Meaning netperf tells you the CPU utilization or you get it from top / uptime / etc ? If so, why do you conclude this is the CPU load generated by batman- adv ? It seems to me you are measuring the CPU load generated by netperf not batman-adv.
You could disable/bypass batman-adv and repeat the test whilst using static routes. What is the CPU load you get then ? By comparing these 2 tests (one with batman-adv and one without) you could say something about the load generated by batman-adv.
Regards, Marek