On Monday, February 10, 2014 4:14:59 PM UTC+1, Trevor Vaughan wrote:
>
>
>
>> I started working on the flush part. I have a dev branch (which doesn't 
>> pass all tests just now) at 
>> https://github.com/raphink/augeasproviders/tree/dev/aug_one_handler
>>
>> Feel free to test it and let me know if that improves your situation with 
>> the number of files opened by Augeasproviders.
>>
>
> Awesome, I'll have to check it out!
>


For the record, here are my tests using the unit tests on the providers:

# master branch (current HEAD):
$ strace -e trace=open /home/rpinson/.rvm/rubies/ruby-1.9.2-p320/bin/ruby 
-S rspec spec/unit/augeasproviders/provider_spec.rb 
spec/unit/puppet/apache_setenv_spec.rb spec/unit/puppet/host_spec.rb 
spec/unit/puppet/kernel_parameter_grub2_spec.rb 
spec/unit/puppet/kernel_parameter_grub_spec.rb 
spec/unit/puppet/mailalias_spec.rb spec/unit/puppet/mounttab_fstab_spec.rb 
spec/unit/puppet/mounttab_vfstab_spec.rb 
spec/unit/puppet/nrpe_command_spec.rb spec/unit/puppet/pg_hba_spec.rb 
spec/unit/puppet/puppet_auth_spec.rb spec/unit/puppet/rsyslog_spec.rb 
spec/unit/puppet/shellvar_spec.rb spec/unit/puppet/shellvar_type_spec.rb 
spec/unit/puppet/sshd_config_spec.rb 
spec/unit/puppet/sshd_config_subsystem_spec.rb 
spec/unit/puppet/sysctl_spec.rb spec/unit/puppet/syslog_spec.rb 2>&1 | grep 
-c /tmp/target
2571

# dev/aug_one_handler branch:
$ strace -e trace=open /home/rpinson/.rvm/rubies/ruby-1.9.2-p320/bin/ruby 
-S rspec spec/unit/augeasproviders/provider_spec.rb 
spec/unit/puppet/apache_setenv_spec.rb spec/unit/puppet/host_spec.rb 
spec/unit/puppet/kernel_parameter_grub2_spec.rb 
spec/unit/puppet/kernel_parameter_grub_spec.rb 
spec/unit/puppet/mailalias_spec.rb spec/unit/puppet/mounttab_fstab_spec.rb 
spec/unit/puppet/mounttab_vfstab_spec.rb 
spec/unit/puppet/nrpe_command_spec.rb spec/unit/puppet/pg_hba_spec.rb 
spec/unit/puppet/puppet_auth_spec.rb spec/unit/puppet/rsyslog_spec.rb 
spec/unit/puppet/shellvar_spec.rb spec/unit/puppet/shellvar_type_spec.rb 
spec/unit/puppet/sshd_config_spec.rb 
spec/unit/puppet/sshd_config_subsystem_spec.rb 
spec/unit/puppet/sysctl_spec.rb spec/unit/puppet/syslog_spec.rb 2>&1 | grep 
-c /tmp/target
1352


It's not amazing, but it already divides the number of open files by two.


Cheers,

Raphaël

>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/5d54c27c-3ca3-40f3-bd7c-8d124650d0ae%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to