From: hochakhung@netscape.net
To: linux-kernel@vger.kernel.org
Subject: problem with TCP zero copy (sendpage)
Date: Tue, 14 Aug 2001 12:58:57 -0400 [thread overview]
Message-ID: <516EFCEC.124B959D.0F45C3B8@netscape.net> (raw)
Hi,
I have been running a module that gets free pages from the kernel, fills it with data and then sends the page to another machine using TCP/IP. Everything works fine for the past month when I was using sock_sendmsg and scatter-gather to send the iovec of pages in one go with MSG_DONTWAIT flag set.
However, since the last week, I've tried using sock->ops->sendpage for each of the page(with the MSG_MORE flag set except for the last page which is sent with the MSG_DONTWAIT flag set). I also send the header with the sock_sendmsg() function with MSG_MORE set. However, after making these changes, the module crashes after a while(about 5-20 minutes) that gives me: KERNEL bug at Page_alloc.c 191, which corresponds to the following in the source code within the rmqueue() function:
if (BAD_RANGE(zone, page)) {
BUG();
}
Does anyone know where the problem is? Any hint would be greatly appreciated. Thanks a lot.
__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
reply other threads:[~2001-08-14 18:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=516EFCEC.124B959D.0F45C3B8@netscape.net \
--to=hochakhung@netscape.net \
--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