benchmarking of policy evaluation

14 views
Skip to first unread message

robu...@gmail.com

unread,
Jan 3, 2018, 8:52:14 AM1/3/18
to help-c...@googlegroups.com
hi all,

is there any way to benchmark the time it takes to evaluate each bundle
or even promise?

Our "multi-auhtor" policy has grown quite large and I would like to check
who uses up the most "time" in evaluation/execution
both in cf-promises and cf-agent

TIA & best regards

P.S.: this is for  "CFEngine Core 3.7.6" (community edition)

Nick Anderson

unread,
Jan 3, 2018, 9:01:48 AM1/3/18
to help-cfengine

robu...@gmail.com

unread,
Jan 3, 2018, 9:11:46 AM1/3/18
to help-cfengine
Nope, haven't seen that yet,
thnx a lot for quick reply,
will try it now

Nick Anderson

unread,
Jan 3, 2018, 9:24:30 AM1/3/18
to help-cfengine
Also note the  

  --timing-output, -t       - Output timing information on console when in verbose mode

  --timestamp   , -l   - Log timestamps on each line of log output

 --debug --log-modules=all

options to cf-agent to add more logging and timestamps to the logs which can help you determine where the time consuming parts are.

robu...@gmail.com

unread,
Jan 3, 2018, 9:47:34 AM1/3/18
to help-cfengine
thnx, but:

--timing-output, -t
doesn't do anything, even not in verbose mode

--log-modules=all
cf-agent: unrecognized option '--log-modules=all'

(# cf-agent --version
CFEngine Core 3.7.6)

but cf-profile.pl looks ... promising ;-)
Reply all
Reply to author
Forward
0 new messages