public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* latency & real-time-ness.
@ 2002-03-03 20:12 Ben Greear
  2002-03-03 20:55 ` Alan Cox
  0 siblings, 1 reply; 16+ messages in thread
From: Ben Greear @ 2002-03-03 20:12 UTC (permalink / raw)
  To: linux-kernel

I have been doing some tests with 2.4.19-pre2-ac2 with
regard to network latency.  When running a steady stream of
138byte UDP packets at 115 packets per second, I see about
.1% of the packets take more than 5 miliseconds to go from
user-space to user-space on a 1Ghz PIII machine.

At 50Mbps (bi directional), I see a much wider latency spread,
with some packets taking up to 300ms or higher to get from A
to B.  The CPU load ranges from about 30% to 80% utilization
at this speed...

I'm running the program at nice -18.

So, what kind of things can I do to decrease the latency?

Would the low-latency patch help me?

Are there any scheduling tricks I can use to tell the kernel
that my program should get to run as soon as it wants to?

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>       <Ben_Greear AT excite.com>
President of Candela Technologies Inc      http://www.candelatech.com
ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear



^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: latency & real-time-ness.
@ 2002-03-04 16:20 Dieter Nützel
  2002-03-04 18:32 ` Robert Love
  0 siblings, 1 reply; 16+ messages in thread
From: Dieter Nützel @ 2002-03-04 16:20 UTC (permalink / raw)
  To: Robert Love; +Cc: Linux Kernel List, Ingo Molnar, Andrea Arcangeli

On Montag, 4. März 2002 03:45:27, Robert Love wrote:
> On Sun, 2002-03-03 at 22:32, Ben Greear wrote:
>
> > I found this patch:
> > preempt-kernel-rml-2.4.19-pre2-ac2-1.patch
> >
> > It applied cleanly...looks like maybe this isn't
> > the low-latency patch though now that I look at
> > it a little closer.
>
> Right, it is not.  It is the preemptive kernel patch.  More information
> can be found at http://tech9.net/rml/linux

Robert I am running 2.4.19-pre2-ac2 + preemption + lock-break.
It is very snappy due to lock-break I think.
But lock-break failed on vmscan.c and I didn't apply it by hand this time.
There was another fail but it was small and easily fixable.
We need a new lock-break, soon.

Sadly it is relative hard to put sched-O1-2.4.18-pre8-K3.patch and preemption 
on top of 2.4.19pre2aa1 which I did for several weeks before. The throughput 
with -aa VM maintenance is much better then with -ac.

Latest -aa is 2.4.18-pre8-K3-VM-24-preempt-lock.

Regards,
	Dieter


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2002-03-04 23:57 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-03 20:12 latency & real-time-ness Ben Greear
2002-03-03 20:55 ` Alan Cox
2002-03-03 22:43   ` Ben Greear
2002-03-04  1:12     ` J Sloan
2002-03-04  3:32       ` Ben Greear
2002-03-04  3:45         ` Robert Love
2002-03-04  4:32         ` J Sloan
2002-03-04 20:01       ` Jussi Laako
2002-03-04  1:09   ` J Sloan
2002-03-04  1:33     ` Alan Cox
2002-03-04  1:37       ` J Sloan
2002-03-04 15:31       ` Erik Andersen
  -- strict thread matches above, loose matches on Subject: below --
2002-03-04 16:20 Dieter Nützel
2002-03-04 18:32 ` Robert Love
2002-03-04 23:48   ` Rik van Riel
2002-03-04 23:56     ` Robert Love

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox