From: Eric Dumazet <dada1@cosmosbay.com>
To: Chris Friesen <cfriesen@nortel.com>
Cc: Lee Revell <rlrevell@joe-job.com>,
linux-kernel@vger.kernel.org, linux-net@vger.kernel.org
Subject: Re: posible latency issues in seq_read
Date: Sat, 21 Jul 2007 05:46:45 +0200 [thread overview]
Message-ID: <46A181A5.5010203@cosmosbay.com> (raw)
In-Reply-To: <46A1399C.8010405@nortel.com>
Chris Friesen a écrit :
> Lee Revell wrote:
>> On 7/20/07, Chris Friesen <cfriesen@nortel.com> wrote:
>
>>> 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.
>
>> Can you reproduce with a recent kernel? Lots of latency issues have
>> been fixed since then.
>
> Unfortunately I have to fix it on this version (the bug was found on
> shipped product), so if there was a difference I'd have to isolate the
> changes and backport them. Also, I can't run the software that triggers
> the problem on a newer kernel as it has dependencies on various patches
> that are not in mainline.
>
> Basically what I'd like to know is whether calling schedule() in
> seq_read() is safe or whether it would break assumptions made by
> seq_file users.
>
It wont help much. seq_read() is fine in itself.
The problem is in established_get_next() and established_get_first() not
allowing softirq processing, while scanning a possibly huge hash table, even
if few sockets are hashed in.
As cond_resched_softirq() was added in linux-2.6.11, you probably *need* to
check the diffs between linux-2.6.10 & linux-2.6.11
files :
include/linux/sched.h
net/core/sock.c (__release_sock() latency)
net/ipv4/tcp_ipv4.c (/proc/net/tcp latency)
next prev parent reply other threads:[~2007-07-21 3:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-20 21:15 posible latency issues in seq_read Chris Friesen
2007-07-20 22:18 ` Lee Revell
2007-07-20 22:39 ` Chris Friesen
2007-07-21 3:46 ` Eric Dumazet [this message]
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=46A181A5.5010203@cosmosbay.com \
--to=dada1@cosmosbay.com \
--cc=cfriesen@nortel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.org \
--cc=rlrevell@joe-job.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.