Monday, April 16, 2012

NCARGS value configuration for AIX 5.1


NCARGS value configuration (5.1.0)
In AIX 5L Version 5.1, the option has been added to allow the super user or
any user belonging to the system group to dynamically change the value of
the NCARGS parameters. In previous releases of AIX, these values were
permanently defined as 24576, which resulted in a problem similar to that
shown below when a large number of arguments are parsed to a command:
# rm FILE*
ksh: /usr/bin/rm: 0403-027 The parameter list is too long.

The value of NCARGS can be increased to overcome this problem. The value
can be tuned anywhere within the range of 24576 to 524288 in 4 KB page
size increments. To display the value, use the following command.




ncargs
Purpose: Specifies the maximum allowable size of the ARG/ENV list (in
4KB blocks) when running exec() subroutines.

Values: Default: 6; Range: 6 to 128

Display: lsattr -E -l sys0 -a ncargs

Change: chdev -l sys0 -a ncargs=NewValue

Change takes effect immediately and is preserved over boot.

Diagnosis: Users cannot execute any additional processes because the
argument list passed to the exec() system call is too long.

Tuning: This is a mechanism to prevent the exec() subroutines from
failing if the argument list is too long. Please note that tuning to a
higher ncargs value puts additional constraints on system memory
resources.

No comments:

Post a Comment