On Fri, 2002-07-19 at 18:04, Hayden Myers wrote:
> seemed to help. I believe the problem is definately with sending the
> files over the line. We files are read into the socket to be sent across
> the network byte by byte. The boss says this is the best way to do it but
> I'm curious if this is so. The code that reads the file into the socket
> to go across the network is below.
Your buffers are way too small buf_cnt wants to be probably 60K or
higher. Making it large ensures one write syscall will fill all
available space in the queue immediately drastically reducing syscall
and wakeup rates. Also avoiding breaks in streaming.
> The application is a single threaded app using a multiprocess pre forking
> model if that helps any. I'm really baffled as to why using the 2.4
> kernel is slowing us down. Any help is appreciated. Sorry if this has
> come up before. I really have been looking for help for quite some time
> before posting this.
Without tcpdump data its hard to guess
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue Jul 23 2002 - 22:00:33 EST