From owner-freebsd-questions Thu Feb 15 13:22:03 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA24067 for questions-outgoing; Thu, 15 Feb 1996 13:22:03 -0800 (PST) Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id NAA24058 for ; Thu, 15 Feb 1996 13:21:55 -0800 (PST) Received: from caramba.cs.tu-berlin.de (wosch@caramba.cs.tu-berlin.de [130.149.17.12]) by mail.cs.tu-berlin.de (8.6.12/8.6.12) with ESMTP id WAA21122; Thu, 15 Feb 1996 22:02:59 +0100 Received: (from wosch@localhost) by localhost (8.6.9/8.6.9) id LAA00255; Thu, 15 Feb 1996 11:35:55 +0100 Date: Thu, 15 Feb 1996 11:35:55 +0100 From: Wolfram Schneider Message-Id: <199602151035.LAA00255@localhost> To: Greg W Hassan CC: questions@freebsd.org In-reply-to: Greg W Hassan's message of Wed, 14 Feb 1996 09:23:18 -0500 Subject: max file size/disk size? Reply-to: Wolfram Schneider MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-questions@freebsd.org Precedence: bulk >i'm looking for the max file size and the largest disk size? > >i have tried to calculate it but it seems too big. > >i believe the file size variable in the kernel is an >unsigned long long, which would turn out to be 2^64. i think >like 1.6 million terabytes. [mmap(2) man page from -current] The limit is imposed for a variety of reasons. Most of them have to do with FreeBSD not wanting to use 64 bit offsets in the VM system due to the extreme performance penalty. So FreeBSD use 32bit page indexes and this gives FreeBSD a maximum of 8TB filesizes. It's actually bugs in the filesystem code that causes the limit to be further restricted to 1TB (loss of precision when doing blockno calculations).