19847: crunch-run should provide --ram-cache explicitly
authorPeter Amstutz <peter.amstutz@curii.com>
Tue, 6 Dec 2022 20:26:47 +0000 (15:26 -0500)
committerPeter Amstutz <peter.amstutz@curii.com>
Tue, 6 Dec 2022 20:26:47 +0000 (15:26 -0500)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

lib/crunchrun/crunchrun.go

index 51e154c0ecfb3b978844947480f1efe7fe2f6fa9..52e1bf63a57037bc5a6184b88908bf5d6dcf6503 100644 (file)
@@ -435,7 +435,7 @@ func (runner *ContainerRunner) SetupMounts() (map[string]bindmount, error) {
                }
                arvMountCmd = append(arvMountCmd, "--disk-cache", "--disk-cache-dir", keepcachedir, "--file-cache", fmt.Sprintf("%d", runner.Container.RuntimeConstraints.KeepCacheDisk))
        } else if runner.Container.RuntimeConstraints.KeepCacheRAM > 0 {
-               arvMountCmd = append(arvMountCmd, "--file-cache", fmt.Sprintf("%d", runner.Container.RuntimeConstraints.KeepCacheRAM))
+               arvMountCmd = append(arvMountCmd, "--ram-cache", "--file-cache", fmt.Sprintf("%d", runner.Container.RuntimeConstraints.KeepCacheRAM))
        }
 
        collectionPaths := []string{}