W dniu czw., 15.06.2017 o 21:58 Barry Moore <[email protected]>
napisał(a):

> Thanks alot! These will be very helpful!
>
> On Thu, Jun 15, 2017 at 3:52 PM, Kilian Cavalotti <
> [email protected]> wrote:
>
>>
>> Hi Barry,
>>
>> On Thu, Jun 15, 2017 at 9:16 AM, Barry Moore <[email protected]> wrote:
>> > Does anyone have a script or knowledge of how to query wait times for
>> Slurm
>> > jobs in the last year or so?
>>
>> With the help of histogram.py from
>> https://github.com/bitly/data_hacks, you can have a one-liner:
>>
>> $ SLURM_TIME_FORMAT="%s" sacct -nDX -o submit,start -S $(date -d "now
>> -1 year" +%Y-%m-%d) | awk '{w=($2-$1)/60; if (w>=0) print w}' |
>> histogram.py -p --no-mvsd -f "%8.0f"
>> # NumSamples = 255101; Min = 0.00; Max = 18688.60
>> # each ∎ represents a count of 3299
>>       0 -     1869 [247430]:
>>
>> ∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
>> (96.99%)
>>    1869 -     3738 [  3437]: ∎ (1.35%)
>>    3738 -     5607 [  1974]:  (0.77%)
>>    5607 -     7475 [  1045]:  (0.41%)
>>    7475 -     9344 [   677]:  (0.27%)
>>    9344 -    11213 [    53]:  (0.02%)
>>   11213 -    13082 [    55]:  (0.02%)
>>   13082 -    14951 [    46]:  (0.02%)
>>   14951 -    16820 [    95]:  (0.04%)
>>   16820 -    18689 [   289]:  (0.11%)
>>
>> That's wait times in minutes for the past year. You can add the
>> relevant divider in the awk part to get that in other time units.
>> Also, adjusting bins or using log scale in histogram.py options could
>> help.
>>
>> Cheers,
>> --
>> Kilian
>>
>
>
>
> --
> Barry E Moore II, PhD
> E-mail: [email protected]
>
> Assistant Research Professor
> Center for Simulation and Modeling
> University of Pittsburgh
> Pittsburgh, PA 15260
>

Reply via email to