I'm using RedHat 7.2 with kernel 2.4.18-26.7.xsmp and root mount using ext3. And I have simple test.pl script: #!/usr/local/bin/perl open FILE, ">testfile"; while(1){ print FILE "Test.\n" or die $!; } It's died when the file size is 2147483647 and give error message: "File size limit exceeded" and I run "cat testfile testfile >> testfile2", died at the same filesize. After that I downgrade the filesystem to ext2. The test.pl script still error but the cat command works fine and testfile2 can exceed more than 2GB. Does ext3 have 2GB file size limitation? OOT: do you think I need to recompile my perl to enable large file access? Thanks in advance for your comment.
On Tue, Mar 11, 2003 at 10:06:31AM -0600, Junus Djunawidjaja wrote:> I'm using RedHat 7.2 with kernel 2.4.18-26.7.xsmp and root mount using > ext3. > And I have simple test.pl script: > #!/usr/local/bin/perl > open FILE, ">testfile"; > while(1){ > print FILE "Test.\n" or die $!; > } > It's died when the file size is 2147483647 > and give error message: "File size limit exceeded" > > and I run "cat testfile testfile >> testfile2", died at the same > filesize. > > After that I downgrade the filesystem to ext2. > The test.pl script still error but the cat command works fine and > testfile2 can exceed more than 2GB. > > Does ext3 have 2GB file size limitation?AFAIK, Ext3 can scale to several (4?) terabytes. Whether the utilities can address up to that amount is another question.> OOT: do you think I need to recompile my perl to enable large file > access?That's probably your best bet. You could try 5.8; more recent releases are more likely to support large files. -- -- Skylar Thompson (skylar@attglobal.net) -- http://www.earlham.edu/~thompsk/
Hi, On Tue, 2003-03-11 at 16:06, Junus Djunawidjaja wrote:> And I have simple test.pl script: > #!/usr/local/bin/perl > open FILE, ">testfile"; > while(1){ > print FILE "Test.\n" or die $!; > } > It's died when the file size is 2147483647 > and give error message: "File size limit exceeded"Looks like perl hasn't been built with large file support on 7.2. ext3 definitely has large file support.> and I run "cat testfile testfile >> testfile2", died at the same > filesize. > > After that I downgrade the filesystem to ext2. > The test.pl script still error but the cat command works fine and > testfile2 can exceed more than 2GB."cat" shouldn't be sensitive to the underlying filesystem --- can you reproduce this?> Does ext3 have 2GB file size limitation?No, I regularly use files larer than that under ext3.> OOT: do you think I need to recompile my perl to enable large file > access?Probably. Cheers, Stephen