Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maximum size of a file with JFS & AIX?

Status
Not open for further replies.

stephnane

Technical User
Jun 25, 2004
34
FR
Hi.

What's the maximum file size with AIX (and JFS)?
How can we change this value ?


tks.

Steph
 
Which version of AIX?

-
| Mike Nixon
| Unix Admin
-------------
 
Sorry missed 2nd bit

see /etc/security/limits to set file/mem limits

see man limits



-
| Mike Nixon
| Unix Admin
-------------
 
It depends on which kind of JFS you are using.
With JFS2 you can theoretically allocate a file of 4 PetaByte
 
I'd like to see what was in a file 4Pb big, could you vi it I wonder?

-
| Mike Nixon
| Unix Admin
-------------
 
Well ... if you have more than 4 PB in /var ... and a lot of patience
 
mrn,

In AIX 4.3.3, vi is limited to 1,048,560 lines of {LINE_MAX} characters, or just shy of 2GB.

No, I haven't tried.

Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L

 
I know, I was joking.......

Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."
 
I knew you were joking, Mike, but it still planted the seed.

Sometimes I've just gotta know.

Then I've gotta share.

Rod (I'm not compulsive at all) Knowlton
 
In that case whats the limit in 5.2?

Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."
 
Not having access to a 5L system right now, I don't need to know. :)

If you've got a 5.2 box and want to know, look in /usr/include/sys/limits.h to see what LINE_MAX is.

Since LINE_MAX is set to _POSIX2_LINE_MAX, which is 2048, in 4.3.3, I wouldn't be suprised if the limit remains the same in 5.2.


Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L

 
#define _POSIX2_LINE_MAX 2048 /* max len of utility input line */
#define LINE_MAX _POSIX2_LINE_MAX

Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top