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. [EMAIL PROTECTED] wrote: > Hi all. > > This is a bit off-topic, but I believe the expertise is here. . . > > I have routines that parse through Unix files in a directory and remove > them based on age. If the number of files exceeds some limit I've not been > able to narrow down, I get a response from the scripts that it can't do > the job because there's too many files in the directory. > > Does anyone know: > > 1. what I'm talking about and what causes it? > > 2. how to solve this through some tunable parameter, preferrably not > requiring a kernel rebuild? > > TIA, > > -- ------------------------------------------------------------------------ Jeff Schasny - Denver, Co, USA jeff at schasny dot com ------------------------------------------------------------------------ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
