From: Wenji Wu <wenji@fnal.gov>
To: netdev@vger.kernel.org, davem@davemloft.net, akpm@osdl.org,
linux-kernel@vger.kernel.org
Subject: [patch 4/4] - Potential performance bottleneck for Linxu TCP
Date: Wed, 29 Nov 2006 17:31:05 -0600 [thread overview]
Message-ID: <HNEBLGGMEGLPMPPDOPMGCEALCGAA.wenji@fnal.gov> (raw)
In-Reply-To: <HNEBLGGMEGLPMPPDOPMGOEAKCGAA.wenji@fnal.gov>
[-- Attachment #1: Type: text/plain, Size: 831 bytes --]
From: Wenji Wu <wenji@fnal.gov>
Greetings,
For Linux TCP, when the network applcaiton make system call to move data
from
socket's receive buffer to user space by calling tcp_recvmsg(). The socket
will
be locked. During the period, all the incoming packet for the TCP socket
will go
to the backlog queue without being TCP processed. Since Linux 2.6 can be
inerrupted mid-task, if the network application expires, and moved to the
expired array with the socket locked, all the packets within the backlog
queue
will not be TCP processed till the network applicaton resume its execution.
If
the system is heavily loaded, TCP can easily RTO in the Sender Side.
Attached is the patch 3/4
best regards,
wenji
Wenji Wu
Network Researcher
Fermilab, MS-368
P.O. Box 500
Batavia, IL, 60510
(Email): wenji@fnal.gov
(O): 001-630-840-4541
[-- Attachment #2: fork.c.patch --]
[-- Type: application/octet-stream, Size: 682 bytes --]
--- linux-2.6.14-old/kernel/fork.c 2006-11-29 16:22:25.000000000 -0600
+++ linux-2.6.14/kernel/fork.c 2006-11-29 11:23:20.000000000 -0600
@@ -868,7 +868,7 @@
*
* It copies the registers, and all the appropriate
* parts of the process environment (as per the clone
- * flags). The actual kick-off is left to the caller.
+ * flags). The actual kick-off is left to the caller.copy_process
*/
static task_t *copy_process(unsigned long clone_flags,
unsigned long stack_start,
@@ -1154,6 +1154,9 @@
write_unlock_irq(&tasklist_lock);
retval = 0;
+ p->backlog_flag = 0;
+ p->extrarun_flag = 0;
+
fork_out:
if (retval)
return ERR_PTR(retval);
next prev parent reply other threads:[~2006-11-29 23:31 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <HNEBLGGMEGLPMPPDOPMGKEAJCGAA.wenji@fnal.gov>
2006-11-29 23:27 ` [Changelog] " Wenji Wu
2006-11-29 23:28 ` [patch 1/4] " Wenji Wu
2006-11-29 23:29 ` [patch 2/4] " Wenji Wu
2006-11-29 23:30 ` [patch 3/4] " Wenji Wu
2006-11-29 23:31 ` Wenji Wu [this message]
2006-11-30 0:53 ` [patch 1/4] " David Miller
2006-11-30 1:08 ` Andrew Morton
2006-11-30 1:13 ` David Miller
2006-11-30 6:04 ` Mike Galbraith
2006-11-29 23:36 ` [Changelog] " Martin Bligh
2006-11-29 23:42 ` Bug 7596 " Andrew Morton
2006-11-30 6:32 ` Ingo Molnar
2006-12-19 18:37 ` Stephen Hemminger
2006-12-19 23:52 ` Herbert Xu
2006-12-20 2:55 ` David Miller
2006-12-20 5:11 ` Stephen Hemminger
2006-12-20 5:15 ` David Miller
2006-11-30 1:01 ` David Miller
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=HNEBLGGMEGLPMPPDOPMGCEALCGAA.wenji@fnal.gov \
--to=wenji@fnal.gov \
--cc=akpm@osdl.org \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@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
all inboxes | Powered by JetHome®