From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 3 21:32:44 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 6DF38106566C for ; Mon, 3 Mar 2008 21:32:44 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outW.internet-mail-service.net (outW.internet-mail-service.net [216.240.47.246]) by mx1.freebsd.org (Postfix) with ESMTP id 68F348FC15 for ; Mon, 3 Mar 2008 21:32:44 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Mon, 03 Mar 2008 13:32:44 -0800 Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 4653D2D601C; Mon, 3 Mar 2008 13:32:43 -0800 (PST) Message-ID: <47CC6E7D.10707@elischer.org> Date: Mon, 03 Mar 2008 13:32:45 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: Ivan Voras References: <200803022218.32873.cneirabustos@gmail.com> <20080303081021.GC80576@hoeg.nl> In-Reply-To: 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: Mon, 03 Mar 2008 21:32:44 -0000 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.