From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 3 13:49:43 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 90C72106566C for ; Mon, 3 Mar 2008 13:49:43 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 541EB8FC25 for ; Mon, 3 Mar 2008 13:49:43 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JWB2x-0006kk-79 for freebsd-hackers@freebsd.org; Mon, 03 Mar 2008 13:49:39 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Mar 2008 13:49:39 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Mar 2008 13:49:39 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Mon, 03 Mar 2008 14:53:10 +0100 Lines: 33 Message-ID: References: <200803022218.32873.cneirabustos@gmail.com> <20080303081021.GC80576@hoeg.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig3B672D1F0D8EEE3D23418196" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.6 (X11/20071022) In-Reply-To: <20080303081021.GC80576@hoeg.nl> X-Enigmail-Version: 0.95.0 Sender: news 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 13:49:43 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3B672D1F0D8EEE3D23418196 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ed Schouten wrote: > * carlos neira wrote: >> is there an equivalent of readahead syscall in linux , for freebsd ?= =2E >> i was looking at http://preload.sourceforge.net/ , and it needs this= . >=20 > 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 :) --------------enig3B672D1F0D8EEE3D23418196 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHzALGldnAQVacBcgRAv+TAKC4fCFIvoblvjrDOnXCAEuty4dHwgCghLNN i8LydGGXnqMjoz6sRAOEWsg= =IHmO -----END PGP SIGNATURE----- --------------enig3B672D1F0D8EEE3D23418196--