Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp73889lqp; Wed, 20 Mar 2024 14:11:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVbG2Va+BtX0FrYHl7f17sH6gs3crYaBXoAqh152PSMG+ZeTk9O36b5KlH5kVuTmy3xhG8ulY2AIZP2/EUDmskVDQaHEfqBg7BNcQPPjg== X-Google-Smtp-Source: AGHT+IEfjL4rpkIWVgdsc5V1snSaQkxaoaEAsytkDqVc9WXe2gGH8NJqxnc9OdwNsqRW825w1txU X-Received: by 2002:a05:6a20:7d84:b0:1a3:4fcd:7a18 with SMTP id v4-20020a056a207d8400b001a34fcd7a18mr1160733pzj.10.1710969117699; Wed, 20 Mar 2024 14:11:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710969117; cv=pass; d=google.com; s=arc-20160816; b=DjoBSp4Fl2XDjhGi8EFHChLsdIV35kMOV7to1FwWozSkfYIsOWpMLO/mOcNZWmKFFd kIgl+orkaXeYOSnQKIqJJSRlTtRlpP/EW1k7MD8L1jRGwKsUEytqyylVsw/m4mIHC7Ou 2ASEeEeWyY4aHdcXqdfFkbyEKwkoWy/y1A/uBrP7XKhj2esGX5nYDoaflMaaiZqPc01g qmxacm/bnxp28esQ8l7f11SCOdHMukJEeJge2KQZsN9lvtQ19GU0wyVHWHk18L1GxMkr RlUysNa0m2mqCWs16BYjPsf5lCevbM70vU9w2ehv69/1wWnvACQTx881sZmVB0VflrcM ZyCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:in-reply-to:message-id:to :from:date:dkim-signature; bh=i+5N/ZS/XeI5GzfDGnArxcE+rOdWbgceO5yJiYCBRJM=; fh=V9AeBafJgTW96HdC48wsxGAfd7Fe9P2uAL8tLCjpUN4=; b=n/XilWjMSGZ3COEwBHs7vLoVVbDR/PkvIObklbxUusPnRTKqmtJ30nnKKOPtumvSOE mlfu3qx946QXOIfU+gIJ9P5VCAQ7/c2r02QkufMvRhx5G2Fq05w6HBuYL14JBUdIhZ5V HWgqLJUJsUpDRz8imcEUojnEV9ldA2dcOdN+vDtiKMyWPRKQqaIbUzkVTP9R70LsbwGw hbRC0ggrrurJC/3U6Mt9JBKw/IyweeMBgypodOSbGQszPL6IuyXnOefF8aaBwGgGhISz ICG7RIRqPEGjPrhgaXya+TFUvKdYge9pjKk+Xd5Xlu8gR13T/V+w+rewEk4rLAVz+zWX vmhA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@free.fr header.s=smtp-20201208 header.b=YYQQ23Hh; arc=pass (i=1 spf=pass spfdomain=free.fr dkim=pass dkdomain=free.fr dmarc=pass fromdomain=free.fr); spf=pass (google.com: domain of linux-kernel+bounces-109426-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109426-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=free.fr Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 9-20020a630109000000b005dc4eb5d421si12725000pgb.347.2024.03.20.14.11.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 14:11:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109426-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@free.fr header.s=smtp-20201208 header.b=YYQQ23Hh; arc=pass (i=1 spf=pass spfdomain=free.fr dkim=pass dkdomain=free.fr dmarc=pass fromdomain=free.fr); spf=pass (google.com: domain of linux-kernel+bounces-109426-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109426-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=free.fr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0D0F9B21FA4 for ; Wed, 20 Mar 2024 21:11:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5F9385951; Wed, 20 Mar 2024 21:11:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=free.fr header.i=@free.fr header.b="YYQQ23Hh" Received: from smtpfb2-g21.free.fr (smtpfb2-g21.free.fr [212.27.42.10]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD1524F8B2 for ; Wed, 20 Mar 2024 21:11:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.27.42.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710969106; cv=none; b=rscGwokSVQWnx9z4PtMJ4vQymO0lIR4pzzoqPQefCnpzwXKTG9H1tpweyh6Coj0AVUIyC6NkHZqiZll1LnUu+eK9UU+nvbJl/QGQOfl2rmXE543X86uTP+WVDB//nZr+YAsN+4BotajKVds6RT5AxapMC5MeYgz19eBOKAS8kiI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710969106; c=relaxed/simple; bh=i+5N/ZS/XeI5GzfDGnArxcE+rOdWbgceO5yJiYCBRJM=; h=Date:From:To:Message-ID:In-Reply-To:Subject:MIME-Version: Content-Type; b=jOXwu65bBu2K3vNuCG3WGgGPRERezaTxoetM9B/adARPpWL+WMZR8g4Z14WYl1C5yjEamaCVo9gxNhyIDKYdWrSnjzdYer+uiCC/1tsGirjzvrQ3NzoO/zBrv00Apvn5XfcqU7YJsigA1i3rujL9uq9KajlQA6jYZ/Bst0BhOVw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=free.fr; spf=pass smtp.mailfrom=free.fr; dkim=pass (2048-bit key) header.d=free.fr header.i=@free.fr header.b=YYQQ23Hh; arc=none smtp.client-ip=212.27.42.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=free.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=free.fr Received: from smtp4-g21.free.fr (smtp4-g21.free.fr [212.27.42.4]) by smtpfb2-g21.free.fr (Postfix) with ESMTP id 5E2A54CD00 for ; Wed, 20 Mar 2024 22:05:41 +0100 (CET) Received: from zimbra54-e10.priv.proxad.net (unknown [172.20.243.204]) by smtp4-g21.free.fr (Postfix) with ESMTP id 54D0C19F5A5 for ; Wed, 20 Mar 2024 22:05:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1710968734; bh=i+5N/ZS/XeI5GzfDGnArxcE+rOdWbgceO5yJiYCBRJM=; h=Date:From:To:In-Reply-To:Subject:From; b=YYQQ23HhSFF0XdkZoLjOLsE/p37shF0bCAqbBfs+ZcTSIIQGNH6AIWMDl9rPpzxmJ r/KyQheePWtQRE2AViSYf0+cwcr998VhyOSVwivAtP8CQnDSOcM6KXesS23+MYT4g/ POXgLlgOCjAfXx6TcUMy3ZYIZi2jabC4ApyR4O/+ay1mbaiMwLRGrqaCOMCsMVDS0G eW/O9DLC680P1rOlWdMQI/bV6VLDHfDhpuhS2lgB+iTnuCclzs14c9QruyNpUNExMx /a+JqI/Lz2IhfAULTgp/stZA80pNPLGlI4DriB4xiSlMkz75O2TGpv9PYY6vFcL5xg Qn5v7tffbs/lw== Date: Wed, 20 Mar 2024 22:05:34 +0100 (CET) From: vincentdelor@free.fr To: linux-kernel@vger.kernel.org Message-ID: <566168554.272637693.1710968734203.JavaMail.root@zimbra54-e10.priv.proxad.net> In-Reply-To: <978241829.272633099.1710968583886.JavaMail.root@zimbra54-e10.priv.proxad.net> Subject: Increase Default vm_max_map_count to Improve Compatibility with Modern Games Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - GC122 (Win)/7.2.0-GA2598) X-Authenticated-User: vincentdelor@free.fr Hello, I am writing to highlight an issue impacting many Linux users, especially t= hose who enjoy modern gaming. The current default setting of `vm_max_map_co= unt` at 65530 has been linked to crashes or launch failures in several cont= emporary games. To address this, I have opened a detailed bug report (218616 =E2=80=93 Incr= ease Default vm_max_map_count to Improve Gaming Experience on Linux) availa= ble at: 218616 =E2=80=93 Increase Default vm_max_map_count to Improve Gamin= g Experience on Linux (kernel.org) . We have identified that several modern games such as Hogwarts Legacy, Star = Citizen, and others experience crashes or fail to start on Linux due to the= default `vm_max_map_count` being set to 65530. These issues can be mitigat= ed by increasing the `vm_max_map_count` value to over 1048576, which has be= en confirmed to resolve the crashes without introducing additional bugs rel= ated to map handling. This issue affects a wide range of users and has been noted in distribution= s like Fedora and Pop!_OS, which have already adjusted this value to accomm= odate modern gaming requirements. For reference, here is the change for Fedora: https://fedoraproject.org/wiki/Changes/IncreaseVmMaxMapCount Here is a list of games affected by this low value in vm_max_map_count as r= eported to Valve: THE FINALS https://github.com/ValveSoftware/Proton/issues/7317#issuecomment-1974837850 Hogwarts Legacy https://github.com/ValveSoftware/Proton/issues/6510#issuecomment-1422781100 DayZ https://github.com/ValveSoftware/Proton/issues/3899#issuecomment-1304397069 Counter-Strike 2 https://github.com/ValveSoftware/Proton/issues/2704#issuecomment-1705199788 **Steps to Reproduce:** 1. Install Ubuntu or other distribution with `vm_max_map_count` being set t= o 65530 and attempt to run affected games such as Hogwarts Legacy or Star C= itizen. 2. Observe that the games crash or fail to start with the default `vm_max_m= ap_count` setting. 3. Modify `/etc/sysctl.conf` to include `vm.max_map_count=3D1048576` (or an= other sufficiently high value). 4. Reboot the system and observe that the games now run without issue. **Expected Result:** Games should run without crashing or failing to start due to `vm_max_map_co= unt` limitations. **Actual Result:** Games crash or fail to start unless `vm_max_map_count` is manually increase= d. **Suggested Fix:** Increase the default `vm_max_map_count` value in Linux to a value greater t= han 1048576 to accommodate modern gaming software requirements. **Affected Games:** - Hogwarts Legacy - Star Citizen - THE FINALS - DayZ - Counter-Strike 2 - Payday 2 - (and potentially others) **References:** - Fedora's change documentation: https://fedoraproject.org/wiki/Changes/Inc= reaseVmMaxMapCount - Various user reports and confirmations on gaming performance improvement = with increased `vm_max_map_count`. I appreciate your time and consideration and welcome any feedback or sugges= tions on this matter. Best regards, Vincent DELOR