Feature #10814
Additional ifdh log information from jobsub_wrapper
0%
Description
We would like to have the user scripts executed under the "time" command in the
jobsub_wrapper and the resulting info logged via "ifdh log". As an example:
$fmt="{ 'jobsub_id' : $JOBSUBJOBID , 'user_time' : %U , 'system_time' : %S , 'elapsed_time' : %e , 'pct_cpu' : %P , 'rss_max' : %M , 'rss_avg' : %t , 'mem_tot_avg' : %K , 'unshared_data_avg' : %D , 'unshared_stack_avg' : %p , 'shared_text_avg' : %X , 'major_page_faults' : %F , 'minor_page_faults' : %R , 'context_switch' : %c , 'swap' : %W , 'fs_out' : %O , 'fs_in' : %I , 'waits' : %w ,'socket_in' : %r , 'socket_out' : %s , 'signals_received' : %k , 'exit_status' : %x }"
$/usr/bin/time -o time_log.tmp -f "$fmt" user_script
$ ifdh log "`cat time_log.tmp`"
Note that this must be run explicitly with /usr/bin/time and not
the built-in shell time function.
Thanks.
-Mike
History
#1 Updated by Dennis Box about 5 years ago
- Target version set to v1.1.9
#2 Updated by Dennis Box about 5 years ago
- Assignee set to Dennis Box
#3 Updated by Dennis Box about 5 years ago
- Target version changed from v1.1.9 to v1.2
#4 Updated by Dennis Box almost 5 years ago
- Target version changed from v1.2 to v1.2.1
#5 Updated by Dennis Box almost 5 years ago
- Target version changed from v1.2.1 to v1.2.2
#6 Updated by Dennis Box over 4 years ago
- Target version changed from v1.2.2 to v1.2.4
#7 Updated by Dennis Box almost 4 years ago
- Target version changed from v1.2.4 to v1.2.5
#8 Updated by Dennis Box about 3 years ago
- Target version changed from v1.2.5 to v1.2.7
#9 Updated by Dennis Box over 2 years ago
- Target version changed from v1.2.7 to v1.2.8
#10 Updated by Dennis Box over 2 years ago
- Target version changed from v1.2.8 to v1.2.9
#11 Updated by Dennis Box about 2 years ago
- Target version changed from v1.2.9 to v1.2.9.rc_x
#12 Updated by Dennis Box almost 2 years ago
- Target version changed from v1.2.9.rc_x to v1.3.1
#13 Updated by Dennis Box about 1 year ago
- Target version changed from v1.3.1 to v1.4