From owner-freebsd-questions Tue Nov 16 6:51:42 1999 Delivered-To: freebsd-questions@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id C659715217 for ; Tue, 16 Nov 1999 06:51:30 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.2) with ESMTP id PAA25817; Tue, 16 Nov 1999 15:50:52 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Mikhail Teterin Cc: questions@freebsd.org Subject: Re: -lmd's MD5File() In-reply-to: Your message of "Tue, 16 Nov 1999 09:41:40 EST." <199911161441.JAA27403@rtfm.newton> Date: Tue, 16 Nov 1999 15:50:52 +0100 Message-ID: <25815.942763852@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <199911161441.JAA27403@rtfm.newton>, Mikhail Teterin writes: >=>Should I submit patches, or is there a good reason? Thanks! >= >=How would it work for a 5GB file ? > >It will fall back to the old method. This will make the code uglier, but >quite a bit more efficient -- most of the time, files are smaller then >2Gb... And, I hope, eventually FreeBSD will allow bigger files to be >mmaped... It's not a FreeBSD issue, it's a hardware issue. As long as we only have 32 bits of virtual memory we're stuck somewhere in that range. >This is how my testings were done (I like TCL). After `make', run I like tcl too :-) I think any advantage of mmap disappears once the file gets sufficiently large, ie I would expect little or no benefit for files larger than a few megabytes, can you confirm that ? Anyway, send me your patches... -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message