Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Nov 1999 15:50:52 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Mikhail Teterin <mi@kot.ne.mediaone.net>
Cc:        questions@freebsd.org
Subject:   Re: -lmd's MD5File() 
Message-ID:  <25815.942763852@critter.freebsd.dk>
In-Reply-To: Your message of "Tue, 16 Nov 1999 09:41:40 EST." <199911161441.JAA27403@rtfm.newton> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?25815.942763852>