We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 569828d commit 95282c8Copy full SHA for 95282c8
proton
@@ -1490,6 +1490,12 @@ class Session:
1490
if hard_limit < 524288:
1491
self.log_file.write(f"WARNING: Low file descriptor limit: {hard_limit} (see https://github.com/ValveSoftware/Proton/wiki/File-Descriptors)\n")
1492
1493
+ if os.path.exists("/proc/sys/vm/max_map_count"):
1494
+ with open("/proc/sys/vm/max_map_count", "r") as f:
1495
+ max_map_count = int(f.read())
1496
+ if max_map_count < 1048576:
1497
+ self.log_file.write(f"WARNING: Low /proc/sys/vm/max_map_count: {max_map_count} will prevent some games from working\n")
1498
+
1499
self.log_file.write("======================\n")
1500
self.log_file.flush()
1501
else:
0 commit comments