The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-16-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
What's the value of ARG_MAX in AIX?

This came up in another thread: what's the value of the ARG_MAX constant in AIX? And how would you find out if you don't have a C compiler?

Update: shamrock already replied in the other thread:

Code:
getconf ARG_MAX
Still, I'd be interested in knowing what a typical value might be.
  #2 (permalink)  
Old 10-15-2008
s.mascheck s.mascheck is offline
Registered User
  
 

Join Date: Jul 2008
Location: Southern Germany
Posts: 4
Quote:
Originally Posted by era View Post
[...] I'd be interested in knowing what a typical value might be.
This thread has aged somewhat, but as i stumbled over it being interested in ARG_MAX, i feel free trying to plug it.

To my best knowledge it's 24576 on AIX 3, 4 and 5 (on 3.2 I could test this).

Since AIX 5, this limit can be changed at run time with "chdev -l sys0 -a ncargs=number-of-4K-units" [1]. The upper limit is 4MB. getconf is a command
which actually calls sysconf(2) and thus will reflect the run time limit correctly (in contrast to ARG_MAX from the header files).

And with AIX 6, even the default was increased, to 1MB.

This page http://www.in-ulm.de/~mascheck/various/argmax/ with results for various systems gives an idea about existing values among various flavours.

I add links to the AIX documentation, although such deep links are not very stable:
[1] modifying AIX 6 run time limit: IBM Systems Information Center
The page for chdev doesn't contain the very parameter. This page does. The bottom link to "lsdev" then shows the default values.
[2] modifying AIX 5 run time limit (again with links to the related commands) lsdev Command
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0