What's the value of ARG_MAX in AIX?


 
Thread Tools Search this Thread
Operating Systems AIX What's the value of ARG_MAX in AIX?
# 1  
Old 05-16-2008
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  
Old 10-15-2008
Quote:
Originally Posted by era
[...] 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
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

Samba 3.6 on AIX 7.1 - Windows 10 Access to AIX file shares using Active Directory authentication

I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users. The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)
Discussion started by: linuxsnake
14 Replies

2. Solaris

ARG_MAX Limit

Hi, I can able to view the limit of ARG_MAX ENV variable using the command: getconf ARG_MAX can we modify the value of ARG_MAX somewhere or is that common value depending upon the version of kernel ? (1 Reply)
Discussion started by: penqueen
1 Replies

3. AIX

Will it affect my AIX LPAR security, when i set up email alerts on AIX server.

Hello, I've set up email alerts on AIX Servers. so that i can get email notifications (via mail relay server) when ever there is abnormal behavior. for example 1) my script monitors CPU/disk/memory etc... when it reaches high water ark, it will send an email alert. 2) disk usage alerts 3)... (5 Replies)
Discussion started by: System Admin 77
5 Replies

4. AIX

Nim on AIX 7.1 used to migrate AIX 5.3 to AIX 6.1...is possible?

Using nimadm: nimadm -j nimadmvg -c sap024 -s spot_6100 -l lpp_6100 -d "hdisk1" -Y Initializing the NIM master. Initializing NIM client sap024. 0505-205 nimadm: The level of bos.alt_disk_install.rte installed in SPOT spot_6100 (6.1.3.4) does not match the NIM master's level (7.1.1.2).... (2 Replies)
Discussion started by: sciacca75
2 Replies

5. AIX

Get Next month in AIX from curent date in unix AIX

How could we derive teh Next month in MON-RR format from current date ie sysdate in UNI AIX sheel script.I coould get a command but i supports only inLinux susse andnotin AIX. I need for Unix AIX.Pls Help. Regards Shiv (2 Replies)
Discussion started by: SHIV75
2 Replies

6. AIX

How to upgrade AIX Firmware & TL Maintenance Level in AIX

Steps to upgrade AIX TL ( technology Level ) / Maintenance Level in AIX ( including Firmware HMC VIOS ) This article or post covers upgrades for - Hardware Management Console ( HMC ) - Firmware ( also known as microcode ) - VIO ( Virtual I/O Server = PowerVM ) - AIX Version, Technology... (2 Replies)
Discussion started by: filosophizer
2 Replies

7. AIX

IY17981 fix required for aix 4.3.3 to aix 5L migration but not found

Hi, redbook documentation is telling that IY17981 fix is required for aix 4.3.3 to aix 5L migration. But there is no mention about that fix in any ML installation packages. - My system is ML11 : oslevel –r 4330-11 - But xlC.rte is on wrong version : lslpp -L xlC.rte xlC.rte ... (3 Replies)
Discussion started by: astjen
3 Replies

8. AIX

How to apply aix 5.3 TL8 properly on ML5 aix system ?

Is it necessary to put system into single user mode for applying aix 5.3 TL8 on a aix 5.3.5.0 system ? Is the TL8 installation not totally safe ? thank you. (6 Replies)
Discussion started by: astjen
6 Replies
Login or Register to Ask a Question