From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 6 13:57:59 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22A89106566B for ; Thu, 6 Mar 2008 13:57:59 +0000 (UTC) (envelope-from mike@urgle.com) Received: from anchor-post-37.mail.demon.net (anchor-post-37.mail.demon.net [194.217.242.87]) by mx1.freebsd.org (Postfix) with ESMTP id DEC728FC1E for ; Thu, 6 Mar 2008 13:57:58 +0000 (UTC) (envelope-from mike@urgle.com) Received: from rocher.urgle.com ([80.177.40.50]) by anchor-post-37.mail.demon.net with esmtp (Exim 4.68) id 1JWJAg-00034B-OD; Mon, 03 Mar 2008 22:30:10 +0000 Message-ID: <47CC7BC3.3020504@urgle.com> Date: Mon, 03 Mar 2008 22:29:23 +0000 From: Mike Bristow User-Agent: Thunderbird 2.0.0.12 (X11/20080301) MIME-Version: 1.0 To: Julian Elischer References: <200803022218.32873.cneirabustos@gmail.com> <20080303081021.GC80576@hoeg.nl> <47CC6E7D.10707@elischer.org> In-Reply-To: <47CC6E7D.10707@elischer.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: readahead(2) - Linux X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Mar 2008 13:57:59 -0000 Julian Elischer wrote: > Ivan Voras wrote: >> Ed Schouten wrote: >>> * carlos neira wrote: >>>> is there an equivalent of readahead syscall in linux , for freebsd ?. >>>> i was looking at http://preload.sourceforge.net/ , and it needs >>>> this . >>> Maybe a mmap(), followed by a madvise()? >> >> Or an open() followed by a read() loop? :) If the goal is to preload the >> files, this one is certainly going to do it :) >> >> > > the aim is to load it into system memory but not copy anything into > user memory. sendfile(2) to /dev/null, perhaps.