GoPiGo O/S Memory management may stink?

I tried uploading a copy of the latest Bookworm image to my robot’s desktop and it failed with an “out of storage” error.

I deleted a bunch of stuff and then noticed that the file-manager window was slow/stalling so I ran htop to see what was happening.

I saw this:

Note that memory and swap are virtually maxed, yet the process with the maximum memory is using very little.

After a reboot:

Note that the same process is using the same amount of memory, but the memory usage and swap are now where they should be.

Question:
Once the need for extreme amounts of memory and/or swap has been removed, why doesn’t the system return these resources to the system?

1 Like