Project

General

Profile

Feature #10814

Additional ifdh log information from jobsub_wrapper

Added by Michael Diesburg over 3 years ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
11/05/2015
Due date:
% Done:

0%

Estimated time:
Stakeholders:
Duration:

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 over 3 years ago

  • Target version set to v1.1.9

#2 Updated by Dennis Box over 3 years ago

  • Assignee set to Dennis Box

#3 Updated by Dennis Box over 3 years ago

  • Target version changed from v1.1.9 to v1.2

#4 Updated by Dennis Box over 3 years ago

  • Target version changed from v1.2 to v1.2.1

#5 Updated by Dennis Box over 3 years ago

  • Target version changed from v1.2.1 to v1.2.2

#6 Updated by Dennis Box almost 3 years ago

  • Target version changed from v1.2.2 to v1.2.4

#7 Updated by Dennis Box over 2 years ago

  • Target version changed from v1.2.4 to v1.2.5

#8 Updated by Dennis Box over 1 year ago

  • Target version changed from v1.2.5 to v1.2.7

#9 Updated by Dennis Box about 1 year ago

  • Target version changed from v1.2.7 to v1.2.8

#10 Updated by Dennis Box 10 months ago

  • Target version changed from v1.2.8 to v1.2.9

#11 Updated by Dennis Box 8 months ago

  • Target version changed from v1.2.9 to v1.2.9.rc_x

#12 Updated by Dennis Box 5 months ago

  • Target version changed from v1.2.9.rc_x to v1.3.1


Also available in: Atom PDF