Page 1 of 1

64 bit File Size Limit

Posted: Fri Jun 18, 2010 5:19 am
by Magesh_bala
Hi,

I know that in a 32 bit we cant write more than 2GB to a file, I want to know what is the 64 bit file size limit?

In my current project I am able to write more than 34 GB to a sequential file and a dataset. I am wondering what is the 64 Bit file size limit?

Regards
N.Magesh

Re: 64 bit File Size Limit

Posted: Fri Jun 18, 2010 5:24 am
by antonyraj.deva
Magesh,
Magesh_bala wrote: I know that in a 32 bit we cant write more than 2GB to a file, I want to know what is the 64 bit file size limit?
We can write more than 2 GB in 32 bit also. Infact 32 or 64 bit doesn't decide the maximum file size, but an Environment variable does.

--Tony

Posted: Fri Jun 18, 2010 5:29 am
by ArndW
the number of bits (32 or 64) defines the largest addressable size, so the answer would be 2^^31 for 32 bit systems and 2^^63 for 64 bits systems; thus the answer is 9223372036854775808

Posted: Fri Jun 18, 2010 5:46 am
by chulett
In other words, way bigger than you need to worry about, I'd wager. :wink:

Posted: Fri Jun 18, 2010 6:31 am
by ray.wurlod
Most operating systems impose a smaller limit than the theoretical limit, typically 1TB or 9TB.

Posted: Fri Jun 18, 2010 2:48 pm
by nagarjuna
Also Check ulimit command to see the limit on the file size .