Issue #16581 has been updated by Josh Cooper.

It might be helpful to get some profiling data. First `gem install ruby-prof`. 
Then replace the contents of `C:\Program Files (x86)\Puppet 
Labs\Puppet\puppet\bin\puppet` with:

<pre>
#!/usr/bin/env ruby

require 'rubygems'
require 'ruby-prof'

result = RubyProf.profile do
  require 'puppet/util/command_line'
  Puppet::Util::CommandLine.new.execute
end

printer = RubyProf::CallStackPrinter.new(result)
File.open('callstack.html', 'w') { |f| printer.print(f, {}) }
</pre>

Then run `puppet apply puppet_perms.pp` and send `callstack.html` to me.
----------------------------------------
Bug #16581: Windows file permission management very slow
https://projects.puppetlabs.com/issues/16581#change-73630

Author: David Carr
Status: Accepted
Priority: Normal
Assignee: Josh Cooper
Category: windows
Target version: 2.7.20
Affected Puppet version: 2.7.6
Keywords: windows file permissions user group sid slow performance
Branch: 


I'm trying to write some Puppet manifests that support both Darwin and Windows. 
 So far, it's been going pretty well, but I noticed that my manifests were 
running much more slowly on Windows.  I believe that the majority of the 
slow-down is caused by File resources with owner/group/mode specified.  I'm 
able to reproduce a substantial performance difference between a manifest to 
create a single empty directory with/without permissions specified.  Manifests 
and output from "puppet apply --debug --verbose --no-daemonize --summarize 
--color=false --onetime MANIFEST" attached.  The machine I'm running these on 
is a Dell Latitude E6500 running Windows 7 64-bit with Puppet 3.0.0-rc7 
installed.


-- 
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://projects.puppetlabs.com/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