Re: What happened to computer architecture (and comp.arch?)
- From: Morten Reistad <first@xxxxxxxxx>
- Date: Sun, 4 Oct 2009 23:30:15 +0200
In article <m3r5ti3oft.fsf@xxxxxxxxxxxxxxx>,
Benny Amorsen <benny+usenet@xxxxxxxxxx> wrote:
Morten Reistad <first@xxxxxxxxx> writes:
The applications are coded using all three main apis, select(),
poll() and monster numbers of synchronous threads. They behave
equally well, differences are too small to be significant.
I am a little bit surprised that they behave equally well. Asterisk (the
only one I have looked at) seems to make an extra system call per packet
according to strace, and I would have expected that to have an impact.
Asterisk actually performs best. But the user mode code represents
less than 1/20th of the cpu time expended, so user mode optimisations
will not have much impact.
As I said in an earlier posting, 1/20th is used in user mode,
1/10th in task switching, 1/4th in interrupt code (800 megabit
two way in small pakcet mode) and the remaining 2/3 inside the
Linux kernel.
I am working on a kernel driver for this substitution, so I
can put it directly in the routing code, and avoid all the
excursions into user mode.
It seems like the splice system call ought to be able to do this, but I
don't think it works for UDP, and it probably isn't good for small
payloads like this. Conceptually it seems like the right path...
The bottleneck here isn't in user mode code at all. That was why
we tried FreeBSD as a test. If was not much different. Somewhat
tighter code and somewhat coarser locks, but not that big a
difference.
-- mrr
.
- References:
- Re: What happened to computer architecture (and comp.arch?)
- From: Terje Mathisen
- Re: What happened to computer architecture (and comp.arch?)
- From: Morten Reistad
- Re: What happened to computer architecture (and comp.arch?)
- From: Benny Amorsen
- Re: What happened to computer architecture (and comp.arch?)
- Prev by Date: Re: A perspective on parallelism
- Next by Date: Re: A perspective on parallelism
- Previous by thread: Re: What happened to computer architecture (and comp.arch?)
- Next by thread: Re: What happened to computer architecture (and comp.arch?)
- Index(es):
Relevant Pages
|