Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

How do I run my case in the economy queue on Derecho?

KeerZ

Member
Hi all,

I am trying to change the job priority of my simulation to "economy" on Derecho. I have tried ./xmlchange JOB_QUEUE=economy, but it says "ERROR: Unknown Job Queue specified use --force to set". I wonder how to set the queue to economy to save some core hours. Thank you!
 

Chiva

New Member
I have the same problem!
Here is the response from the NCAR officer, but I am still not clear to solve this problem.
this tag of CESM does not seem to have logic in the CIME scripts to handle how priority is done on Derecho. Folks in the CESM User Forum can probably give more advice (including which tag to switch to for Derecho support), but for this particular problem you could edit your env_batch.xml to be something like this:

<submit_args>
<arg flag="-q" name="main"/>
<arg flag="-l job_priority=" name="$JOB_QUEUE"/>
<arg flag="-l walltime=" name="$JOB_WALLCLOCK_TIME"/>
<arg flag="-A" name="$PROJECT"/>
</submit_args>
 

slevis

Moderator
Staff member
I'm not expert on derecho ...yet :-) but there is no economy queue on derecho. From my notes (when I attended the intro to derecho talk) there are three routing queues:
- main (default)
- preempt (preemption queues use cycles at lower costs but jobs stop unexpectedly)
- develop

I recommend watching the intro to derecho talk on the NCAR CISL website.
 

erik

Erik Kluzek
CSEG and Liaisons
Staff member
Unfortunately documentation on the queues for Derecho aren't available yet from CISL. But, here is where it will appear as well as documentation that is currently available...


The little amount that I know is that you don't use queues to change the priority. But, there is way to change the priority of a job when
it's submitted (the -p option to qsub).

For CESM this is set by the JOB_PRIORITY XML variable which has the familiar: economy, regular, and premium settings.
This does need you to have one of the very latest versions of CESM.
 

erik

Erik Kluzek
CSEG and Liaisons
Staff member
Since, this is more of a porting issue. I'm moving to that forum.

Also alerting @jedwards in case he has anything to add.
 

jedwards

CSEG and Liaisons
Staff member
This feature is only supported in cesm version 2_3_alpha16g and newer.
To use it
./xmlchange JOB_PRIORITY=economy
 

Chiva

New Member
This feature is only supported in cesm version 2_3_alpha16g and newer.
To use it
./xmlchange JOB_PRIORITY=economy
for CESM 2.1.4 (this is the version for 2023 CESM tutorial), I tried to use ./xmlchange JOB_PRIORITY=economy, it does not work. So how can we change the priority to economy for this version?
 

jedwards

CSEG and Liaisons
Staff member
You need to modify the file cime/config/cesm/machines/config_batch.xml and add a line
<arg flag="-l job_priority=" name="economy"/> in the derecho entry.
 

Chiva

New Member
You need to modify the file cime/config/cesm/machines/config_batch.xml and add a line
<arg flag="-l job_priority=" name="economy"/> in the derecho entry.
I have added this line in cime/config/cesm/machines/config_batch.xml (see following), but it does not work.

<machine MACH="derecho">
<DESC>NCAR AMD EPYC </DESC>
<NODENAME_REGEX>de.*.hpc.ucar.edu</NODENAME_REGEX>
<OS>CNL</OS>
<COMPILERS>intel</COMPILERS>
<arg flag="-l job_priority=" name="economy"/>
<!-- <COMPILERS>intel,gnu,cray,nvhpc,intel-oneapi,intel-classic</COMPILERS> -->
<MPILIBS>mpich</MPILIBS>
<CIME_OUTPUT_ROOT>$ENV{SCRATCH}</CIME_OUTPUT_ROOT>
………………………………………………………
 

jedwards

CSEG and Liaisons
Staff member
What you are showing me is a section of the config_machines.xml file with this line inserted - that is incorrect.
This line should be added to file config_batch.xml - not config_machines.xml
 

jedwards

CSEG and Liaisons
Staff member
We are working on a cesm2.1.5 tag and will include support for Job priority on derecho in the new tag.
 

lchahn

Lily Hahn
New Member
Hello! We are having the same issue, and wanted to check back if there is any progress on a 2.1.5 tag that enables running experiments in the economy queue? Thanks, Lily
 

jedwards

CSEG and Liaisons
Staff member
The 2.1.5 tag has been available for several weeks and does support using the economy priority on derecho.
After you create a case do
./xmlchange JOB_PRIORITY=economy
 

michelle_dvorak

Michelle Dvorak
New Member
The 2.1.5 tag has been available for several weeks and does support using the economy priority on derecho.
After you create a case do
./xmlchange JOB_PRIORITY=economy
Hi Dr. Edwards,

I see in my timing files almost identical costs between the same job I submitted in the regular and economy queues. Am I not to expect a reduction in cost from using the economy queue?

Thanks.
 

jedwards

CSEG and Liaisons
Staff member
I don't think that the calculation in the timing file accounts for the cost reduction of using the economy queue. Please refer to SAM for that.
 
Top