19847: crunch-run should provide --ram-cache explicitly
[arvados.git] / 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{}