public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Marek Lindner <lindner_marek@yahoo.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] Batman CPU usage
Date: Mon, 15 Aug 2011 17:33:48 +0200	[thread overview]
Message-ID: <201108151733.48675.lindner_marek@yahoo.de> (raw)
In-Reply-To: <CAJA-1LhpLpJBsekY92GjXspnfJO-j_g2VEjsc9gxSaR3yW+mZQ@mail.gmail.com>

On Monday, August 15, 2011 12:02:34 Max Ip wrote:
> The CPU usage is the resources consumed to run the netperf test.
> netperf gives the amount of CPU it consumes while sending the stream
> TCP_STREAM from client to the server. So, the CPU usage is calculated
> on the network first without batman-adv and secondly with batman-adv
> enabled on each nodes. Thus the difference would measure the cpu load
> created by batman-adv. So, I don't use top / uptime / etc.

When netperf tells you how much CPU cycles it consumed how can you deduce the 
batman-adv load from it ? netperf runs in user space and has no knowledge 
about what is going on in the kernel. In fact, netperf probably asks the 
kernel how many CPU cycles were consumed by its own process.
In other words: netperf has no way of knowing the load created by the kernel 
as it simply is beyond its scope. I suggest looking at tools that are able to 
analyze kernel load, for example ftrace.

 
> The whole point of using batman-adv in this experiment is to create
> adhoc connection between the end nodes (A and C) which are out of
> contact. So, the intermediate node (B) acts as the relaying node. So,
> I would like to create a virtual 2-hop condition (using ebtables to
> disable connection between end nodes A and C). Now that the 2-hop case
> is formed, what would be its effect in terms of CPU usage in node B. I
> don't think I can use any better setup than this one.

What you want to achieve is understandable but you were running different test 
setups and compared the results. Without batman-adv you had no relay and with 
batman-adv you had a relay. Trying to fix the difference with a simple 
calculation should only be done if one understands all the implications.

Regards,
Marek

      parent reply	other threads:[~2011-08-15 15:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-10 10:43 [B.A.T.M.A.N.] Batman CPU usage Max Ip
2011-08-10 11:13 ` Marek Lindner
2011-08-10 11:50   ` Max Ip
2011-08-10 14:37     ` Marek Lindner
2011-08-11 13:21       ` Max Ip
2011-08-11 14:37         ` Marek Lindner
2011-08-15 10:02           ` Max Ip
2011-08-15 10:20             ` Sven Eckelmann
2011-08-15 15:33             ` Marek Lindner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201108151733.48675.lindner_marek@yahoo.de \
    --to=lindner_marek@yahoo.de \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox