Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does a user watch the Karma ? #65

Open
bzizou opened this issue Oct 16, 2024 · 4 comments
Open

How does a user watch the Karma ? #65

bzizou opened this issue Oct 16, 2024 · 4 comments

Comments

@bzizou
Copy link
Contributor

bzizou commented Oct 16, 2024

With OAR2, users could see the karma associated to the scheduling of a job with oarstat, for example:

26199695  R jovanovn    0:20:40 R=2,W=1:0:0,J=B,P=epimed,T=heterogeneous|verysmall (Karma=-0.016,quota_ok)
26199698  R collaog     0:18:08 R=1,W=24:0:0,J=B,N=AN40LGMcBn5078,P=elmerice,T=heterogeneous|veryverysmall (Karma=0.005,quota_ok)

The Karma is a part of the string contained into the message field of the jobs table. With OAR3, it seems that the message does not contains any Karma information, and anyway, the message is not printed by oarstat.

How does the user know about the Karma with OAR3?

@augu5te
Copy link
Contributor

augu5te commented Oct 23, 2024

If fairshare scheduling is enable, Karma value is normally added in job_message function:

message += " " + "(Karma={})".format(job.karma)

So fixing the printing issue of oarstat should be sufficient.

@bzizou
Copy link
Contributor Author

bzizou commented Oct 23, 2024

Well, this leads to another question: actualy, fairsharing was not enabled into my configuration, because the JOB_PRIORITY configuration variable is missing from the default oar.conf file I think...

@augu5te
Copy link
Contributor

augu5te commented Oct 23, 2024

Sure fairsharing is disabled by default ( JOB_PRIORITY="FIFO") and oar.conf needs some care and polish

@bzizou
Copy link
Contributor Author

bzizou commented Oct 23, 2024

Actually, oarstat, in the default mode, prints the message, but the Karma appears in the message at some times, but not once the job is running...

root@dahu-oar3:~# oarstat 
                                                                                                          
  Job id   State     User           Duration   System message                                    Queue    
 ──────────────────────────────────────────────────────────────────────────────────────────────────────── 
  19128    Running   marets         0:01:07    R=32,J=I,Q=default                                default  
  19129    Running   bzizou         0:00:04    R=1,W=1800,J=I,Q=default (Karma=0.0)              default  

A few seconds later:

root@dahu-oar3:~# oarstat 
                                                                       
  Job id   State     User     Duration   System message       Queue    
 ───────────────────────────────────────────────────────────────────── 
  19128    Running   marets   0:01:37    R=32,J=I,Q=default   default  
  19129    Running   bzizou   0:00:34    R=1,J=I,Q=default    default  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants