From: Peter Amstutz Date: Tue, 6 Dec 2022 20:26:47 +0000 (-0500) Subject: 19847: crunch-run should provide --ram-cache explicitly X-Git-Tag: 2.5.0~7^2~5 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/7d79a88a17d851fab8e4a7235448682fb269b374 19847: crunch-run should provide --ram-cache explicitly Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- diff --git a/lib/crunchrun/crunchrun.go b/lib/crunchrun/crunchrun.go index 51e154c0ec..52e1bf63a5 100644 --- a/lib/crunchrun/crunchrun.go +++ b/lib/crunchrun/crunchrun.go @@ -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{}