Forum: Cfengine Help
Subject: Re: evaluation of variables
Author: joke
Link to topic: https://cfengine.com/forum/read.php?3,18954,18980#msg-18980

mark Wrote:
-------------------------------------------------------
> If you want a diagnosis, I suggest you submit your
> complete code example to the list and say what OS
> you are running on, in case that matters. 

The cfserve's repository is manage through a git repository so I decided to 
drop execresult and replace it with a git filter which runs m4 on the input 
files to generate the list of files to include.
There's no need to submit the code example in this case. The number of proceses 
dropped from 60 to to 5 by remove 2 execresult calls.

The first execresult forked 1 process and the second forked 2 processes one of 
them a shell. Since cfengine did multiple evaluations of execresult this 
multipled to 54 processes being created instead of just 3.

> I suspect strace itself reports differently on
> different kernels.

Actually it doesn't. strace lists the system calls of a program. The system 
calls were hardcoded within the executable at compile time. Most of them 
originate from using functions of the standard library or unix functions like 
stat().

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to