Specifically, I would like to edit the value of the system configuration variable ARG_MAX. (It is preset on kernels before 2.6.23 and I want to increase it.)
How do I do this? Does this require editing the kernel?
This is on RHEL/CentOS.
The values returned by getconf(1) aren't variables, they are mostly system values for limits some standard (mostly POSIX) defines.
Many of the minimal values defined by the relevant standard are just too small (the standards often define minimal usable values, to be able to cover even very limited environments; so as to not unduly constrain larger instalations it is allowed to have larger limits. And so you can find out what the limits are you get getconf(1)).
In Linux' case (Fedora 18 here), the value of ARG_MAX is a ridiculously large 2097152 (2MiB worth of arguments!). If you need more than that, serious rethinking is mandated. Use xargs(1) to process the argument list in batches, or process them as they are generated instead of batching them up.
ARG_MAXis defined by POSIX, so it should be present in much earlier versions that that.xargsis the solution ? What's your real problem ?