From owner-svn-src-stable@freebsd.org Sat Dec 21 02:40:41 2019 Return-Path: Delivered-To: svn-src-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C1FEA1EC206; Sat, 21 Dec 2019 02:40:41 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47fqbs4cpsz3FTZ; Sat, 21 Dec 2019 02:40:41 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 99DAB8879; Sat, 21 Dec 2019 02:40:41 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xBL2efc7082814; Sat, 21 Dec 2019 02:40:41 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xBL2efl0082812; Sat, 21 Dec 2019 02:40:41 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201912210240.xBL2efl0082812@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Sat, 21 Dec 2019 02:40:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r355968 - stable/12/sys/sys X-SVN-Group: stable-12 X-SVN-Commit-Author: pfg X-SVN-Commit-Paths: stable/12/sys/sys X-SVN-Commit-Revision: 355968 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Dec 2019 02:40:41 -0000 Author: pfg Date: Sat Dec 21 02:40:40 2019 New Revision: 355968 URL: https://svnweb.freebsd.org/changeset/base/355968 Log: MFC r355828: Double the size of ARG_MAX on LP64 platforms. As modern software keeps growing in size, we get requests to update the value of ARG_MAX in order to link the resulting object files. Other OSs have much higher values but increasiong ARG_MAX has a multiplied effect on KVA, so just bumping this value is dangerous in some archs like ARM32 that can exhaust KVA rather easily. While it would be better to have a unique value for all archs, other OSs (Illumos in particular) can have different ARG_MAX limits depending on the platform, For now we want to be really conservative so we are avoidng the change on ILP32 and in the alternative case we only double it since that seems to work well enough for recent Code Aster. Bump the _FreeBSD_version for this change. PR: 241710 Modified: stable/12/sys/sys/param.h stable/12/sys/sys/syslimits.h Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/sys/param.h ============================================================================== --- stable/12/sys/sys/param.h Fri Dec 20 23:08:10 2019 (r355967) +++ stable/12/sys/sys/param.h Sat Dec 21 02:40:40 2019 (r355968) @@ -60,7 +60,7 @@ * in the range 5 to 9. */ #undef __FreeBSD_version -#define __FreeBSD_version 1201505 /* Master, propagated to newvers */ +#define __FreeBSD_version 1201506 /* Master, propagated to newvers */ /* * __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD, Modified: stable/12/sys/sys/syslimits.h ============================================================================== --- stable/12/sys/sys/syslimits.h Fri Dec 20 23:08:10 2019 (r355967) +++ stable/12/sys/sys/syslimits.h Sat Dec 21 02:40:40 2019 (r355968) @@ -48,7 +48,11 @@ * Do not add any new variables here. (See the comment at the end of * the file for why.) */ -#define ARG_MAX 262144 /* max bytes for an exec function */ +#ifndef __ILP32__ +#define ARG_MAX (2 * 256 * 1024) /* max bytes for an exec function */ +#else +#define ARG_MAX (256 * 1024) /* max bytes for KVA-starved archs */ +#endif #ifndef CHILD_MAX #define CHILD_MAX 40 /* max simultaneous processes */ #endif