resourcetracking_services.fcl
Go to the documentation of this file.
1 #
2 # File: resourcetracking_services.fcl
3 # Purpose: configuration of resource tracking services.
4 # Author: Gianluca Petrillo (petrillo@fnal.gov)
5 # Date: August 11, 2016
6 # Version: 1.0
7 #
8 # Configuration provided:
9 # * single services:
10 #
11 # - standard_memorytracker: reports on memory usage and its grow steps;
12 # note that this configuration requires art 2.1 or newer
13 #
14 # - standard_timetracker: reports on CPU time used by each module
15 #
16 #
17 # * service bundles:
18 #
19 # - standard_resourcetrackers: runs memory and CPU time tracking services.
20 # Use as:
21 #
22 # services: {
23 #
24 # @table::standard_resourcetrackers
25 #
26 # # ...
27 #
28 # } # services
29 #
30 #
31 # Changes:
32 # 20160811 (petrillo@fnal.gov) [v1.0]
33 # first version
34 #
35 
36 BEGIN_PROLOG
37 
38 ###
39 ### Single service configurations
40 ###
41 #
42 # configuration for art's memory tracker service
43 #
44 # - saves statistics in a new SQL database file (memory.db)
45 # - writes a report on the standard message facility output channel
46 #
47 # All summaries are printed (by service default).
48 #
49 standard_memorytracker: {
50 
51  # do not report memory increase from the first event
52  # (this is guaranteed to be a large, but necessary, jump)
53  #ignoreTotal: 1
54 
55  dbOutput: {
56 
57  filename: "memory.db"
58 
59  # (re)create a new database file on each job
60  # (the output of merged job tends to be confusing)
61  overwrite: true
62 
63  } # dbOutput
64 
65 
66 } # standard_memorytracker
67 
68 
69 #
70 # configuration for art's time tracker service
71 #
72 # - saves statistics in a new SQL database file (cputime.db)
73 # - writes a report on the standard message facility output channel
74 #
75 standard_timetracker: {
76 
77  printSummary: true
78 
79  dbOutput: {
80 
81  filename: "cputime.db"
82 
83  # (re)create a new database file on each job
84  # (the output of merged job tends to be confusing)
85  overwrite: true
86 
87  } # dbOutput
88 
89 
90 } # standard_timetracker
91 
92 
93 ###
94 ### service bundles
95 ###
96 
97 standard_resourcetrackers: {
98  MemoryTracker: @local::standard_memorytracker
99  TimeTracker: @local::standard_timetracker
100 } # standard_resourcetrackers
101 
102 
103 END_PROLOG
104