From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] Some beginner technical questions
Date: Fri, 25 Jan 2008 21:01:12 +0100 [thread overview]
Message-ID: <18330.16392.961632.366406@domain.hid> (raw)
In-Reply-To: <479A38CF.6070209@domain.hid>
Jan Kiszka wrote:
> Remi Lefevre wrote:
> > Hi, I try to really understand the Xenomai design & behavior and have
> > a few technical questions for which I can't find exact answers on
> > documentations or mailing list :
> >
> > - What is the overhead of the Adeos/I-Pipe layer on non RT Linux tasks
> > (including linux kernel) ?
> > This surely depends on interrupts number, but perhaps some results on
> > a particular platform exist.
>
> It also depends on the architecture and CPU speed. I can't provide
> up-to-date numbers, and the best for you is anyway to evaluate
> specifically your desired platform. This could mean running typical
> Linux benchmark (eg. lmbench) on kernels with and without I-pipe +
> Xenomai. You are always welcome to publish results and discuss them with us.
Some number were published a long time ago on the LKML comparing the
overhead of adeos and preempt_rt. It starts at:
http://groups.google.com/group/linux.kernel/msg/b59137a4da507a55?hl=en
From my experience on ARM based Intel IXP465 hardware, the overhead of
Adeos is invisible when observing network throughput or CPU consumption
induced by this network traffic.
>
> >
> > - When using RTnet, I understand that non RT Linux tasks uses a
> > virtual network device linked to the RTnet one, so what performance
> > impact does this have on non RT network bandwidth ?
>
> That depends. First of all, you only have to use the the virtual NICs
> when you have to share the RT Ethernet link with non-RT traffic.
> Otherwise you could simply use standard networking without penalties. If
> VNICs are to be used, the performance Linux sees heavily depends on the
> RTmac discipline and its configuration (e.g. the TDMA slot layout). Feel
> free to continue on this topic on the rtnet-user list.
I have a particular experience with IXP465 on this topic, using the
nomac policy. First RTnet vnic TX suffer from a performance problem
which is due to the fact that sending a packet wakes up a real-time task
to send the packet. Since the task is real-time, it wakes up
immediately, so there is no way the packets may be batched, and for
every packet sent, we pay the price of a context switch. Once this
bottleneck removed and after a few other minor performance improvements,
I could make some measurements:
- on IXP465 running vanilla linux, NATing a 100 Mbits/sec traffic
consumes 80% of CPU;
- when running through RTnet vnics, it consumes 100% of CPU for a
traffic around 95 Mbits/sec, so, it does not come for free, but
remains acceptable.
--
Gilles Chanteperdrix.
next prev parent reply other threads:[~2008-01-25 20:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-24 13:05 [Xenomai-core] Some beginner technical questions Remi Lefevre
2008-01-25 19:30 ` Jan Kiszka
2008-01-25 20:01 ` Gilles Chanteperdrix [this message]
2008-01-26 15:33 ` Philippe Gerum
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=18330.16392.961632.366406@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=jan.kiszka@domain.hid \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.