| Summary: | Disable swap usage with cgroups | ||
|---|---|---|---|
| Product: | Slurm | Reporter: | Kilian Cavalotti <kilian> |
| Component: | Limits | Assignee: | David Bigagli <david> |
| Status: | RESOLVED INFOGIVEN | QA Contact: | |
| Severity: | 4 - Minor Issue | ||
| Priority: | --- | CC: | da |
| Version: | 14.03.7 | ||
| Hardware: | Linux | ||
| OS: | Linux | ||
| Site: | Stanford | Alineos Sites: | --- |
| Atos/Eviden Sites: | --- | Confidential Site: | --- |
| Coreweave sites: | --- | Cray Sites: | --- |
| DS9 clusters: | --- | HPCnow Sites: | --- |
| HPE Sites: | --- | IBM Sites: | --- |
| NOAA SIte: | --- | OCF Sites: | --- |
| Recursion Pharma Sites: | --- | SFW Sites: | --- |
| SNIC sites: | --- | Linux Distro: | --- |
| Machine Name: | CLE Version: | ||
| Version Fixed: | Target Release: | --- | |
| DevPrio: | --- | Emory-Cloud Sites: | --- |
|
Description
Kilian Cavalotti
2014-09-09 11:14:38 MDT
Hi Kilian,
I am working on this and will update you later on.
David
Hi Kilian,
Slurm sets the limits correctly. Since the memory.memsw.limit_in_bytes
indicates the combined memory and swap limit if you set AllowedSwapSpace=0
then the values should indeed be equal. From Slurm perspective the things
are all right.
It is more difficult for me tell you why your kernel allowed some swap space use regardless... I am running a heavy memory benchmark with settings like your but I don't see swap being in use. I see the memory limit being hit few times
>cat memory.failcnt
3191527
but not the swap.
I am running on:
>cat /etc/redhat-release
CentOS release 6.5 (Final)
>uname -a
Linux prometeo 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
David
Hi David, Thanks for looking in to it. (In reply to David Bigagli from comment #2) > Slurm sets the limits correctly. Since the > memory.memsw.limit_in_bytes > indicates the combined memory and swap limit if you set AllowedSwapSpace=0 > then the values should indeed be equal. From Slurm perspective the things > are all right. Yes, memory.limit_in_bytes and memory.memsw.limit_in_bytes are the same value, which is good. > It is more difficult for me tell you why your kernel allowed some swap space > use regardless... I am running a heavy memory benchmark with settings like > your but I don't see swap being in use. I see the memory limit being hit few > times > > >cat memory.failcnt > 3191527 > > but not the swap. I think what happens here is that some memory pages get swapped off to disk while the overall usage is still under the limit. Maybe from pressure from other jobs in different cgroups. So we have memsw.usage < limit and memory.usage < limit, but memsw.usage > memory.usage. I guess I'm looking for a way to ensure that memsw.usage stays equals to memory.usage all the time, but I'm not sure that's even possible. > > I am running on: > > >cat /etc/redhat-release > CentOS release 6.5 (Final) > >uname -a > Linux prometeo 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 > x86_64 x86_64 x86_64 GNU/Linux > > David What OS and kernel version do you have? David (In reply to David Bigagli from comment #4) > What OS and kernel version do you have? Oh sorry, forgot about that: Red Hat Enterprise Linux Server release 6.5 (Santiago) Linux 2.6.32-431.23.3.el6.x86_64 #1 SMP Wed Jul 16 06:12:23 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux Thanks for the info. I used CentOS 6.5 which is equivalent. I suggest we close this ticket as not a Slurm problem. David (In reply to David Bigagli from comment #6) > Thanks for the info. I used CentOS 6.5 which is equivalent. > I suggest we close this ticket as not a Slurm problem. That sounds ok, it indeed looks more like a kernel/OS issue. Thanks. |