<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
With cgroup v2 allowedswapspace is implemented using memory.swap.max.
<div><br>
</div>
<div>In v1, it is memsw.max. This applies to the total of memory and swap.</div>
<div>In v2, memory.swap.max is only swap.</div>
<div><br>
</div>
<div>Slurm adds the job memory size to allowedswapspace. This is appropriate for v1, since the limit is on the sum. It is not appropriate for v2.</div>
<div><br>
</div>
<div>This is a bug that can break hardware. Many systems these days are sold with SSD for root. Unless they are write-intensive SSDs, they are not appropriate for swapping. But normally boot disks are not written heavily, so I doubt many systems have SSDs that
can stand up to continuous swapping.</div>
<div><br>
</div>
<div>You can minimize swap be setting allowedswapspace to -100, but there's a minimum of 30 MB. I'm fixing the code on our systems.</div>
</body>
</html>