Skip to content

Commit 2fc6583

Browse files
committed
use mem in Mb, same default amount for all schedulers
1 parent 776fd35 commit 2fc6583

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

inst/GCS.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
# Change to *env* if scheduler should make binding decision but not do the binding itself.
3737
#$ -binstance set
3838

39-
# Allows to set resource requests like memory (1 GB [in bytes])
39+
# Allows to set resource requests like memory (4 GB [in bytes])
4040
# to set runtime limits (1 hour [in seconds])
4141
# or to influence scheduler resource selection (job will be executed in all.q queue)
42-
#$ -l mem_free={{ memory | 1073741824 }},h_rt={{ walltime | 3600 }},q=all.q
42+
#$ -l mem_free=$(( 1024 * 1024 * {{ memory | 4096 }} )),h_rt={{ walltime | 3600 }},q=all.q
4343

4444
# Tag the job so that it can be identified later on (e.g. in a JSV script before
4545
# submission so the job can get adapted or for filtering later on)

inst/OCS.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
#$ -bunit C
2929
#$ -bamount {{ threads | 1 }}
3030

31-
# Allows to set resource requests like memory (default 1 GB in bytes)
31+
# Allows to set resource requests like memory (default 4 GB in bytes)
3232
# to set runtime limits (default 1 hour in seconds)
3333
# or to influence scheduler resource selection (job will be executed in all.q)
34-
#$ -l mem_free={{ memory | 1073741824 }},h_rt={{ runtime | 3600 }},q=all.q
34+
#$ -l mem_free=$(( 1024 * 1024 * {{ memory | 4096 }} )),h_rt={{ walltime | 3600 }},q=all.q
3535

3636
ulimit -v $(( 1024 * {{ memory | 4096 }} - 25 ))
3737
CMQ_AUTH={{ auth }} R --no-save --no-restore -e 'clustermq:::worker("{{ master }}")'

vignettes/userguide.Rmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,8 @@ to a file and have `clustermq.template` point to it.
515515
#$ -bstrategy packed # *Pack* cores on a host to share NUMA nodes and caches
516516
#$ -btype host # Bind per host
517517
#$ -binstance set # Use HWLOC to bind cores
518-
#$ -l mem_free={{ memory | 1073741824 }},h_rt={{ walltime | 3600 }},q=all.q # Resource requests and limits
518+
## Resource requests and limits (convert memory from Mb to bytes)
519+
#$ -l mem_free=$(( 1024 * 1024 * {{ memory | 4096 }} )),h_rt={{ walltime | 3600 }},q=all.q
519520
#$ -ac application=clustermq,hostname={{ master }} # Tag the job
520521
521522
ulimit -v $(( 1024 * {{ memory | 4096 }} ))
@@ -569,7 +570,8 @@ to a file and have `clustermq.template` point to it.
569570
#$ -pe mytestpe {{ cores | 1 }} # Allocate one slot per task
570571
#$ -bunit C # Allocate *power core(s)* per slot
571572
#$ -bamount {{ threads | 1 }} # Allocate *one* power core per slot
572-
#$ -l mem_free={{ memory | 1073741824 }},h_rt={{ walltime | 3600 }},q=all.q # Resource requests and limits
573+
## Resource requests and limits (convert memory from Mb to bytes)
574+
#$ -l mem_free=$(( 1024 * 1024 * {{ memory | 4096 }} )),h_rt={{ walltime | 3600 }},q=all.q
573575
#$ -ac application=clustermq,hostname={{ master }} # Tag the job
574576
575577
ulimit -v $(( 1024 * {{ memory | 4096 }} ))

0 commit comments

Comments
 (0)