From 7aa570c0ee4fbd751aede6a8bc83b4db61e7ff53 Mon Sep 17 00:00:00 2001 From: obrien Date: Fri, 18 Feb 2005 08:01:59 +0000 Subject: [PATCH] For non-embedded platforms, increase the size of the argument list. Note that this results in more kernel virtual memory being reserved for temporary storage of the args. The args temporary space is allocated out of exec_map (a submap of kernel_map). This will use roughly 4MB of KVM. OK'ed by: dg --- sys/sys/syslimits.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/sys/syslimits.h b/sys/sys/syslimits.h index dfe8897c2613..974e17393a74 100644 --- a/sys/sys/syslimits.h +++ b/sys/sys/syslimits.h @@ -43,7 +43,11 @@ * Do not add any new variables here. (See the comment at the end of * the file for why.) */ +#if defined(__arm__) || defined(__powerpc__) #define ARG_MAX 65536 /* max bytes for an exec function */ +#else +#define ARG_MAX 262144 /* max bytes for an exec function */ +#endif #ifndef CHILD_MAX #define CHILD_MAX 40 /* max simultaneous processes */ #endif