Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266153AbUALLcR (ORCPT ); Mon, 12 Jan 2004 06:32:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266156AbUALLcR (ORCPT ); Mon, 12 Jan 2004 06:32:17 -0500 Received: from fencepost.gnu.org ([199.232.76.164]:22472 "EHLO fencepost.gnu.org") by vger.kernel.org with ESMTP id S266153AbUALLcQ (ORCPT ); Mon, 12 Jan 2004 06:32:16 -0500 Date: Mon, 12 Jan 2004 06:31:23 -0500 To: Linus Torvalds Cc: Felix von Leitner , linux-kernel@vger.kernel.org Subject: Re: 2.6.1 sendfile regression Message-ID: <20040112113123.GA18485@gnu.org> References: <20040110000128.GA301@codeblau.de> <20040110052304.GA25346@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i From: Lennert Buytenhek Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1156 Lines: 32 On Sun, Jan 11, 2004 at 06:58:55PM -0800, Linus Torvalds wrote: > > > strace shows that the process is hanging > > > inside sendfile64 (which should not happen since the socket is > > > non-blocking). > > > > What if the data you're sending is not in the page cache? > > It will always block on the actual page cache, although we could try to > change that. My impression is that this is the reason why AIO sendfile was attempted. Although my wild guess is that that probably would only work on raw block devices and still not on regular filesystem files. > However, even if it blocks, it should only block at one page > at a time (or "incidental" blockage due to memory allocations etc). > > Blocking for long times implies a bug. (Even if it only blocks a page at a time, it will happily block on the next page and the one after that as long as there is write space in the destination socket?) --L - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/