From: "P.O. Gaillard" <pierre-olivier.gaillard@fr.thalesgroup.com>
To: linux-kernel@vger.kernel.org
Subject: Re: voluntary-preempt-2.6.8.1-P1 seems to lose UDP messages.
Date: Thu, 19 Aug 2004 09:25:36 +0200 [thread overview]
Message-ID: <412455F0.9080408@fr.thalesgroup.com> (raw)
In-Reply-To: 41233923.80202@fr.thalesgroup.com
P.O. Gaillard wrote:
> Hello,
>
> I have a real-time application that transmits 20 MBytes/s over
> UDP/Gigabit Ethernet between 2 PCs. The NICs are from Intel and use the
> e1000 driver (MTU=1500). On the receive side, the computer has to
> process the data (real-time tasks doing signal processing work and using
> up 50% of the CPU time).
>
> This app works OK with 2.6.7 and 2.6.8.1 : the app does not complain
> about lost messages.
Thanks to the support of Pádraig Brady, I have found out that the
voluntary-preempt patch is "innocent".
In fact, it seems that the patch changes the scheduling of the application and
reveals that the UDP reception buffer is too small for this application.
So I changed /proc/sys/net/core/rmem_default to 200KBytes as instructed and the
problem disappeared.
It seems a bit counter-intuitive since the application has real-time threads
that are supposed to receive and timestamp all incoming messages as soon as they
arrive. I would therefore have expected the voluntary-preempt patch to improve
the reactivity of these tasks.
Anyway, it seems safe to say that the losses of UDP messages were not caused by
a bug in the voluntary-preempt patch. This is good news since it means that I
can use this patch.
Note: after running the program for the whole night the problem seemed to come
back after 2 hours or so. I will try with eth0/threaded=0 as Lee Revell suggested.
thanks a lot for your help,
P.O. Gaillard
prev parent reply other threads:[~2004-08-19 7:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-18 11:10 voluntary-preempt-2.6.8.1-P1 seems to lose UDP messages P.O. Gaillard
2004-08-18 18:31 ` Lee Revell
2004-08-19 7:25 ` P.O. Gaillard [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=412455F0.9080408@fr.thalesgroup.com \
--to=pierre-olivier.gaillard@fr.thalesgroup.com \
--cc=linux-kernel@vger.kernel.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