Skip to content
Snippets Groups Projects
Commit 8f403fad authored by Lukáš Krupčík's avatar Lukáš Krupčík
Browse files

Merge branch '47-vzorce-pomoci-arithmatex' into 'master'

Resolve "Vzorce pomocí - Arithmatex"

Closes #47

See merge request !105
parents 0efc13de ec503fd2
No related branches found
No related tags found
5 merge requests!368Update prace.md to document the change from qprace to qprod as the default...,!367Update prace.md to document the change from qprace to qprod as the default...,!366Update prace.md to document the change from qprace to qprod as the default...,!323extended-acls-storage-section,!105Resolve "Vzorce pomocí - Arithmatex"
Pipeline #
...@@ -26,6 +26,23 @@ CentOS ...@@ -26,6 +26,23 @@ CentOS
Mellanox Mellanox
``` ```
## Mathematical Formulae
Formulas are made with:
* https://facelessuser.github.io/pymdown-extensions/extensions/arithmatex/
* https://www.mathjax.org/
You can add formula to page like this:
```
$$
MAX\_FAIRSHARE * ( 1 - \frac{usage_{Project}}{usage_{Total}} )
$$
```
To enable the MathJX on page you need to enable it by adding line ```---8<--- "mathjax.md"``` at the end of file.
## Developemnt Environment ## Developemnt Environment
### MkDocs ### MkDocs
......
...@@ -26,7 +26,7 @@ Fair-share priority is used for ranking jobs with equal queue priority. ...@@ -26,7 +26,7 @@ Fair-share priority is used for ranking jobs with equal queue priority.
Fair-share priority is calculated as Fair-share priority is calculated as
![](../img/fairshare_formula.png) ---8<--- "fairshare_formula.md"
where MAX_FAIRSHARE has value 1E6, where MAX_FAIRSHARE has value 1E6,
usage<sub>Project</sub> is cumulated usage by all members of selected project, usage<sub>Project</sub> is cumulated usage by all members of selected project,
...@@ -52,7 +52,7 @@ Eligible time can be seen as eligible_time attribute of job. ...@@ -52,7 +52,7 @@ Eligible time can be seen as eligible_time attribute of job.
Job execution priority (job sort formula) is calculated as: Job execution priority (job sort formula) is calculated as:
![](../img/job_sort_formula.png) ---8<--- "job_sort_formula.md"
### Job backfilling ### Job backfilling
...@@ -68,3 +68,5 @@ It means, that jobs with lower execution priority can be run before jobs with hi ...@@ -68,3 +68,5 @@ It means, that jobs with lower execution priority can be run before jobs with hi
It is **very beneficial to specify the walltime** when submitting jobs. It is **very beneficial to specify the walltime** when submitting jobs.
Specifying more accurate walltime enables better scheduling, better execution times and better resource usage. Jobs with suitable (small) walltime could be backfilled - and overtake job(s) with higher priority. Specifying more accurate walltime enables better scheduling, better execution times and better resource usage. Jobs with suitable (small) walltime could be backfilled - and overtake job(s) with higher priority.
---8<--- "mathjax.md"
...@@ -26,7 +26,7 @@ Fair-share priority is used for ranking jobs with equal queue priority. ...@@ -26,7 +26,7 @@ Fair-share priority is used for ranking jobs with equal queue priority.
Fair-share priority is calculated as Fair-share priority is calculated as
![](../img/fairshare_formula.png) ---8<--- "fairshare_formula.md"
where MAX_FAIRSHARE has value 1E6, where MAX_FAIRSHARE has value 1E6,
usage<sub>Project</sub> is cumulated usage by all members of selected project, usage<sub>Project</sub> is cumulated usage by all members of selected project,
...@@ -53,7 +53,7 @@ Eligible time can be seen as eligible_time attribute of job. ...@@ -53,7 +53,7 @@ Eligible time can be seen as eligible_time attribute of job.
Job execution priority (job sort formula) is calculated as: Job execution priority (job sort formula) is calculated as:
![](../img/job_sort_formula.png) ---8<--- "job_sort_formula.md"
### Job backfilling ### Job backfilling
...@@ -73,3 +73,5 @@ Specifying more accurate walltime enables better scheduling, better execution ti ...@@ -73,3 +73,5 @@ Specifying more accurate walltime enables better scheduling, better execution ti
### Job Placement ### Job Placement
Job [placement can be controlled by flags during submission](job-submission-and-execution/#job_placement). Job [placement can be controlled by flags during submission](job-submission-and-execution/#job_placement).
---8<--- "mathjax.md"
$$
MAX\_FAIRSHARE * ( 1 - \frac{usage_{Project}}{usage_{Total}} )
$$
$$
1000*queue\_priority + \frac{fairshare\_priority}{1000} + \frac{eligible\_time}{864000}
$$
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
config: ["MMLorHTML.js"],
jax: ["input/TeX", "output/HTML-CSS", "output/NativeMML"],
extensions: ["tex2jax.js", "MathMenu.js", "MathZoom.js"],
tex2jax: {
inlineMath: [ ["\\(","\\)"] ],
displayMath: [ ["\\[","\\]"] ]
},
TeX: {
TagSide: "right",
TagIndent: ".8em",
MultLineWidth: "85%",
equationNumbers: {
autoNumber: "AMS",
}
},
displayAlign: 'left',
showProcessingMessages: false,
messageStyle: 'none'
});
</script>
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
...@@ -208,9 +208,13 @@ extra: ...@@ -208,9 +208,13 @@ extra:
markdown_extensions: markdown_extensions:
- codehilite - codehilite
- admonition - markdown.extensions.admonition:
- toc: - pymdownx.arithmatex:
permalink: '(H)' - markdown.extensions.toc:
slugify: !!python/name:pymdownx.slugs.uslugify
permalink:
- pymdownx.snippets:
base_path: docs.it4i/snippets
google_analytics: google_analytics:
- 'UA-90498826-1' - 'UA-90498826-1'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment