X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/4d15aeb193b2c68f1d38666c317f8d3734f5f083..5ba3f43ea354af8ad55bea84372a2bc834d8757c:/bsd/conf/param.c?ds=inline diff --git a/bsd/conf/param.c b/bsd/conf/param.c index 00da0c590..d78d06c4a 100644 --- a/bsd/conf/param.c +++ b/bsd/conf/param.c @@ -82,15 +82,24 @@ struct timezone tz = { 0, 0 }; +#if CONFIG_EMBEDDED +#define NPROC 1000 /* Account for TOTAL_CORPSES_ALLOWED by making this slightly lower than we can. */ +#define NPROC_PER_UID 950 +#else #define NPROC (20 + 16 * 32) #define NPROC_PER_UID (NPROC/2) +#endif /* NOTE: maxproc and hard_maxproc values are subject to device specific scaling in bsd_scale_setup */ #define HNPROC 2500 /* based on thread_max */ int maxproc = NPROC; int maxprocperuid = NPROC_PER_UID; +#if CONFIG_EMBEDDED +int hard_maxproc = NPROC; /* hardcoded limit -- for embedded the number of processes is limited by the ASID space */ +#else int hard_maxproc = HNPROC; /* hardcoded limit */ +#endif int nprocs = 0; /* XXX */