Skip to content

Latest commit

 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart System Manager (ssm)

High-performance, AI-driven Windows system optimizer written in 100% Native Rust.
Runs silently as a background service — zero UI, zero bloat, maximum impact.

Build Tests License: MIT Platform Release


What is ssm?

ssm is a background Windows optimization daemon that applies deep kernel-level tuning that Windows never does out of the box. A Pure-Rust AI engine classifies what you are doing in real time — Gaming, Coding, Video Editing, or Idle — then dynamically adjusts CPU priority, GPU scheduling, RAM pressure, and network quality. Automatically. No configuration needed.

Unlike bloatware "optimizer" apps, ssm has no GUI, no ads, no telemetry, and no dependencies. Open-source, written entirely in Rust, consuming less than 0.01% CPU and ~6 MB RAM.


Quick Install

Open PowerShell as Administrator and run:

irm https://raw.githubusercontent.com/thisath111/ssm/main/install.ps1 | iex

This will:

  1. Download the latest optimized binary to C:\ssm\ssm.exe
  2. Add C:\ssm to your system PATH
  3. Register ssm as a Windows Native Service (auto-starts on every boot)
  4. Start the background optimization daemon immediately

To uninstall completely:

ssm uninstall

Manual Installation

  1. Download ssm.exe from Releases
  2. Place it in C:\ssm\ and add that folder to your PATH
  3. Register as a Windows Service:
    ssm service install

Features

⚡ Hardware-Adaptive Kernel Tuning

  • Adaptive Timer Resolution — Locks system timer via NtSetTimerResolution at 1.0ms / 0.75ms / 0.5ms based on detected hardware tier (Low / Mid / High-end)
  • Hardware Tier Detection — Auto-detects CPU cores and total RAM at startup and tunes every threshold, trim level, and I/O policy to match your specific PC
  • P-Core / E-Core Affinity — Detects CPU topology and pins background processes to Efficiency Cores, reserving Performance Cores for the foreground
  • App Launch Accelerator — Boosts newly spawned processes to HIGH_PRIORITY_CLASS for 3 seconds for instant responsiveness

🧠 Zero-Hardcode AI Engine

  • Behavioral Process Intent Classifier — Identifies Gaming, Creative Workstation, Developer, or Typing Tool workloads purely from behavioral signals (RAM usage, CPU %, thread count, window ownership) — no process name lists
  • Dynamic Window Ownership Detection — Uses Win32 EnumWindows to discover every interactive process, tray app, input hook, and IME (e.g. Helakuru, Keyman, Wijesekara) at runtime — nothing hardcoded
  • Predictive Memory Forecaster — Tracks RAM velocity to forecast pressure spikes 5 seconds ahead and flushes standby cache before stuttering occurs
  • Workload State Machine — Transitions between UltraGaming, CreatorBoost, StandardInteractive, and PowerSaverIdle with hardware-adaptive emergency thresholds

🚀 Deep Windows Subsystem Optimization

  • DWM DirectFlip Zero-Lag — Strips Desktop Window Manager animation delays and routes frames directly to GPU overlay scan-out
  • Kernel Large Pages (2MB HugePages) — Minimizes CPU TLB cache misses for compilers and game engines
  • GPU & Network MSI-X Interrupts — Switches adapters to Message Signaled Interrupts via PCI Registry, eliminating DPC latency spikes
  • NVMe Queue Depth Tuning — Maximizes NVMe parallel I/O queues and NTFS MFT cache allocation
  • TCP NoDelay & QoS DSCP — Disables Nagle algorithm and enforces QoS packet prioritization for lower network latency

🛡️ Stability & Anti-Hang Shield

  • Typing Tool Immunity — Any input method or typing software is automatically detected via window/hook ownership and fully protected from throttling or suspension
  • Explorer Auto-Rescue — Monitors explorer.exe via IsHungAppWindow and auto-rescues it within seconds if an I/O deadlock freezes your taskbar
  • Behavioral Background Throttling — Identifies background disk hogs by behavior (low CPU + sleeping state) rather than by name, and deprioritizes them dynamically
  • Fast Shutdown — Reduces service shutdown timeouts and enables AutoEndTasks for instant shutdowns
  • Handle Leak Auditor — Monitors processes holding excessive OS handles and deprioritizes them automatically

CLI Reference

ssm stats           # Live hardware telemetry, AI app intent & kernel stats
ssm boost           # One-click performance boost (Timer, Large Pages, DWM, GPU, NVMe)
ssm clean           # Purge Windows Standby RAM + clean temporary files
ssm tune            # Apply low-latency registry tweaks (MSI-X, TCP NoDelay, Fast Shutdown)
ssm daemon          # Run the optimization daemon in foreground (console mode)
ssm service install # Register as a Windows Service with boot autostart
ssm service uninstall # Unregister the Windows Service
ssm uninstall       # Completely remove ssm (reverts tweaks, removes service & PATH)

System Requirements

OS Windows 10 / 11 (64-bit)
Architecture x86-64 (AMD64)
Privileges Administrator (required for kernel-level tuning)
Runtime None — fully self-contained binary

Building from Source

Requirements: Rust 1.75+ · Windows 10/11 64-bit · MSVC Build Tools

git clone https://github.com/thisath111/ssm.git
cd ssm
cargo build --release   # → target/release/ssm.exe
cargo test              # Run all unit tests

License

Distributed under the MIT License. See LICENSE for details.