From owner-freebsd-arch@FreeBSD.ORG Fri May 30 01:50:52 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84F0E37B401 for ; Fri, 30 May 2003 01:50:52 -0700 (PDT) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0217743F3F for ; Fri, 30 May 2003 01:50:52 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-38lc0lu.dialup.mindspring.com ([209.86.2.190] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19Lfb7-0000Et-00; Fri, 30 May 2003 01:50:50 -0700 Message-ID: <3ED71B19.339E8A95@mindspring.com> Date: Fri, 30 May 2003 01:49:29 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Igor Sysoev References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4b3a8a48ae4003698c0aed7412474a059350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: arch@freebsd.org Subject: Re: sendfile(2) SF_NOPUSH flag proposal X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2003 08:50:52 -0000 Igor Sysoev wrote: > > FreeBSD, NetBSD, OpenBSD, Darwin. > > There's no sendfile() implementation in NetBSD and OpenBSD. If you > apply some experimental patch you can easy fix some non-portable issues. Or you could just fix sendfile. 8-). > By the way what's about kqueue(2) ? Are you not confused that NetBSD > does not support EVFILT_AIO and OpenBSD does not support EVFILT_AIO and > EVFILT_TIMER ? Does this mean that FreeBSD should not introduce any > new kqueue filters or flags ? These are incredibly trivial to support. I estimate the work at an hour each, including writing a unit test. It took me about an hour to write the SystemV IPC Message Queue KNOTE() code for FreeBSD. > I agree but I told not about the blocking on a page fault but the blocking > on the reading the file page from a disk by sendfile(). These pages > can be preloaded. It doesn't "read" it, per se: it creates a mapping, and it faults the pages; when they are in core, then they can be sent. [ removed 3 tangents not germane to this discussion; if you want to revive them, please revive them on -chat ] -- Terry