ve said above you're only trying to help #1 and #2
(which are likely to be cached in the app. anyway) and apps.
that want to sendfile() to the network either do horrible hacks like
lighttpd's "AIO"[2], do a read+write copy loop with AIO or don't use AIO.
[1] And allows thi
"Stephen D. Williams" <[EMAIL PROTECTED]> writes:
> James Antill wrote:
> ...
> > >The
> > > time went from 3.7 to 4.4 seconds per 10.
> >
> > Ok here's a quick test
"Stephen D. Williams" <[EMAIL PROTECTED]> writes:
> James Antill wrote:
> >
> > I seemed to miss the original post, so I can't really comment on the
> > tests. However...
>
> It was a thread in January, but just ran accross it looking for
>
> 0.000179 read(6,
> > "\177\0\0\1\3242\0\0\0\2\4\236\216\341\0\0\7\327\177\0\0"..., 28) = 28
> > <0.75>
The strace here shows select() with an infinite timeout, you're
numbers will be much better if you do (pseudo code)...
struct timeval zerotime
"Henning P. Schmiedehausen" <[EMAIL PROTECTED]> writes:
> [EMAIL PROTECTED] (James Antill) writes:
>
> >"Henning P. Schmiedehausen" <[EMAIL PROTECTED]> writes:
>
> >> % telnet mail.bar.org smtp
> >> 220 mail.foo.org ESMTP read
ng that is pretty common is...
foo.example.com. IN A 4.4.4.4
foo.example.com. IN MX 10 mail.example.com.
foo.example.com. IN MX 20 backup-mx1.example.com.
; This is really mail.example.org.
backup-mx1.example.com. IN A 1.2.3.4
...another is to have "farms" of mail servers
+193,7 @@
timeout = hop->nextsend;
}
- poll(pfd, m, timeout - now);
+ poll(pfd, m, (timeout - now) * 1000);
/* Receive any pending ICMP errors */
for (n = 0; n < m; n++) {
--
# James
to return imediatley (and there might not be data) the
answer given is usually...
sigqueue( ... );
sigwaitinfo( ... );
If the above will still schedule, then Linus might be more likely to
take a patch (I'd guess that he'd look at sigtimedwait() to be like
sleep() in most other cases though
8 matches
Mail list logo