[lkml]   [2001]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectproblem with TCP zero copy (sendpage)

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)) {

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!

Get your own FREE, personal Netscape Mail account today at

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:57    [W:0.019 / U:0.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site