Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263422AbTECUs5 (ORCPT ); Sat, 3 May 2003 16:48:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263423AbTECUs5 (ORCPT ); Sat, 3 May 2003 16:48:57 -0400 Received: from pat.uio.no ([129.240.130.16]:33189 "EHLO pat.uio.no") by vger.kernel.org with ESMTP id S263422AbTECUs4 (ORCPT ); Sat, 3 May 2003 16:48:56 -0400 Date: Sat, 3 May 2003 23:01:21 +0200 (MEST) From: =?iso-8859-1?Q?P=E5l_Halvorsen?= To: Mark Mielke cc: linux-kernel@vger.kernel.org, =?iso-8859-1?Q?P=E5l_Halvorsen?= , miquels@cistron-office.nl Subject: Re: sendfile In-Reply-To: <20030502210648.GA5322@mark.mielke.cc> Message-ID: References: <20030430192809.GA8961@outpost.ds9a.nl> <20030430221834.GA23109@mark.mielke.cc> <20030501042831.GA26735@mark.mielke.cc> <3EB1A029.7080708@nortelnetworks.com> <20030502024147.GA523@mark.mielke.cc> <3EB1F1CD.4060702@nortelnetworks.com> <20030502210648.GA5322@mark.mielke.cc> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1158 Lines: 29 > Sat, May 03, 2003 at 12:42:59AM +0000, Miquel van Smoorenburg wrote: > > In article <20030502210648.GA5322@mark.mielke.cc>, > > Mark Mielke wrote: > > >One question it raises in my mind, is whether there would be value in > > >improving write()/send() such that they detect that the userspace > > >pointer refers entirely to mmap()'d file pages, and therefore no copy > > >of data from userspace -> kernelspace should be performed. > > You mean like > > > http://hypermail.idiosynkrasia.net/linux-kernel/archived/2003/week00/0056.html > > Yes, definately, and thank you for referring us to work that has already > been done. > > mark Does this mean that if you memory map a file and send it through TCP, you'll have no copy operations transfering data from disk to NIC (except the DMS transfers disk->memory and memory->NIC)? Does there exist work implementing this also for UDP? -ph - 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/