Issue #1781 has been updated by Mathieu Gagné.

Hi,

The "bug" is caused by "--with-pthread" within Ruby, an option often disabled 
by the Ruby community.

http://timetobleed.com/fix-a-bug-in-rubys-configurein-and-get-a-30-performance-boost/
https://bugs.launchpad.net/ubuntu/+source/ruby1.8/+bug/307462

I rebuilt a new Debian package with --disable-pthread --disable-tcl-thread, 
installed it and my CPU stopped melting.
----------------------------------------
Bug #1781: Slow execution
http://projects.reductivelabs.com/issues/1781

Author: Mathieu Gagné
Status: Rejected
Priority: Normal
Assigned to: 
Category: plumbing
Target version: 
Complexity: Unknown
Affected version: 0.24.8
Keywords: 


Hi,

We are currently evaluating Puppet to see if it could be used as part of our 
management system.

I'm currently facing what I consider serious performance issues. In fact, 
Puppet seems to be very slow in general.

Let me show you a first example:

$ time puppet --version
0.24.5

real    0m0.718s
user    0m0.576s
sys     0m0.140s

During that time, there is hundreds, if not thousands 
"rt_sigprocmask(SIG_BLOCK, NULL, [], 8)" calls being made. All this to show the 
version.

Is it normal? If yes, why? Can it be improved?


As for my second example, I installed Puppet with a basic manifest: the "sudo" 
example given in the tutorial. The file is synced to the node, great.

However, the puppet client is constantly using about 3-4% of the CPU. Again, 
hundreds of "rt_sigprocmask()" calls per second are being made. Is it normal?

I'm just wondering if there is any problem or if it's a "normal" behavior.

To be honest, this is currently a show stopper for me as I'm not interested in 
running a tool which would just drain the CPU for no apparent reason.

Here is some information about the environment:
OS: Debian GNU/Linux lenny/sid
Kernel: 2.6.26-1-amd64
Ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
Puppet: 0.24.5

Can you provide some help/hints about it? Any help will be appreciated. Thanks.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to