Re: [PATCH 0 of 4] Generic AIO by scheduling stacks

2007-02-14 Thread James Antill
o 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 things like IO limiting, which aio_sendfile() won't. [2]

Re: [PATCH 0 of 4] Generic AIO by scheduling stacks

2007-02-14 Thread James Antill
() 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 things like IO limiting, which aio_sendfile() won't. [2] http://illiterat.livejournal.com/2989.html -- James Antill -- [EMAIL PROTECTED] http://www.and.org/and-httpd

Re: PROBLEM: select() on TCP socket sleeps for 1 tick even if data available

2001-04-11 Thread James Antill
"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 that

Re: PROBLEM: select() on TCP socket sleeps for 1 tick even if data available

2001-04-11 Thread James Antill
"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 that I've done. This passes data between 2 processes. Obv

Re: PROBLEM: select() on TCP socket sleeps for 1 tick even if data available

2001-04-10 Thread James Antill
"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 > som

Re: PROBLEM: select() on TCP socket sleeps for 1 tick even if data available

2001-04-10 Thread James Antill
"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 something else. See below for results. Ahh, ok.

Re: PROBLEM: select() on TCP socket sleeps for 1 tick even if data available

2001-04-09 Thread James Antill
, > > "\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; zerotime.tv_sec = 0; zerotime.t

Re: PROBLEM: select() on TCP socket sleeps for 1 tick even if data available

2001-04-09 Thread James Antill
ll_wait (include/linux/poll.h in the linux sources, with __pollwait being in fs/select.c). -- # James Antill -- [EMAIL PROTECTED] :0: * ^From: .*james@and\.org /dev/null - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECT

Re: DNS goofups galore...

2001-02-20 Thread James Antill
"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

Re: DNS goofups galore...

2001-02-20 Thread James Antill
"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 ready This kills loop detection. Yes,

Re: DNS goofups galore...

2001-02-12 Thread James Antill
at 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

Re: Traceroute without s bit

2000-12-06 Thread James Antill
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 Antill -- [EMAIL PR

Re: Traceroute without s bit

2000-12-06 Thread James Antill
; } - poll(pfd, m, timeout - now); + poll(pfd, m, (timeout - now) * 1000); /* Receive any pending ICMP errors */ for (n = 0; n m; n++) { -- # James Antill -- [EMAIL PROTECTED] :0: * ^From: .*[EMAIL PROTECTED] /dev/null - To unsubscribe

Re: sigtimedwait with a zero timeout

2000-10-02 Thread James Antill
eturn 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). -- James

Re: sigtimedwait with a zero timeout

2000-10-02 Thread James Antill
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). -- James Antill -- [EMAIL PROTECTED] "If we can't keep this sort of