Author Topic: PatchMyPCService high CPU usage during publishing  (Read 491 times)

Offline merlinfrombelgium

  • Newbie
  • *
  • Posts: 5
  • Principal Consultant for ob-V-us
    • View Profile
    • ob-V-us website
PatchMyPCService high CPU usage during publishing
« on: February 05, 2020, 05:03:32 AM »
What CPU usage is everyone seeing for the PatchMyPCService during publishing?
Running on the Primary Site Server which is also the WSUS/SUP. Only 2 vCPUs @2.6Ghz
Process uses both CPUs and uses about 40-60% CPU usage.

Infra changes are planned to better scale for ConfigMgr. But I'd like to know what others see.

Offline Justin Chalfant

  • Patch My PC Support
  • Administrator
  • Hero Member
  • *****
  • Posts: 2099
    • View Profile
    • Patch My PC Support
Re: PatchMyPCService high CPU usage during publishing
« Reply #1 on: February 05, 2020, 05:22:13 AM »
Hey Merlin,

I would say that's probably about normal if you are only running 2 cores. When we call the WSUS API, it will perform a full hash calculation of the downloaded binary file to ensure it's a match. The CPU will see a little spike during this operation.

Please be aware you are only running 25% of the recommended hardware requirement for a SUP: https://docs.microsoft.com/en-us/configmgr/core/plan-design/configs/recommended-hardware#bkmk_RemoteSiteSystem

Site system role               CPU (cores)   Memory (GB)   Disk space (GB)
Software update point1        8                       16                 As required by the operating system and to store updates that you deploy

I would probably try to bump up to at least 4 CPU cores and see how that looks :).

What CPU usage is everyone seeing for the PatchMyPCService during publishing?
Running on the Primary Site Server which is also the WSUS/SUP. Only 2 vCPUs @2.6Ghz
Process uses both CPUs and uses about 40-60% CPU usage.

Infra changes are planned to better scale for ConfigMgr. But I'd like to know what others see.


Offline merlinfrombelgium

  • Newbie
  • *
  • Posts: 5
  • Principal Consultant for ob-V-us
    • View Profile
    • ob-V-us website
Re: PatchMyPCService high CPU usage during publishing
« Reply #2 on: February 05, 2020, 05:26:20 AM »
Thanks for your reply Justin.

We've made the customer fully aware of that! Changes are planned for coming months.

I appreciate your technical insight. Not really seeing spikes though. Rather a consistent usage while downloads and publishing is ongoing.

Offline Justin Chalfant

  • Patch My PC Support
  • Administrator
  • Hero Member
  • *****
  • Posts: 2099
    • View Profile
    • Patch My PC Support
Re: PatchMyPCService high CPU usage during publishing
« Reply #3 on: February 05, 2020, 05:27:11 AM »
Any activity in the log? What build are you on?

Offline merlinfrombelgium

  • Newbie
  • *
  • Posts: 5
  • Principal Consultant for ob-V-us
    • View Profile
    • ob-V-us website
Re: PatchMyPCService high CPU usage during publishing
« Reply #4 on: February 05, 2020, 05:43:14 AM »
Build 1.5.9.0

Yes, there's activity as this is the first publishing run since implementation. So resource usage is expected, just didn't expect it to be this high, is all.

Offline Justin Chalfant

  • Patch My PC Support
  • Administrator
  • Hero Member
  • *****
  • Posts: 2099
    • View Profile
    • Patch My PC Support
Re: PatchMyPCService high CPU usage during publishing
« Reply #5 on: February 05, 2020, 07:22:41 AM »
Gotcha, yeah I don't believe the WSUS hash checking is the most efficient method anymore. For example, if you publish a large update say > 500MB, you may notice it will probably take 5+ minutes to complete the publishing API. We've run a procmon during this phase and you can see as its hashing through the entire binary relatively slowly.

Build 1.5.9.0

Yes, there's activity as this is the first publishing run since implementation. So resource usage is expected, just didn't expect it to be this high, is all.