systeminformer icon indicating copy to clipboard operation
systeminformer copied to clipboard

Incorrect process memory statistics

Open ge0rdi opened this issue 2 years ago • 1 comments

Brief description of your issue

Following process memory statistics contain incorrect information:

  • Shared commit
  • Private commit
  • Peak private commit

They are displayed only if process is in job (N/A otherwise). They display cumulative information about all processes in a job.

Steps to reproduce (optional)

No response

Expected behavior (optional)

Mentioned statistics should contain information about given process (not processes in job).

In fact Private commit / Peak private commit are the same as Private bytes / Peak private bytes that are (correctly) displayed for a process. So there should be no need to duplicate them.

Shared commit statistic can be obtained using: NtQueryInformationProcess + ProcessVmCounters + VM_COUNTERS_EX2 (since Win10 TH1 most likely)

Actual behavior (optional)

No response

Environment (optional)

Windows 10 22H2

ge0rdi avatar Aug 03 '22 07:08 ge0rdi