This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
wiki:old:customization_tips [2015/04/03 15:14] – neyron | wiki:customization_tips [2019/02/20 18:50] – [Naming interactive jobs by default] neyron | ||
---|---|---|---|
Line 40: | Line 40: | ||
Examples (differences from the original script are set in bold): | Examples (differences from the original script are set in bold): | ||
- | * [[job_resource_manager_2_memory_banks.pl]] | + | * [[wiki:old:job_resource_manager_2_memory_banks.pl]] |
- | * [[job_resource_manager_altix_350.pl]] | + | * [[wiki:old:job_resource_manager_altix_350.pl]] |
===== Use fake-numa to add memory management into cpusets ===== | ===== Use fake-numa to add memory management into cpusets ===== | ||
Line 973: | Line 973: | ||
$job_name = ' | $job_name = ' | ||
} | } | ||
+ | </ | ||
+ | |||
+ | ===== Filter resources by job walltime ===== | ||
+ | Description: | ||
+ | |||
+ | First we define the '' | ||
+ | <code bash> | ||
+ | oarproperty -a max_walltime | ||
+ | for node in <set 1>; do | ||
+ | oarnodesetting -h node -p max_walltime=< | ||
+ | done | ||
+ | for node in <set 2>; do | ||
+ | oarnodesetting -h node -p max_walltime=< | ||
+ | done | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | A node with the '' | ||
+ | <code perl> | ||
+ | if ((($jobType eq " | ||
+ | foreach my $mold (@{$ref_resource_list}) { | ||
+ | if (defined($mold-> | ||
+ | foreach my $r (@{$mold-> | ||
+ | my $resource = $r-> | ||
+ | if ($resource =~ / | ||
+ | my $max_walltime = $mold-> | ||
+ | my $current_properties = $r-> | ||
+ | |||
+ | if ($current_properties ne "" | ||
+ | $r-> | ||
+ | } else { | ||
+ | $r-> | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
</ | </ | ||
Line 1192: | Line 1230: | ||
Then try oarsh <TAB> | Then try oarsh <TAB> | ||
- | ===== PROMPT BASH for Interactive jobs ===== | + | ===== OAR aware shell prompt |
If you want to have a bash prompt with your job id and the remaining walltime then you can add in your ~/.bashrc: | If you want to have a bash prompt with your job id and the remaining walltime then you can add in your ~/.bashrc: | ||