From owner-freebsd-hackers Mon Jan 8 06:45:53 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA12041 for hackers-outgoing; Mon, 8 Jan 1996 06:45:53 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA12033 for ; Mon, 8 Jan 1996 06:45:44 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id BAA00924; Tue, 9 Jan 1996 01:43:59 +1100 Date: Tue, 9 Jan 1996 01:43:59 +1100 From: Bruce Evans Message-Id: <199601081443.BAA00924@godzilla.zeta.org.au> To: hackers@FreeBSD.org, wosch@cs.tu-berlin.de Subject: Re: large files Sender: owner-hackers@FreeBSD.org Precedence: bulk >On FreeBSD 2.0 I can mmap only file less than 2GB (SSIZE_MAX alias >INT_MAX). On FreeBSD 2.1 I can't write(2) to files larger than 2GB >(and don't test if mmap works with 2GB files). >Why? Files larger than 2GB didn't work in in FreeBSD or previous versions. 2.1 apparently enforces the limit better. There's some chance that large files work in -current. The lseek method allows creation of a 32GB file on a 32MB file system. Your example works more or less as expected: mmapping slightly less than 4GB doesn't work, but mapping a window of size (file_size % 2GB). for file sizes of slightly less than 2G, 4GB, 6GB and 8GB. Bruce