Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Mar 1999 13:09:41 -0500
From:      "Norman C. Rice" <nrice@emu.sourcee.com>
To:        W Gerald Hicks <wghicks@bellsouth.net>
Cc:        Greg Black <gjb@comkey.com.au>, lbruno@cmp.com, freebsd-questions@FreeBSD.ORG, wghicks@wghicks.bellsouth.net
Subject:   Re: Technical questions about BSD
Message-ID:  <19990306130941.A5224@emu.sourcee.com>
In-Reply-To: <199903041331.IAA14062@bellsouth.net>; from W Gerald Hicks on Thu, Mar 04, 1999 at 08:31:16AM -0500
References:  <19990304104409.7795.qmail@alpha.comkey.com.au> <199903041331.IAA14062@bellsouth.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 04, 1999 at 08:31:16AM -0500, W Gerald Hicks wrote:

[ ... ]

> > What is the maximum file size that can run on a FreeBSD
> > operating system-- 64 Mbytes?
> 
> Ouch!  Where'd you get that?  FreeBSD would be a toy if this were the
> case.  It's not of course.   :-)
> 
> Filesizes are represented by 64 bit numbers in the system metadata
> but ISTR a traditional limit of 2 gigabytes.  There has been work
> in this area over the past few years so this might have been extended.

I have no problem creating and reading a 6 gigabyte file.

 # uname -rs
 FreeBSD 4.0-CURRENT
 # dd if=/dev/zero of=foo bs=1m count=6k  
 6144+0 records in
 6144+0 records out
 6442450944 bytes transferred in 573.647312 secs (11230683 bytes/sec)
 # ls -l
 total 6294536
 -rw-r--r--  1 root  wheel  6442450944 Mar  6 11:48 foo
 # dd if=foo of=/dev/null         
 12582912+0 records in
 12582912+0 records out
 6442450944 bytes transferred in 524.834994 secs (12275193 bytes/sec)

Note that "foo" is really 6 gigabytes (6*1024*1024*1024 bytes), not 
6 "marketing" gigabytes (6*1000*1000*1000 or 6,000,000,000 bytes).

I can't create a file larger than this because I don't have enough
free disk space. Perhaps someone with more disk space can determine 
whether a file larger than 8 gigabytes can be created and read.

-- 
Regards,
Norman C. Rice, Jr.

[ ... ]


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?19990306130941.A5224>