Issue #11044 has been updated by Ken Barber.

I wonder how this works in Windows as well ... you had a chance to test it on 
Windows Brice?

R.I. Pienaar wrote:
> damn, I was hoping someone else would know? :P

If its fixing pain and there are no bad side-effects - I'd have it on by 
default. If we don't know what to anticipate, leave it off and switch it as a 
default later. But I agree a config item would be nice. 

> I guess the question is how big are the 2 processes in ram, ruby's shitty 
> garbage collector will void the COW fork strategies so it might add up to a 
> surprise if on by default

Brice, you got any numbers on this after the patch has been applied?
----------------------------------------
Feature #11044: Puppet agent should fork when applying the catalog
https://projects.puppetlabs.com/issues/11044

Author: Brice Figureau
Status: In Topic Branch Pending Review
Priority: Normal
Assignee: Brice Figureau
Category: agent
Target version: 
Affected Puppet version: 
Keywords: 
Branch: https://github.com/masterzen/puppet/tree/tickets/2.7.x/11044


The current best practice among Puppet users is to run the puppet agent out of 
cron with --onetime. The rationale is that the puppet agent is a memory hog 
during a run, but due to the way the ruby interpreter works this memory can 
never be returned to the OS between runs. Running on cron makes sure puppet 
doesn't hold this memory for more than the run.

A simple solution to this issue is to fork into a child process and do the 
catalog run. This process would exit at the end of the catalog execution, thus 
freeing the memory used during the run.


-- 
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