Skip to content

About

Linux process manager with CPU affinity rules, ProBalance, and Gaming Mode CPU parking (mirrors gamemoderun)

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

60 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Process Lasso for Linux — CPU affinity and priority manager

A KDE/Linux process manager inspired by Windows Process Lasso. Built with Python + PyQt6.

Screenshots

ProBalance Settings Log
ProBalance tab Settings tab Log tab

Asymmetric CPU controls

CPU topology and feature support are detected once when the app starts. Dynamic state—processes, threads, saved process policies, ProBalance, GPU/CPU utilization, online CPUs, and the current X3D scheduler mode—is updated at one global monitor interval.

On supported asymmetric dual-CCD AMD X3D processors, Settings exposes the kernel scheduler's raw preferred-CCD modes. The selector is gated behind dual X3D CCD detection and is disabled on unsupported systems. Changing the mode adjusts scheduler rankings while leaving every CPU online and available.


Features

Game Mode

Add this to a Steam game's launch options:

processlasso-game %command%

The wrapper asks the user service to resolve the Steam/native game identity, applies the Game Mode affinity and nice policy once to the launch process, applies the configured launch wrappers and environment, and temporarily selects the configured AMD X3D CCD preference. The game and its initial threads inherit that exact launch affinity and nice value, but Game Mode does not continuously force either setting. An offset nice policy is calculated from the wrapper's inherited nice value and clamped to its configured floor and ceiling. The game may later change its own thread masks or priorities; use a process-level Always policy when an ongoing affinity boundary or nice policy is required.

Launch wrappers are blank by default; adding gamemoderun then mangohud in the Game Mode tab runs games as gamemoderun mangohud %command% while Steam's launch option remains processlasso-game %command%. Remove matching wrappers from existing Steam launch options to avoid applying them twice. The default environment enables NVIDIA PRIME render offload for OpenGL and Vulkan games; edit or clear the assignments in the Game Mode tab when another GPU policy is desired. The Game Mode tab edits defaults, per-game overrides, aliases, and identity merges and shows live sessions. Process-level Always settings remain authoritative after launch; ProBalance and the global default affinity do not alter active game sessions.

Game Mode defaults to cache (recommended). Select Disabled if Game Mode should leave the global X3D scheduler mode unchanged. Settings defaults to frequency (recommended); for games, use processlasso-game and Game Mode so the game session can temporarily select the cache CCD. These controls are only available when dual-CCD X3D mode control is detected.

The Game Mode screen shows a green enabled indicator while sessions are active. A newly detected session flashes the running-session area once. If the window or tab is hidden, one notification is queued and displayed the next time the Game Mode screen is shown.

Processes tab

  • Live process table — sortable by CPU%, RAM, NVIDIA GPU%, GPU memory, PID, nice, affinity, and I/O

  • Per-CPU utilization bars — htop-style with colour ramp (green → yellow → orange → red by load)

  • CPU frequency display — each bar shows current GHz (e.g. 4.43G) alongside utilization %

  • Temperature tint — bars shift orange as core temps rise (reads from hwmon/k10temp/zenpower)

  • Rolling CPU history chart — 4-minute area graph above the bars, colour-coded by load

  • Filter bar (Ctrl+F) — live search by process name or PID

  • Right-click context menu: current/Always affinity and priority, clear Always settings, Kill / Force Kill

  • Multi-select with Shift/Ctrl+click; Delete key to kill selected processes

  • Column visibility toggle; cmdline tooltip on process name

  • Current affinity is an exact, verified write across the process's live threads; Current priority actions likewise update the visible threads once

  • Always affinity is an allowed CPU boundary: narrower application-selected thread masks are preserved, while masks extending outside the boundary are constrained back inside it

  • A successful Current action suppresses only the corresponding Always field for that process lifetime, so changing priority does not disable affinity enforcement

  • Per-process Always affinity, CPU priority, and I/O priority persist across restarts

  • Visual CPU affinity picker — topology-aware checkbox grid, no manual range typing required

ProBalance tab

  • Automatically throttles CPU-hogging background processes when system load spikes
  • Configurable CPU threshold, throttle nice value, and cooldown period
  • Live count of currently throttled processes shown as a badge on the tab label
  • Restore the original priority after load remains below the restore threshold; failed restoration writes remain tracked and are retried

Settings tab

  • Detected CPU topology
  • Current and configured AMD X3D scheduler preferred-CCD modes when supported
  • Default CPU affinity applied to current and newly discovered threads of non-game processes without an Always affinity policy; Always priority and I/O policies do not disable the default
  • Global monitor interval (0.5 s – 10 s)
  • Start minimized to tray on launch
  • processlasso.service systemd user-service autostart toggle (no root required)
  • Privileged helper status and install/update action

System tray

  • Minimize to tray on window close
  • Tray tooltip shows live average CPU %

Requirements

  • Python 3.8+
  • psutil >= 5.9
  • PyQt6 >= 6.4
  • Linux kernel with the relevant scheduler/sysfs interfaces for optional CPU controls
  • sudo with a NOPASSWD rule for the optional sysfs helper (set up via Settings)

Install

git clone https://github.com/FranzJeger/process-lasso-linux.git
cd process-lasso-linux
bash install.sh

The installer detects your package manager and prints the correct install command for any missing dependency.

After installation, launch the UI with processlasso. The background user service is named processlasso.service; inspect it with:

systemctl --user status processlasso.service

The process is named processlasso by default. To customize it, change PROCESS_NAME in app_identity.py and run the installer again.

For exact Current, Always, default, Game Mode, nice-offset, and ProBalance behavior, see Policy semantics. Runtime state owners and cleanup triggers are documented in Runtime process-state ownership.

Distro compatibility

Distro Package manager psutil PyQt6
Arch / Manjaro pacman python-psutil python-pyqt6
Ubuntu / Debian apt python3-psutil python3-pyqt6
Fedora / RHEL dnf python3-psutil python3-PyQt6
openSUSE zypper python3-psutil python3-pyqt6
Any pip psutil PyQt6

Asymmetric CPU settings

AMD X3D — multi-CCD only

Only applies to CPUs with two CCDs where one has 3D V-Cache and the other does not:

CPU Cores 3D V-Cache CCD
Ryzen 9 7900X3D 12 CCD0 (6 cores, large L3)
Ryzen 9 7950X3D 16 CCD0 (8 cores, large L3)
Ryzen 9 9900X3D 12 CCD0 (6 cores, large L3)
Ryzen 9 9950X3D 16 CCD0 (8 cores, large L3)

Single-CCD X3D chips (5800X3D, 7800X3D, 9800X3D) have all cores on the same die, so there is no CCD preference to select.

The detector finds the CCD with the larger L3 cache and identifies those cores as V-Cache cores. Use Settings → AMD X3D — Scheduler Preferred CCD to change the scheduler ranking without taking either CCD offline. Mode values come from the CPU/kernel interface and are presented raw, so modes beyond cache and frequency remain usable when exposed by the system.

Intel Hybrid (12th gen+, Core Ultra)

The detector identifies P-cores by their higher maximum frequency for topology-aware affinity selection.


Built with AI

This project was built entirely with Claude (Anthropic). Every line of Python, the GUI, the sysfs integration, the helper binary — all of it was written through a conversation with an AI assistant. No apologies. It works, it's fast, and the dark theme slaps.


License

MIT — see LICENSE.

About

Linux process manager with CPU affinity rules, ProBalance, and Gaming Mode CPU parking (mirrors gamemoderun)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages