LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Help? sendfile() blocked in sk_stream_wait_memory()
@ 2011-01-31 21:47 Patrick J. LoPresti
0 siblings, 0 replies; only message in thread
From: Patrick J. LoPresti @ 2011-01-31 21:47 UTC (permalink / raw)
Hello. I have a client/server application that has been working fine
for years on dozens of systems deployed in the field.
I am working on upgrading our systems to newer versions of hardware
and Linux, and now my application is occasionally hanging in
sendfile(). The hang is moderately hard to reproduce.
My kernel version is 184.108.40.206-0.2-default (Suse 11 SP1 latest
update). I am working this problem though Suse, but I am hoping
someone here could kindly give me some pointers as well.
Here is the backtrace from /proc/<pid>/stack:
(Briefly, the client uses sendfile() to push data to the server, which
uses recv() to receive it.)
Using gdb, I have verified that the client is blocked in sendfile()
and the server is blocked in recv() on the socket between them.
I have disassembled my vmlinux to verify that
sk_stream_wait_memory+0x1a8/0x250 is the address following a call to
schedule_timeout(), as one might expect.
netstat shows both sides of the socket in "CONNECTED" state.
I have hammered the network connection between these systems pretty
hard and it is not showing any problems that I can discern. (This is
a 10GigE connection, for what it is worth.) I am working on building
a duplicate system to help verify that it is not a hardware problem.
My question is this: What is my next step for debugging this? As far
as I can tell, the socket has just sort of... "stopped", for no
apparent reason. I am not afraid to add some instrumentation to my
kernel, but I do not understand the socket code well enough even to
know where to begin.
Alternatively, any ideas for changes I could make to my system
configuration or application (e.g., adjusting sndbuf size?), even if
it were just a work-around and not a fix, would be appreciated.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-31 21:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-31 21:47 Help? sendfile() blocked in sk_stream_wait_memory() Patrick J. LoPresti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).