-
Notifications
You must be signed in to change notification settings - Fork 518
FS_Sys_Cpu
Ulf Frisk edited this page Sep 6, 2026
·
1 revision
The directory _sys/proc/cpu exists as a sub-directory to the file system root.
The directory contains cpu usage information.
The files in the sys/proc/cpu directory are listed in the table below:
| File | Description |
|---|---|
| cpu.txt | CPU usage, sorted by PID. |
| cpu-time.txt | CPU usage, sorted by total active time. |
| cpu-usage.txt | CPU usage, sorted by current activity, only shown in live memory analysis. |
| readme.txt | README file. |
Files in the sys/proc/cpu directory are read-only.
The file cpu.txt contains a per-pid view of the process activity.
PID Process Kernel(s) User(s) Total(s) CPU% Delta(s) Thrd Status
----------------------------------------------------------------------------------------------------------
4 System 25.453 0.000 25.453 0.16 20.132 147 ok
88 Registry 0.547 0.000 0.547 0.04 20.132 4 ok
388 smss.exe 0.094 0.016 0.109 0.00 20.132 2 ok
416 NisSrv.exe 0.031 0.000 0.031 0.00 20.132 4 ok
444 svchost.exe 3.812 0.562 4.375 0.08 20.132 27 ok
...
7572 svchost.exe 0.031 0.016 0.047 0.00 20.132 7 ok
7580 CPUSTRES64.EXE 97.672 1793.328 1891.000 32.75 20.132 8 ok
7724 TabTip.exe 0.000 0.031 0.031 --- --- 0 exited
7780 Taskmgr.exe 24.422 13.750 38.172 0.54 20.132 17 ok
The example shows the sys/proc/cpu directory on a live target. The WSL window command is watch -n 10 'head cpu-usage.txt' to refresh the cpu usage every 10s.

The sys/proc/cpu sub-directory is implemented as a built-in native C-code plugin. The plugin source is located in the file modules/m_sys_proccpu.c in the vmm project.