* Maximum file size
@ 1999-02-27 12:51 Stefan Schroepfer
1999-02-27 14:22 ` Uncle George
` (4 more replies)
0 siblings, 5 replies; 10+ messages in thread
From: Stefan Schroepfer @ 1999-02-27 12:51 UTC (permalink / raw)
To: axp-list
This was discussed not too long ago, but I cant find
the answer in the archive:
What is the maximum file size in ext2 filesystems?
Is there any difference between 32 and 64 bit systems?
Is there some filesystem implemented in Linux/Alpha,
which can handle files bigger than 2GB?
Thanks,
Stefan Schroepfer
scr@iis.fhg.de
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Maximum file size
1999-02-27 12:51 Maximum file size Stefan Schroepfer
@ 1999-02-27 14:22 ` Uncle George
1999-02-27 15:12 ` Sven Esbjerg
` (3 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: Uncle George @ 1999-02-27 14:22 UTC (permalink / raw)
To: axp-list
As i rem, file size <= 2gigs, partition size can be >2gigs.
Someone also said it was easy to teach for file to grow >2gigs BUT
nothing i know of has happened, or better - tested . i'd hate to have
13gigs of mush all of a sudden!
gat
Stefan Schroepfer wrote:
> This was discussed not too long ago, but I cant find
> the answer in the archive:
>
> What is the maximum file size in ext2 filesystems?
> Is there any difference between 32 and 64 bit systems?
> Is there some filesystem implemented in Linux/Alpha,
> which can handle files bigger than 2GB?
>
> Thanks,
> Stefan Schroepfer
> scr@iis.fhg.de
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Maximum file size
1999-02-27 12:51 Maximum file size Stefan Schroepfer
1999-02-27 14:22 ` Uncle George
@ 1999-02-27 15:12 ` Sven Esbjerg
1999-02-27 16:36 ` Robert Bowles
` (2 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: Sven Esbjerg @ 1999-02-27 15:12 UTC (permalink / raw)
To: axp-list
Stefan Schroepfer wrote:
>
> This was discussed not too long ago, but I cant find
> the answer in the archive:
>
> What is the maximum file size in ext2 filesystems?
> Is there any difference between 32 and 64 bit systems?
> Is there some filesystem implemented in Linux/Alpha,
> which can handle files bigger than 2GB?
I believe the max. file size is 2,1GB. I read something about a new
filesystem for Linux that is beeing developed. This should be able to
handle larger files than 2,5GB (required by Oracle 8).
Sven Esbjerg
Denmark
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Maximum file size
1999-02-27 12:51 Maximum file size Stefan Schroepfer
1999-02-27 14:22 ` Uncle George
1999-02-27 15:12 ` Sven Esbjerg
@ 1999-02-27 16:36 ` Robert Bowles
1999-02-28 4:58 ` Wes Bauske
1999-03-02 12:29 ` Matti Aarnio
4 siblings, 0 replies; 10+ messages in thread
From: Robert Bowles @ 1999-02-27 16:36 UTC (permalink / raw)
To: axp-list
On Sat, Feb 27, 1999 at 01:51:46PM +0100, Stefan Schroepfer wrote:
> This was discussed not too long ago, but I cant find
> the answer in the archive:
>
> What is the maximum file size in ext2 filesystems?
> Is there any difference between 32 and 64 bit systems?
As per 'struct stat', file size (st_size) is of type 'off_t',
which is typedef'd from 'long int'.
On a 32-bit system, (2^(32-1))=(2*(1024^3)) or 2 gigabytes.
On a 64-bit system, (2^(64-1))=(8*(1024^6)).
So, an alpha's ?stat _can_ return an enormous file, but I
don't believe ext2 supports it, ( sizes are __u32 ).
You _might_ be able to squeeze out a 4gb file (duh, I'm not sure).
Maybe I'll give it a try (if I can find that blank 4gb drive).
> Is there some filesystem implemented in Linux/Alpha,
> which can handle files bigger than 2GB?
Though >2gb files might be nice, I don't think its very practical
(with today's hardware). Even on the e4000's arrays at work, when
oracle wants something bigger that 2gb, we toss it a raw device
( even for 1gb spaces on fibre, performance is measurably better
on a raw device than in filesystem (at least on sunos) )
If you're dealing with huge amounts of contiguous data, its usually
best to let it live on its own spindle. :)
>
> Thanks,
> Stefan Schroepfer
> scr@iis.fhg.de
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Maximum file size
1999-02-27 12:51 Maximum file size Stefan Schroepfer
` (2 preceding siblings ...)
1999-02-27 16:36 ` Robert Bowles
@ 1999-02-28 4:58 ` Wes Bauske
1999-02-28 5:48 ` Wes Bauske
1999-03-02 12:29 ` Matti Aarnio
4 siblings, 1 reply; 10+ messages in thread
From: Wes Bauske @ 1999-02-28 4:58 UTC (permalink / raw)
To: axp-list
Stefan Schroepfer wrote:
>
> This was discussed not too long ago, but I cant find
> the answer in the archive:
>
> What is the maximum file size in ext2 filesystems?
> Is there any difference between 32 and 64 bit systems?
> Is there some filesystem implemented in Linux/Alpha,
> which can handle files bigger than 2GB?
>
I have successfully used files larger than 2GB on my
164LX, using 2.1.1xx level kernels. The ability to do
so occurred somewhere around 2.1.90. I don't think
I've exceeded 4GB though. If I can find a file on my
AIX systems over 4GB, I'll try put it on my Alpha to
see what happens.
Wes
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Maximum file size
1999-02-28 4:58 ` Wes Bauske
@ 1999-02-28 5:48 ` Wes Bauske
1999-03-01 9:46 ` Stefan Schroepfer
0 siblings, 1 reply; 10+ messages in thread
From: Wes Bauske @ 1999-02-28 5:48 UTC (permalink / raw)
To: axp-list
Wes Bauske wrote:
>
> Stefan Schroepfer wrote:
> >
> > This was discussed not too long ago, but I cant find
> > the answer in the archive:
> >
> > What is the maximum file size in ext2 filesystems?
> > Is there any difference between 32 and 64 bit systems?
> > Is there some filesystem implemented in Linux/Alpha,
> > which can handle files bigger than 2GB?
> >
>
> I have successfully used files larger than 2GB on my
> 164LX, using 2.1.1xx level kernels. The ability to do
> so occurred somewhere around 2.1.90. I don't think
> I've exceeded 4GB though. If I can find a file on my
> AIX systems over 4GB, I'll try put it on my Alpha to
> see what happens.
>
Update.
I just created a file not quite 5GB on my 164LX without
any apparent errors. I read it back to make sure it worked
and it looks OK. I know for sure the 2.5GB file I have is
good because I copied it back to AIX a couple weeks ago and
processed it there.
Currently running 2.1.129 on the 164LX.
-rw-r--r-- 1 wsb aspg 5013185760 Feb 27 23:41 junk.file
Now, if I just had NFS V3 support, I'd be set.
Wes
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Maximum file size
1999-02-28 5:48 ` Wes Bauske
@ 1999-03-01 9:46 ` Stefan Schroepfer
1999-03-01 19:06 ` Wes Bauske
0 siblings, 1 reply; 10+ messages in thread
From: Stefan Schroepfer @ 1999-03-01 9:46 UTC (permalink / raw)
To: axp-list
Wes Bauske wrote:
>
> Update.
>
> I just created a file not quite 5GB on my 164LX without
> any apparent errors. I read it back to make sure it worked
> and it looks OK. [...]
Wes: Thank you very much for trying this out!
So I can go to our video edition group and say
"Just take an Alpha".
Stefan Schroepfer
scr@iis.fhg.de
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Maximum file size
1999-03-01 9:46 ` Stefan Schroepfer
@ 1999-03-01 19:06 ` Wes Bauske
0 siblings, 0 replies; 10+ messages in thread
From: Wes Bauske @ 1999-03-01 19:06 UTC (permalink / raw)
To: axp-list
Stefan Schroepfer wrote:
>
> Wes Bauske wrote:
> >
> > Update.
> >
> > I just created a file not quite 5GB on my 164LX without
> > any apparent errors. I read it back to make sure it worked
> > and it looks OK. [...]
>
> Wes: Thank you very much for trying this out!
>
> So I can go to our video edition group and say
> "Just take an Alpha".
>
Do keep in mind my comment on NFS V3. Without it,
you won't be able to see those big files using NFS V2.
I have around 100GB of NFS'd disk space on my systems
and it is a pain that Linux can't see the large files.
Someone a while back said NFS V3 would work if you got
the proper patches but I never did find them.
Also, watch out for various file utilities that do not
correctly handle such large files. Last time I looked,
rcp would cause major trouble against a large file,
probably due to some structure it was linked with not
being updated. If you're seriously considering Linux
for this, it seems prudent to wait for a distribution
built against a 2.2 kernel and headers. That way, all
the utilities will have the correct headers in their build.
Wes
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Maximum file size
1999-02-27 12:51 Maximum file size Stefan Schroepfer
` (3 preceding siblings ...)
1999-02-28 4:58 ` Wes Bauske
@ 1999-03-02 12:29 ` Matti Aarnio
1999-03-02 14:00 ` Martin Høy
4 siblings, 1 reply; 10+ messages in thread
From: Matti Aarnio @ 1999-03-02 12:29 UTC (permalink / raw)
To: axp-list
Stefan Schroepfer <scr@iis.fhg.de> asks:
> What is the maximum file size in ext2 filesystems?
> Is there any difference between 32 and 64 bit systems?
> Is there some filesystem implemented in Linux/Alpha,
> which can handle files bigger than 2GB?
The answer is a bit complex.
With 2.0 series kernels there is *radical* difference
in between 32 and 64 bit systems at what they can support.
With latter 2.1 and 2.2 the differences are partly fixed.
Namely in 2.0 the VFS layer supports file offsets/sizes up
to system 'long'/'u_long' values -- 2G-1 for 32-bit machines.
In 2.2 the VFS layer supports offsets/sizes mostly up to
64-bit 'long long', however mainly so called buffer cache
in the kernel limits things in 32-bit systems to 2G-1.
So with 64-bit machines we are limited by filesystem internal
limits, not VFS.
With EXT2 the limit is a bit more complex to tell; it depends
at the block-size in the filesystem, and ultimately it is
limited to be 4G blocks of 512 bytes which is limit for all
block devices in Linux. (And ext2 can't span multiple devices;
a MD RAID* is just *one* device for ext2 ...)
From ftp://mea.tmt.tele.fi/linux/LFS/try-lfs.c comments:
* This program will terminate at llseek() resulting EINVAL
* error. The reason is that the underlying EXT2 FS has its
* own limitations for maximum file sizes depending the basic
* block size used to create the filesystem:
* 1k blocks allow 16 G + epsilon
* 2k blocks allow 256 G + epsilon
* 4k blocks allow 4096 G + epsilon
*
* The full formula for the classical UNIX indirectly addressed block
* index scheme is:
* B = blocksize_in_bytes
* maxsize = ( (B/4)^3 + (B/4)^2 + (B/4) + 10 ) * B
* Epsilon(s) above are thus the first and 2nd power terms, which are
* less than 1/250 of the main term. (1/1000 at 4k blocks)
> Thanks,
> Stefan Schroepfer
> scr@iis.fhg.de
/Matti Aarnio <matti.aarnio@sonera.fi>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Maximum file size
1999-03-02 12:29 ` Matti Aarnio
@ 1999-03-02 14:00 ` Martin Høy
0 siblings, 0 replies; 10+ messages in thread
From: Martin Høy @ 1999-03-02 14:00 UTC (permalink / raw)
To: axp-list
[Matti Aarnio <matti.aarnio@sonera.fi>]
|
| [snip]
|
| So with 64-bit machines we are limited by filesystem internal
| limits, not VFS.
|
| With EXT2 the limit is a bit more complex to tell; it depends
| at the block-size in the filesystem, and ultimately it is
| limited to be 4G blocks of 512 bytes which is limit for all
| block devices in Linux. (And ext2 can't span multiple devices;
| a MD RAID* is just *one* device for ext2 ...)
I'm running 2.2.2-ac5 on a LX164 (Microway Screamer) and have no
problems creating >2GB files on a single disk (tested with 6GB).
However, I have plans to raid0 two 18GB-disks and share them out to
windoze-machines via Samba. The windoze-machines will create
(swap)files up to 25-30GB. Does anyone know if that will be a problem
with either the raid0-software or Samba?
Martin
--
"The system required Windows 95 or better, so I installed Linux"
Mail: gunde@pvv.ntnu.no
Web: http://www.stud.ntnu.no/~gunde/
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~1999-03-02 14:04 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-27 12:51 Maximum file size Stefan Schroepfer
1999-02-27 14:22 ` Uncle George
1999-02-27 15:12 ` Sven Esbjerg
1999-02-27 16:36 ` Robert Bowles
1999-02-28 4:58 ` Wes Bauske
1999-02-28 5:48 ` Wes Bauske
1999-03-01 9:46 ` Stefan Schroepfer
1999-03-01 19:06 ` Wes Bauske
1999-03-02 12:29 ` Matti Aarnio
1999-03-02 14:00 ` Martin Høy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox