en-US

Desktop Resource Protection

Desktop resource protection is enabled by default. Keep using your applications and terminal commands as usual; the system automatically gives the desktop priority when resources are busy.

When the computer has spare resources, other work can use them normally. When you interact with a busy desktop, a heavy job may take longer so the desktop can respond promptly.

Change the setting

Open Virtual Memory Control → Memory Protection from the application menu, or open Control Panel → System → Virtual Memory Settings (searching Control Panel for Memory Protection or Resource Allocation opens the same app).

Leave Prioritize resources needed by the desktop (recommended) enabled for normal use. Select Apply Settings and authorize any change. Settings also apply after signing in again, restarting and upgrading.

Advanced settings is collapsed when the page opens. Most users can leave its two settings at their recommended values:

Setting Recommended value Purpose
Desktop memory protection 250 MiB Helps keep the desktop's working memory available. This does not statically lock RAM or limit application memory.
Foreground application priority Recommended Gives the application you are using more opportunity to run when applications compete for resources.

Applying a change displays progress. If it fails, the page shows the error; correct the problem and try Apply Settings again. Restore Recommended Settings, followed by Apply Settings, restores the switch and these two controls.

Turning protection off retains your tuning choices. Memory-pressure handling and notifications remain enabled. Swap, Zram, and Zswap settings are managed on the other tabs of Virtual Memory Control.

When memory runs out

If memory pressure becomes severe, the system may stop an application. GNOME shows a notification explaining what happened. An entire application or terminal job can be affected.

Configuration and removal

Machine settings are stored in /etc/uresourced.conf. The Memory Protection tab and manual edits use this same file. After a manual edit, select Apply Settings on the tab or restart the computer.

Removing Virtual Memory Control leaves the protection service and its settings in place. Removing anduinos-uresourced stops the service, hides the Memory Protection tab automatically, and retains the configuration for reinstalling. Purging the package also removes its configuration. Package upgrades follow the usual dpkg rules for locally edited configuration files.

<details markdown="1"> <summary>Advanced: configuration and troubleshooting</summary>

These settings require anduinos-uresourced 0.5.5-2 or later and anduinos-swapcontrol-gtk 2.0.5-7 or later. The desktop installation recommends anduinos-uresourced; when it is not installed, the Memory Protection tab is hidden automatically.

Advanced Output shows saved values, configuration paths and service errors. Saving formats the INI file and can change comments. A successful save remains in place if applying it to a service fails.

The recommended memory protection is subject to a shared budget of 10% of physical RAM across active users. I/O priority effects depend on storage support.

Upstream also recognizes a personal ~/.config/uresourced.conf (or its XDG equivalent) for application policy. It replaces the system application configuration. The page reports such overrides and leaves the personal file untouched. Restore Recommended Settings changes only the controls in the machine configuration.

The fixed memory-pressure policy monitors application and background groups at 80% memory PSI for 20 seconds. PSI measures stalled time, not RAM utilization. The desktop-session group is outside those two monitored groups; administrator changes can alter the scope. The kernel OOM handler remains the final fallback. Use oomctl and the system journal when investigating memory-pressure termination.

For swap diagnostics, see Swap Control Strategy.

</details>

Contributors
Change History
Comments (0)

No comments yet. Be the first to leave one!