* 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-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:09 ` J Sloan
0 siblings, 2 replies; 16+ messages in thread
From: Alan Cox @ 2002-03-03 20:55 UTC (permalink / raw)
To: Ben Greear; +Cc: linux-kernel
> I'm running the program at nice -18.
> So, what kind of things can I do to decrease the latency?
Hack up the ksoftirq stuff to only fall back to ksoftirqd after about
500 iterations instead of one is one little detail to deal with
> Would the low-latency patch help me?
Yes
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: latency & real-time-ness.
2002-03-03 20:55 ` Alan Cox
@ 2002-03-03 22:43 ` Ben Greear
2002-03-04 1:12 ` J Sloan
2002-03-04 1:09 ` J Sloan
1 sibling, 1 reply; 16+ messages in thread
From: Ben Greear @ 2002-03-03 22:43 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-kernel
Alan Cox wrote:
>>I'm running the program at nice -18.
>>So, what kind of things can I do to decrease the latency?
>>
>
> Hack up the ksoftirq stuff to only fall back to ksoftirqd after about
> 500 iterations instead of one is one little detail to deal with
Can someone expound slightly on this?
>
>
>>Would the low-latency patch help me?
>>
>
> Yes
Excellent, I'm compiling that now....
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-03 20:55 ` Alan Cox
2002-03-03 22:43 ` Ben Greear
@ 2002-03-04 1:09 ` J Sloan
2002-03-04 1:33 ` Alan Cox
1 sibling, 1 reply; 16+ messages in thread
From: J Sloan @ 2002-03-04 1:09 UTC (permalink / raw)
To: Alan Cox; +Cc: Ben Greear, linux-kernel
Alan Cox wrote:
>>I'm running the program at nice -18.
>>So, what kind of things can I do to decrease the latency?
>>
>
>Hack up the ksoftirq stuff to only fall back to ksoftirqd after about
>500 iterations instead of one is one little detail to deal with
>
>>Would the low-latency patch help me?
>>
>
>Yes
>
It might be very difficult to fix up the
low latency patch for the latest -ac,
but the mini-low-latency patch should
go right in - that should fix the worst
of it, and I've run 2.4.19-pre2-ac1 with
the mini low-latency patch.
It's part of the -aa patch collection, just
look for "00_lowlatency-fixes-4" or so.
Joe
^ 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
* Re: latency & real-time-ness.
2002-03-04 16:20 Dieter Nützel
@ 2002-03-04 18:32 ` Robert Love
2002-03-04 23:48 ` Rik van Riel
0 siblings, 1 reply; 16+ messages in thread
From: Robert Love @ 2002-03-04 18:32 UTC (permalink / raw)
To: Dieter Nützel; +Cc: Linux Kernel List, Ingo Molnar, Andrea Arcangeli
On Mon, 2002-03-04 at 11:20, Dieter Nützel wrote:
> 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.
-ac2 has rmap and lock-break is not designed for the rmap VM. You can
just ignore the rejects. Further, rmap has some conditional schedules
so you are taken care of.
If rmap finds its way into 2.5, I and others have some ideas about ways
to optimize the algorithms to reduce lock hold time and benefit from
preemption. For example, Daniel Phillips has some ideas wrt
zap_page_range.
> 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.
Robert Love
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: latency & real-time-ness.
2002-03-04 18:32 ` Robert Love
@ 2002-03-04 23:48 ` Rik van Riel
2002-03-04 23:56 ` Robert Love
0 siblings, 1 reply; 16+ messages in thread
From: Rik van Riel @ 2002-03-04 23:48 UTC (permalink / raw)
To: Robert Love
Cc: Dieter Nützel, Linux Kernel List, Ingo Molnar,
Andrea Arcangeli
On 4 Mar 2002, Robert Love wrote:
> If rmap finds its way into 2.5, I and others have some ideas about ways
> to optimize the algorithms to reduce lock hold time and benefit from
> preemption. For example, Daniel Phillips has some ideas wrt
> zap_page_range.
Feel free to help resolve these issues before rmap code gets
merged. I'd prefer to be able to introduce rmap in small bits
and pieces without breaking anything.
regards,
Rik
--
"Linux holds advantages over the single-vendor commercial OS"
-- Microsoft's "Competing with Linux" document
http://www.surriel.com/ http://distro.conectiva.com/
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: latency & real-time-ness.
2002-03-04 23:48 ` Rik van Riel
@ 2002-03-04 23:56 ` Robert Love
0 siblings, 0 replies; 16+ messages in thread
From: Robert Love @ 2002-03-04 23:56 UTC (permalink / raw)
To: Rik van Riel
Cc: Dieter Nützel, Linux Kernel List, Ingo Molnar,
Andrea Arcangeli
On Mon, 2002-03-04 at 18:48, Rik van Riel wrote:
> > If rmap finds its way into 2.5, I and others have some ideas about ways
> > to optimize the algorithms to reduce lock hold time and benefit from
> > preemption. For example, Daniel Phillips has some ideas wrt
> > zap_page_range.
>
> Feel free to help resolve these issues before rmap code gets
> merged. I'd prefer to be able to introduce rmap in small bits
> and pieces without breaking anything.
The above was just an optimization ... rmap and preempt work fine
together.
What Andrew Morton, I, and others intend to do for 2.5 is work on the
algorithms and locking issues to work on latency issues cleanly.
But I'll surely work on the issues wrt rmap ;)
Robert Love
^ 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