On Sat, Aug 27, 2022 at 7:50 PM Cy <p...@fedicy.us.to> wrote:

> On Sat, 27 Aug 2022 13:32:54 -0700
> American Citizen <website.read...@gmail.com> 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 a second
> time, it will
> come straight from RAM, without touching the disk. If any process actually
> allocates
> memory, that disk cache will be deleted transparently to free up memory
> for it.
>
> Your problem might not be that, but I have heard of people noticing that
> their memory was
> still being "used" even though the programs had exited, and it turned out
> that it was disk
> caching, and Linux is kind of poorly designed, so they made it appear to
> be used
> memory, not unused memory or a special "disk cache" memory.
>

Uh, I'd take issue with "poorly designed". Maybe misunderstood. To increase
understanding, look at something like this:

  https://www.golinuxcloud.com/tutorial-linux-memory-management-overview/

Free RAM is wasted RAM.

Reply via email to