Compare commits

...

1 Commits

Author SHA1 Message Date
Xingyao Wang 643b7f692f switch to use --rss to restrict memory use in bash session 2025-02-14 10:55:54 -05:00
+1 -1
View File
@@ -192,7 +192,7 @@ class BashSession:
# otherwise, we are running as the CURRENT USER (e.g., when running LocalRuntime)
if self.max_memory_mb is not None:
window_command = (
f'prlimit --as={self.max_memory_mb * 1024 * 1024} {_shell_command}'
f'prlimit --rss={self.max_memory_mb * 1024 * 1024} {_shell_command}'
)
else:
window_command = _shell_command