Replies: 11 comments 2 replies
-
Hi @zhibinuhn, Thank you for the suggestion. As not everyone will have |
Beta Was this translation helpful? Give feedback.
-
I have created issue #29 to track this. |
Beta Was this translation helpful? Give feedback.
-
Hi Neil,
Thanks so much for implementing the new features. I have updated my local version.
Best,
Zhibin
From: Neil Munday ***@***.***>
Date: Tuesday, April 12, 2022 at 4:03 PM
To: neilmunday/slurm-mail ***@***.***>
Cc: zhibinuhn ***@***.***>, Mention ***@***.***>
Subject: Re: [neilmunday/slurm-mail] CPU and Memory information (Discussion #28)
I have implemented the request in the 2.6 branch. If you would like to try it out, you can do as follows:
git clone https://github.com/neilmunday/slurm-mail
git checkout 2.6
—
Reply to this email directly, view it on GitHub<#28 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFR6AIYOYGEZZQRXTRMR75TVEXJH7ANCNFSM5RVQ4UIQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@zhibinuhn no problem. I'd be interested in any feedback (good or bad) as I've only been able to test using a VM set-up. |
Beta Was this translation helpful? Give feedback.
-
If a job is cancelled by the user, I get the following error: 2022/04/18 19:38:03:ERROR: float division by zero Here is the sacct output: |
Beta Was this translation helpful? Give feedback.
-
Apologies, this bug was fixed recently fixed with a commit to the 2.6 branch. Can you try updating your checked out copy please?
Many thanks. |
Beta Was this translation helpful? Give feedback.
-
Excellent, good to hear - thanks for testing :-) |
Beta Was this translation helpful? Give feedback.
-
I got another error: MaxRSS could be decimal and function get_kbytes_from_str only handles int. #sacct -j 5188910 -P -n --fields='JobId,User,Group,Partition,Start,End,State,ReqMem,MaxRSS,NCPUS,TotalCPU,NNodes,WorkDir,Elapsed,ExitCode,Comment,Cluster,NodeList,TimeLimit,TimelimitRaw,JobIdRaw,JobName' |
Beta Was this translation helpful? Give feedback.
-
Thanks the feedback. I have corrected the function in commit ea1679c Please run |
Beta Was this translation helpful? Give feedback.
-
Due to the large number of changes to Slurm-Mail for the 2.6 version and due to the new spool file format I have created, I have renamed the 2.6 branch to 3.0. |
Beta Was this translation helpful? Give feedback.
-
Requested features were published in version 3.0. |
Beta Was this translation helpful? Give feedback.
-
This is a very useful project and it helps users to receive detailed information when their jobs finish. It will be useful if the email can include cpu and memory efficiency like the walltime. It is not difficult to use "seff" like
Get additional info from seff.
cmd = f"{seff_exe} {job_id}"
rc, stdout, stderr = run_command(cmd)
if rc == 0:
seff_dict = {}
for i in stdout.split("\n"):
x = i.split(": ", 1)
if len(x) == 2:
seff_dict[x[0]] = x[1]
job.cpu_efficiency = seff_dict['CPU Efficiency']
job.cpu_utilized = seff_dict['CPU Utilized']
job.mem_efficiency = seff_dict['Memory Efficiency']
job.mem_utilized = seff_dict['Memory Utilized']
Beta Was this translation helpful? Give feedback.
All reactions