Jira (PUP-10229) Puppet 6 (agent) is noticeably slower on Windows than Puppet 5

15 views
Skip to first unread message

Glenn Sarti (JIRA)

unread,
Jan 9, 2020, 9:56:03 PM1/9/20
to puppe...@googlegroups.com
Glenn Sarti updated an issue
 
Puppet / Bug PUP-10229
Puppet 6 (agent) is noticeably slower on Windows than Puppet 5
Change By: Glenn Sarti
Summary: Puppet 6 (agent) is noticeably slower on Windows than Puppet 5
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Glenn Sarti (JIRA)

unread,
Jan 9, 2020, 9:57:04 PM1/9/20
to puppe...@googlegroups.com
Glenn Sarti updated an issue
Change By: Glenn Sarti
Attachment: puppet6-slow1.gif
Attachment: puppet6-slow2.gif

Glenn Sarti (JIRA)

unread,
Jan 9, 2020, 9:57:04 PM1/9/20
to puppe...@googlegroups.com
Glenn Sarti commented on Bug PUP-10229
 
Re: Puppet 6 (agent) is noticeably slower on Windows than Puppet 5

Ruby versions used

2.4.3-2-x64 : ruby 2.4.3p205 (2017-12-14 revision 61247) [x64-mingw32]
2.5.1-2-x64 : ruby 2.5.1p57 (2018-03-29 revision 63029) [x64-mingw32]

Josh Cooper (JIRA)

unread,
Jan 10, 2020, 7:19:04 PM1/10/20
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-10229

I see similar results when running from a gem using the puppet-runtime from respective puppet-agent builds. Note these use facter 2.x gem:

5.5.x:

PS C:\> Measure-Command {Write-Host $(puppet --version); Write-Host  $(ruby --version) }
5.5.17
ruby 2.4.9p362 (2019-10-02 revision 67824) [x64-mingw32]
 
...
TotalMilliseconds : 1426.2972

6.11.1:

PS C:\>  Measure-Command {Write-Host $(puppet --version); Write-Host  $(ruby --version) }
6.11.1
ruby 2.5.7p206 (2019-10-01 revision 67816) [x64-mingw32]
 
...
TotalMilliseconds : 5376.293

Running puppet 6.11.1 on ruby 2.4.9, is also slow, which indicates this a puppet issue more than a 2.4 vs 2.5 ruby issue:

PS C:\> Measure-Command {Write-Host $(puppet --version); Write-Host  $(ruby --version) }
6.11.1
ruby 2.4.9p362 (2019-10-02 revision 67824) [x64-mingw32]
 
...
TotalMilliseconds : 4067.7442

The same facter gem (2.5.6) is a little bit slower on 6.11.1/ruby 2.5.7:

5.5.x

PS C:\> Measure-Command { facter } | Select-Object -Property TotalMilliseconds
 
TotalMilliseconds
-----------------
        3822.3564

6.11.1

PS C:\>  Measure-Command { facter } | Select-Object -Property TotalMilliseconds
 
TotalMilliseconds
-----------------
        4228.5548

Rob Braden (JIRA)

unread,
Jan 13, 2020, 12:49:04 PM1/13/20
to puppe...@googlegroups.com

Rob Braden (JIRA)

unread,
Jan 13, 2020, 12:49:05 PM1/13/20
to puppe...@googlegroups.com
Rob Braden updated an issue
Change By: Rob Braden
Sprint: Coremunity Grooming

Josh Cooper (Jira)

unread,
Aug 18, 2020, 1:35:04 AM8/18/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: Coremunity Grooming
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
May 3, 2021, 4:27:02 PM5/3/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-10229
 
Re: Puppet 6 (agent) is noticeably slower on Windows than Puppet 5

Using a version of puppet-agent with PA-3526 fixed, I see the results are better than 5.5.x: 
 

PS C:\Users\Administrator> Measure-Command {Write-Host $(puppet --version); Write-Host $(ruby --version) }
7.7.0
ruby 2.7.3p183 (2021-04-05 revision 6847ee089d) [x64-mingw32]
 
...
TotalMilliseconds : 1315.7731

And facter (4.1.1) is about 6-7x faster than facter 2.5.x

PS C:\Users\Administrator> Measure-Command { facter } | Select-Object -Property TotalMilliseconds
 
TotalMilliseconds
-----------------
         642.0863

The PA changes will be going out in the next puppet-agent 7.7.0 release, so I'm going to close this. Please reopen if you don't see similar improvement.

This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages