The Linux Mint team has introduced a fix for a memory leak it does not fully understand: restarting the Cinnamon desktop.
Cinnamon is a desktop environment which began as a fork of GNOME 3 and is developed primarily for Linux Mint, though there are also non-Cinnamon flavours of Mint, using MATE (based on GNOME 2) or the lightweight XFCE.
The memory usage for Linux Mint is meant to be “between 80MB to 1GB” according to founder Clem Lefebvre’s latest post; but there are cases where memory consumption continues to grow, even when the operating system is sitting idle, consuming “2GB, 4GB, 6GB of RAM. We don’t know what causes these leaks yet but we’ll have a workaround in Cinnamon 5.0,” he said.
It would be better to fix the leak, he acknowledged, but “we’re unable to reproduce the issue.”
The workaround is rather simple. In settings, users can set a maximum amount of RAM, and if exceeded, the Cinnamon process will restart itself. “You won’t lose your session or your windows, it will just be unresponsive for about a second,” Lefebvre promised.
Windows users who have resorted to restarting the Explorer process using Task Manager will have seen a similar result.
The similarities with Windows continue in an update to a recent post complaining about users being slow to patch security issues. “In the next release, the [Update] Manager won’t just look for available updates, it will also keep track of particular metrics and be able to detect cases where updates are overlooked,” said Lefebvre. “In some cases the Update Manager will be able to remind you to apply updates. In a few of them it might even insist.”
The workaround for insoluble memory leaks in Cinnamon: an option to restart the process when a limit is reached
A step too far?
A “key principle” is that “this is your computer, not ours,” we are told, so this sounds like a case of the requirements of security pulling one way, while the requirements of freedom pull another way.
“We’re still forming strategies,” Lebrevre said.
The one thing that is certain is that the update manager will make use of more metrics, such as for how many days a particular update has been shown, and the last time updates were applied.
Lebrevre also described a tricky issue caused by optional system merging in Linux Mint 20.1, the current version, which is based on Ubuntu 20.4. Merging means that file locations are simplified, so that some locations such as /bin and /usr/bin are merged, with symbolic links so that applications that look for files in the old location still work.
Since merging is optional, though, there is a potential issue with new packages that assume the location of a file in one location when on a non-merged system it is in another. The danger comes when a package is built on a merged system, but run on a non-merged system, and Mint is vulnerable because the build environment primarily uses merged images.
The team is “developing internal tools ASAP to tackle this,” said Lebrevre.
Users of the current 20.1 release need not wait for some fixes. Packages released last week for a number of projects will fix various issues, including delayed login, “many usability and niche issues related to favorites,” and memory leaks in the Nemo file manager. ®