Ticket 1721 - Profiling script
Summary: Profiling script
Status: OPEN
Alias: None
Product: Slurm
Classification: Unclassified
Component: Profiling (show other tickets)
Version: 15.08.x
Hardware: Linux Linux
: 5 - Enhancement
Assignee: Unassigned Developer
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2015-06-03 04:38 MDT by Carlos Fenoy
Modified: 2017-03-07 11:56 MST (History)
0 users

See Also:
Site: Roche
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
NoveTech Sites: ---
Nvidia HWinf-CS Sites: ---
OCF Sites: ---
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Tzag Elita Sites: ---
Linux Distro: ---
Machine Name:
CLE Version:
Version Fixed:
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments
patch (2.54 KB, patch)
2015-06-08 05:10 MDT, David Bigagli
Details | Diff

Note You need to log in before you can comment on or make changes to this ticket.
Description Carlos Fenoy 2015-06-03 04:38:13 MDT
Is there any way to get profiling of the batch script itself? We have lots of sequential jobs and we could benefit from this feature.
If it is not currently there, can we get this with the next major release (15.08)?
Comment 1 David Bigagli 2015-06-04 10:54:33 MDT
Do you mean hdf5?

David
Comment 2 Carlos Fenoy 2015-06-04 23:32:39 MDT
Yes,

We want to be able to profile the script as if it were another step of the
job.

Regards,
Carlos

On Fri, Jun 5, 2015 at 12:54 AM, <bugs@schedmd.com> wrote:

>   *Comment # 1 <http://bugs.schedmd.com/show_bug.cgi?id=1721#c1> on bug
> 1721 <http://bugs.schedmd.com/show_bug.cgi?id=1721> from David Bigagli
> <david@schedmd.com> *
>
> Do you mean hdf5?
>
> David
>
>  ------------------------------
> You are receiving this mail because:
>
>    - You reported the bug.
>
>
Comment 3 David Bigagli 2015-06-05 09:33:15 MDT
Can you run your batch script as a step?

David
Comment 4 Carlos Fenoy 2015-06-08 01:40:34 MDT
Hi David,

We do not want the users to wrap their scripts inside another script and
running srun.

On Fri, Jun 5, 2015 at 11:33 PM, <bugs@schedmd.com> wrote:

>   *Comment # 3 <http://bugs.schedmd.com/show_bug.cgi?id=1721#c3> on bug
> 1721 <http://bugs.schedmd.com/show_bug.cgi?id=1721> from David Bigagli
> <david@schedmd.com> *
>
> Can you run your batch script as a step?
>
> David
>
>  ------------------------------
> You are receiving this mail because:
>
>    - You reported the bug.
>
>
Comment 5 David Bigagli 2015-06-08 05:10:15 MDT
Created attachment 1965 [details]
patch
Comment 6 David Bigagli 2015-06-08 05:12:40 MDT
The attached patch solves this problem. Since the profile plugin is being
restructured I wait till #971 is closed before commit this in 15.08.
You can back port it to 14.11 locally.

David
Comment 7 Carlos Fenoy 2015-06-16 02:51:30 MDT
Thanks for the patch. It generates the h5 file if ProfileHDF5Default is set to Task in the acct_gather.conf file. Otherwise even if the parameter --profile=Task is passed to the sbatch command no h5 file is created.
Also the file is not recognized by the sh5util so it can not be easily extracted into a csv file
Comment 8 David Bigagli 2015-11-04 01:49:49 MST
Hi,
  a patch for this was committed to the master branch since this is a new
feature. The batch step can now be profiles and the step file is merged
together with the other steps of the job and can be then viewed with the hdf 
commands like hdfview. 

Currently batch steps are profiled only if the ProfileHDF5Default is set,
the reason is that this need modification of the batch data structure
and the protocol between the controller, the slurmd and the stepd.
This will be addressed in a upcoming patch.

David