lkml.org 
[lkml]   [1999]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: sendfile (& mailinglist archives)
Hi!

> We've been toying with a large (linux) ftp/http/smb fileserving box, at the
> office, mostly to use as a mirror-box and to fill our spare bandwidth, and
> the colleague working with it wanted to (try to) use sendfile() for it. Now,
> i've seen some discussions on sendfile, but haven't really followed them,
> and threw away my linux-kernel 'archive' a week ago, so we tried to find
> some relative info on the 'net... and couldn't find too many. Well, hardly
> any, even in the two linux-kernel mailinglist archives i could find. Was i
> looking in the wrong places ? (linux.org and... one other. deja ? i can
> re-find if anyone cares.)
>
> In any case, the situation is this: we want to serve files, we want to flood
> all outgoing links, but we dont want to flood the machines' network buffers,
> and we dont want to make any unnecessary syscalls. Two sendfile()s in (too)
> quick succession however, makes the second one return EAGAIN, several times
> if kept in a loop, depending on the size of the first sendfile().

Well, I guess you have socket in nonblocking mode. Why? If not, then
there's something very wrong with sendfile, but last time I checked it
worked for me.

Pavel
--
The best software in life is free (not shareware)! Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.038 / U:0.988 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site