On 8/27/22 13:32, American Citizen wrote: > Hello all, this is a question about freeing up system memory and swap > space as apparently this is not happening from some mathematical > programs I am using > > ... > > There appears to be a problem occurring here, as used memory never > recovered and swap space never emptied either, despite the 6 programs > being killed. > > Is kill -9 the right command? or kill -15 ?? Once I kill the algebraic > program, shouldn't we see system memory recovered? I am also surprised > that swap did not drop to 0 used, once all 6 programs were terminated. > > Randall >
You can clear swap just by turning off swap and then back on. See "man swapon" As root (os sudo), you can play around with |# sync; echo X > /proc/sys/vm/drop_caches where X = | 1. Clear Page Cache 2. Clear Dentries and Inodes 3. Clear all the above categories Typically, however, Linux is pretty good at eventually freeing up stale memory on its own -Ed ||
