![]() |
|
|
#1 |
|
Oct 2018
1 Posts |
A few days ago I accidentally allocated seventy gigabytes from a process running on my 64GB 48-core Opteron machine. The process died and I felt nothing of it.
Except that I noticed that other processes which had been running at the time were now running bizarrely slowly - I was getting 300ms rather than 65ms iteration time from mprime, some gnfs-lasieve4I14e jobs were suggesting they would take a week to run whilst ones on adjacent ranges were expecting less than 24 hours. So far so odd; muttering something about NUMA I killed the mprime process and restarted. And it continued to have 300ms iteration times. Everything was fixed by a reboot, but I don't understand how forcing the machine into swap would have these persistent bad consequences. |
|
|
|
|
|
#2 | |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
11000010101002 Posts |
Quote:
|
|
|
|
|
|
|
#3 | |
|
Feb 2012
Prague, Czech Republ
2×89 Posts |
Quote:
to repeat soon and shrinks the swap-in-use size only after that does not happen for some time. Meanwhile several effects kick in making things slower. It's a tradeoff that works better in high overall resource demand scenarios compared to releasing things as soon as not needed. |
|
|
|
|
|
|
#4 |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
22×32×173 Posts |
|
|
|
|
|
|
#5 |
|
Feb 2012
Prague, Czech Republ
B216 Posts |
IDK, my machine seems to take few minutes to get back to nearly normal after a big spike in
memory usage (using almost all swap space). But the swap file does not go completely back to zero, only down to ~30%. Maybe some time later it shrinks even more. |
|
|
|
|
|
#6 |
|
"Alexander"
Nov 2008
The Alamo City
7·101 Posts |
Based on my experience with Linux, the kernel doesn't make much of an effort to move memory back to RAM until the program swapped out actually needs to be used. On my computer (8 GB RAM, 24 GB swap), I had a huge spike in memory usage yesterday which sent my swap usage to a little over 2 GB. My RAM usage has gone back down to 4.8 GB, but it's still using 1.8 GB of swap space.
|
|
|
|
|
|
#7 | |
|
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
2×5,393 Posts |
Quote:
Swapping in something which isn't going to be run just uses up memory which could be used by something which is running. Anyway, swapping behavior can be configured with sysctl(8). Details left as an exercise in reading TFM. If I had to find out for myself, I don't see why you shouldn't educate yourself
|
|
|
|
|
|
|
#8 |
|
"Mike"
Aug 2002
200658 Posts |
|
|
|
|
|
|
#9 | |
|
Sep 2009
83116 Posts |
Quote:
I don't know the details but that's probably why thing ran slower until you rebooted. Chris |
|
|
|
|
|
|
#10 | |
|
Feb 2012
Prague, Czech Republ
101100102 Posts |
Quote:
supercomputing, the above quoted is probably not true. |
|
|
|
|
|
|
#11 | |
|
"/X\(β-β)/X\"
Jan 2013
2·5·293 Posts |
Quote:
https://sitano.github.io/2014/08/20/numa-swap/ |
|
|
|
|