diff options
author | Simon Rettberg | 2017-05-02 14:53:12 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-05-02 14:53:12 +0200 |
commit | 96ecd59e4f23c3a0a954d39fb8a1435609e77345 (patch) | |
tree | e6ec0dc8f45735d936d2181925eab52a9b9e91a7 /core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes | |
parent | [vmchooser2] Set --pvs-checked if $SLX_PVS_DEFAULT == "ON" (diff) | |
download | mltk-96ecd59e4f23c3a0a954d39fb8a1435609e77345.tar.gz mltk-96ecd59e4f23c3a0a954d39fb8a1435609e77345.tar.xz mltk-96ecd59e4f23c3a0a954d39fb8a1435609e77345.zip |
[run-virt] Increase mem reserved for host if using nvidia drivers
Diffstat (limited to 'core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes')
-rw-r--r-- | core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/set_runvirt_hardware_variables.inc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/set_runvirt_hardware_variables.inc b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/set_runvirt_hardware_variables.inc index a2eb18f0..1319163d 100644 --- a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/set_runvirt_hardware_variables.inc +++ b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/set_runvirt_hardware_variables.inc @@ -35,8 +35,13 @@ set_virt_memory() { local min=768 local reserve max if mount | grep -q '^/dev/sd.*on.*/tmp'; then - reserve=20 - max=1800 + if lsmod | grep -q '^nvidia'; then + max=2800 + reserve=28 + else + max=1800 + reserve=21 + fi else reserve=65 max=8192 |