From: "Chris Friesen" <cfriesen@nortel.com>
To: linux-kernel@vger.kernel.org
Subject: posible latency issues in seq_read
Date: Fri, 20 Jul 2007 15:15:32 -0600 [thread overview]
Message-ID: <46A125F4.3030504@nortel.com> (raw)
We've run into an issue (on 2.6.10) where calling "lsof" triggers lost
packets on our server. Preempt is disabled, and NAPI is enabled.
It appears that for some reason the networking softirq is not being
handled in a timely fashion, which means that the rx ring buffer fills
up and packets overflow.
It appears that the problem path is:
seq_read
tcp_seq_next
established_get_next
read_lock/read_unlock
The issue appears to be related to the amount of time that this syscall
takes. While we're in the syscall we cannot run the softirqd thread,
and so the rx buffer is not being cleaned.
The fact that there are kmalloc(GFP_KERNEL) calls in seq_read() seems to
indicate that sleeping is safe, so would it be reasonable to call
schedule() periodically (maybe based on elapsed time) to ensure that
system latency is kept under control?
Thanks,
Chris
next reply other threads:[~2007-07-20 21:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-20 21:15 Chris Friesen [this message]
2007-07-20 22:18 ` posible latency issues in seq_read Lee Revell
2007-07-20 22:39 ` Chris Friesen
2007-07-21 3:46 ` Eric Dumazet
2007-07-23 17:45 ` Chris Friesen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46A125F4.3030504@nortel.com \
--to=cfriesen@nortel.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox