Date: Thu, 19 Aug 2010 06:52:06 +1000 From: Peter Jeremy <peterjeremy@acm.org> To: Dimitry Andric <dimitry@andric.com> Cc: Alan Cox <alan.l.cox@gmail.com>, current@freebsd.org Subject: Re: Official request: Please make GNU grep the default Message-ID: <20100818205206.GA55620@server.vk2pj.dyndns.org> In-Reply-To: <4C6AF13A.1080606@andric.com> References: <4C673F02.8000805@FreeBSD.org> <20100815013438.GA8958@troutmask.apl.washington.edu> <4C67492C.5020206@FreeBSD.org> <B7A05068-9578-4341-851B-86BD9BC7A2DA@gmail.com> <8639ufd78w.fsf@ds4.des.no> <4C6844D8.5070602@andric.com> <86sk2faqdl.fsf@ds4.des.no> <4C6AAA88.5080606@andric.com> <AANLkTik-ee6iKiOoA=KMmmToS2giUOmW5JB-d1vBx9r3@mail.gmail.com> <4C6AF13A.1080606@andric.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010-Aug-17 22:29:46 +0200, Dimitry Andric <dimitry@andric.com> wrote: >On 2010-08-17 18:29, Alan Cox wrote: >> Try it again on a memory resident file with the MAP_PREFAULT_READ option >> that is provided by this patch: >>=20 >> http://www.cs.rice.edu/~alc/MAP_PREFAULT_READ.patch > >A time trial gives: > > grep with normal mmap() 1396s > grep with prefault mmap() 1354s > grep with regular read() 1354s Is this with uncached (ie remount the filesystem on each test) or cached data? Which filesystem (and does it change for different filesystems (particularly between UFS and ZFS))? And one trial is not statistically valid - especially given the small differences. How about multiple multiple trials with ministat. --=20 Peter Jeremy --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEARECAAYFAkxsR/YACgkQ/opHv/APuIe2CwCffugTuF6B2kgNvXM7wqDRcEa+ HRQAoJPIfOwIJGrQWc4DkF6qfWJcjeOK =0cg8 -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100818205206.GA55620>