{"id":865,"date":"2020-12-01T12:28:30","date_gmt":"2020-12-01T11:28:30","guid":{"rendered":"http:\/\/calculs.univ-cotedazur.fr\/?page_id=865"},"modified":"2025-09-15T10:26:07","modified_gmt":"2025-09-15T08:26:07","slug":"priority-for-pending-jobs","status":"publish","type":"page","link":"https:\/\/calculs.univ-cotedazur.fr\/?page_id=865&lang=en","title":{"rendered":"Priority for pending jobs"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_11 counter-hierarchy counter-decimal ez-toc-grey\">\n<nav><ul class=\"ez-toc-list ez-toc-list-level-1\"><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/calculs.univ-cotedazur.fr\/?page_id=865&amp;lang=en#Usage_history\" title=\"Usage history\">Usage history<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/calculs.univ-cotedazur.fr\/?page_id=865&amp;lang=en#Low_priority_partitions\" title=\"Low priority partitions\">Low priority partitions<\/a><ul class=\"ez-toc-list-level-4\"><li class=\"ez-toc-heading-level-4\"><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/calculs.univ-cotedazur.fr\/?page_id=865&amp;lang=en#A100_within_the_gpu_partition\" title=\"A100 within the gpu partition\">A100 within the gpu partition<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Usage_history\"><\/span>Usage history<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The order of execution of queued jobs is determined according to a system of priorities. 3 parameters are taken into account: <\/p>\n\n\n\n<ul><li>The length of time your job has been pending.<\/li><li>Recent job history of the user and the other members of its account (fairshare).<\/li><li>The requested resources for this job (nodes and walltime).<\/li><\/ul>\n\n\n\n<p>The <strong>squeue <\/strong>command lists your pending jobs starting from the highest priority. <\/p>\n\n\n\n<p>The priority of a job is expressed in the form of a value between 0 and 1. This value is defined by taking into account the 3 parameters mentioned previously, which each have a defined weight. The closer the value is to 1, the more priority the job will be. To know the priority of your pending jobs, use the command: <\/p>\n\n\n\n<pre class=\"wp-block-verse\">sprio -n<\/pre>\n\n\n\n<p>To compare priorities between different jobs (here 10345 and 10346) :<\/p>\n\n\n\n<pre class=\"wp-block-verse\">sprio -n --jobs=10345,10346<\/pre>\n\n\n\n<p>To know the value of your current fairshare and that of your Slurm account (thus taking into account the fairshare of your colleagues): <\/p>\n\n\n\n<pre class=\"wp-block-verse\">sshare -A your_account_name<\/pre>\n\n\n\n<p>If your fairshare has a low value (FairShare column), it will increase if you do not submit a job for several days. <\/p>\n\n\n\n<h3><span class=\"ez-toc-section\" id=\"Low_priority_partitions\"><\/span>Low priority partitions<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Some machines, funded by a laboratory or a company, are also available to all users but with a lower priority. This means that if jobs are pending (Pending state in Slurm) for the same type of node, the job sent to a higher priority queue will be executed before the others. Job preemption is not applied on the cluster, i.e. no running job will be stopped to give way to a job submitted on a higher priority queue.<\/p>\n\n\n\n<h4><span class=\"ez-toc-section\" id=\"A100_within_the_gpu_partition\"><\/span>A100 within the gpu partition<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>In order to explicitly specify that you want to use an A100 card, mention the following Slurm option:<\/p>\n\n\n\n<pre class=\"wp-block-verse\"><code>#SBATCH --gres=gpu:a100:1<\/code>\n<code>#SBATCH --partition=gpu<\/code><\/pre>\n\n\n\n<p>Requests to use A100 GPUs are non-priority. If there are no free A100s when you submit your job, be aware that it could potentially remain pending for a long time because other users have priority. It is therefore advisable to first check the status of the gpu03 node (equipped with A100s). To do so:<\/p>\n\n\n\n<pre class=\"wp-block-verse\">sinfo --Format Partition,NodeList,NodeAI,CPUsState -p gpu<\/pre>\n\n\n\n<p>If CPUS(A) = 24 or more and NODES(A)=6, all GPUs are busy.<\/p>\n\n\n\n<p> If you do not specify the type of GPU you want, your job can be processed by any GPU, depending on availability:<\/p>\n\n\n\n<pre class=\"wp-block-verse\"><code>#SBATCH --gres=gpu:1<\/code>\n<code>#SBATCH --partition=gpu<\/code><\/pre>\n\n\n\n<p>More information about GPU jobs can be read <a href=\"https:\/\/calculs.univ-cotedazur.fr\/?page_id=564&amp;lang=en#GPU\">on this page<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Usage history The order of execution of queued jobs is determined according to a system of priorities. 3 parameters are taken into account: The length of time your job has been pending. Recent job history of the user and the &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":580,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=\/wp\/v2\/pages\/865"}],"collection":[{"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=865"}],"version-history":[{"count":21,"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=\/wp\/v2\/pages\/865\/revisions"}],"predecessor-version":[{"id":3130,"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=\/wp\/v2\/pages\/865\/revisions\/3130"}],"up":[{"embeddable":true,"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=\/wp\/v2\/pages\/580"}],"wp:attachment":[{"href":"https:\/\/calculs.univ-cotedazur.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}