Re: [PLUG] memory and swap not recovered after program kill - some questions

2022-08-30 Thread Tomas Kuchta
On Tue, Aug 30, 2022, 01:31 Cy wrote: > On Sun, 28 Aug 2022 01:23:08 -0700 > Russell Senior wrote: > > > Uh, I'd take issue with "poorly designed". Maybe misunderstood. > > I don't mean the page cache is a bad idea. I mean that "MemFree" should be > called > something like "MemInactive" and

Re: [PLUG] memory and swap not recovered after program kill - some questions

2022-08-29 Thread Cy
On Sun, 28 Aug 2022 13:25:45 -0700 Michael Ewan wrote: > Kill -9 cannot be handled in the program, it kills > the program immediately leaving open files, memory allocations, swap space, > and all kinds of other stuff like child processes laying around. kill -9 aka SIGKILL is almost always a

Re: [PLUG] memory and swap not recovered after program kill - some questions

2022-08-29 Thread Cy
On Sun, 28 Aug 2022 01:23:08 -0700 Russell Senior wrote: > Uh, I'd take issue with "poorly designed". Maybe misunderstood. I don't mean the page cache is a bad idea. I mean that "MemFree" should be called something like "MemInactive" and "MemAvailable" should be called "MemFree" in

Re: [PLUG] memory and swap not recovered after program kill - some questions

2022-08-28 Thread Michael Ewan
I tell my students that kill -9 is evil and to not use it (except when everything else fails). Kill -9 cannot be handled in the program, it kills the program immediately leaving open files, memory allocations, swap space, and all kinds of other stuff like child processes laying around. You are

Re: [PLUG] memory and swap not recovered after program kill - some questions

2022-08-28 Thread American Citizen
To all: Regarding recovering both memory and swap space, after killing an algebraic program, I restarted the system, rand some of these types of programs, then reached a point where I had to shut the system down, so I tried using the kill -15 command to kill the running algebraic programs,

Re: [PLUG] memory and swap not recovered after program kill - some questions

2022-08-28 Thread Russell Senior
On Sat, Aug 27, 2022 at 7:50 PM Cy wrote: > On Sat, 27 Aug 2022 13:32:54 -0700 > American Citizen wrote: > > > Once I kill the algebraic > > program, shouldn't we see system memory recovered? > > That sounds a lot like the hard disk caching thing that Linux does. It > will save stuff > read

Re: [PLUG] memory and swap not recovered after program kill - some questions

2022-08-27 Thread Cy
On Sat, 27 Aug 2022 13:32:54 -0700 American Citizen wrote: > Once I kill the algebraic > program, shouldn't we see system memory recovered? That sounds a lot like the hard disk caching thing that Linux does. It will save stuff read from the hard disk into unused memory, so that if it's read

Re: [PLUG] memory and swap not recovered after program kill - some questions

2022-08-27 Thread King Beowulf
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

[PLUG] memory and swap not recovered after program kill - some questions

2022-08-27 Thread American Citizen
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 Running 6 algebraic programs for several days, the %free -m command shows:   total    used    free  shared