[geeks] MAX_ARG issue

Kevin kevin at mpcf.com
Fri Oct 24 10:34:22 CDT 2003


I bumped the binfmts.h file up to 256 from 32.

#define MAX_ARG_PAGES 256

Looking for a meg or so instead of 128k (some misc post on the net
mentioned that HP/UX had 2 megs by default so i figured half of that
would be fine for me.)  The kernel compiled and booted fine but a
getconf ARG_MAX still spits 131072 back at me.  Would i need to increase
the BINPRM_BUF_SIZE as well?

Oh well, as you mentioned, it won't kill me to submit the -exec stuff to
permanent memory.  As it stands, i do always have to look it up in my
notebook whenever i need it.

Thanks,
/KRM

On Fri, 24 Oct 2003 17:53:57 +0100
Mike Meredith <mike at blackhairy.demon.co.uk> wrote:

> On Fri, 24 Oct 2003 06:34:30 -0400 (EDT), Kevin wrote:
> > I'm getting the "bash: /bin/rm: Argument list too long" errors on
> > one of my linux servers so i did a getconf ARG_MAX and i get back
> > "131072".  Is there a way of increasing the MAX_ARG variable?  Are
> > there any concerns with increasing this limit?
> 
> I rarely bother, but it's fairly easy to do ... just find ARG_MAX in
> /usr/src/linux/include/linux/*, increase it, and recompile the kernel.
> I'd only anticipate problems in a very small memory machine.
> 
> > I've gotten around the issue today using "find ./ -iname "spam*"
> > -exec rm {} \;" 
> 
> I usually stick to that ... it keeps the -exec memory neurons well
> lubricated.
> _______________________________________________
> GEEKS:  http://www.sunhelp.org/mailman/listinfo/geeks


-- 
"UNIX was not designed to coddle the weak."
				--Fyodor
keyserver: http://pgp.mit.edu/



More information about the geeks mailing list