Saturday, December 7, 2019

performance - High System process CPU usage (Queue/Dequeue+TrimAlllSystemPagableMemory)


I have ASUS G75VX laptop with latest Windows 8.1 (not Pro), all updates installed.


Task manager says it's the System process that takes my entire single CPU. When this high single CPU saturation happens it remains in such state until I restart the computer.


I used Process Hacker to get stack trace of the locked-in thread of System process:


0, ntoskrnl.exe!KeRemoveQueueEx+0x2786
1, ntoskrnl.exe!KeSynchronizeExecution+0x4133
2, ntoskrnl.exe!RtlTraceDatabaseValidate+0xb82
3, ntoskrnl.exe!RtlTraceDatabaseValidate+0x12cc
4, ntoskrnl.exe!RtlTraceDatabaseValidate+0xa4a
5, ntoskrnl.exe!MmTrimAllSystemPagableMemory+0xcf42
6, ntoskrnl.exe!MmTrimAllSystemPagableMemory+0xa019
7, ntoskrnl.exe!MmCreateMirror+0x56da
8, ntoskrnl.exe!MmTrimAllSystemPagableMemory+0xceba
9, ntoskrnl.exe!MmCreateMirror+0x6740
10, ntoskrnl.exe!RtlSidHashLookup+0x228f
11, ntoskrnl.exe!KeAcquireSpinLockRaiseToDpc+0x1a4
12, ntoskrnl.exe!KeSynchronizeExecution+0x59d6

It is very hard to estimate when it happens, but it is very annoying and renders computer useless. I guess it happens usually 5 minutes after I have taken my laptop out of sleep, but that's just a guess.


I gathered some information via Windows Performance Recorder, the link is: https://www.dropbox.com/s/znwwh4a09hxas81/Foundation.7z


Answer



The high CPU usage comes from ntoskrnl.exe!RtlScrubMemory I asked Microsoft about this a wile ago and they told me this does RAM checks. It calls ntoskrnl.exe!RtlpGenericRandomPatternWorker to write some random data to the RAM.


enter image description here


You can't really fix it, because it is by design.


No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...