[arvados] updated: 2.6.0-84-ga3fdc9d54

git repository hosting git at public.arvados.org
Mon May 1 19:41:18 UTC 2023


Summary of changes:
 lib/dispatchcloud/container/queue.go | 10 ++++++++++
 1 file changed, 10 insertions(+)

       via  a3fdc9d5430346368939904f10737317433c2867 (commit)
      from  aba09e96f2bbb8e1e45c941a7e8c62bb772344e8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit a3fdc9d5430346368939904f10737317433c2867
Author: Tom Clegg <tom at curii.com>
Date:   Mon May 1 15:40:12 2023 -0400

    20457: Don't keep non-"tmp" mounts in memory at all.
    
    Only "tmp" mounts are relevant for dispatch.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>

diff --git a/lib/dispatchcloud/container/queue.go b/lib/dispatchcloud/container/queue.go
index 5f6fdefbd..ab686e85c 100644
--- a/lib/dispatchcloud/container/queue.go
+++ b/lib/dispatchcloud/container/queue.go
@@ -495,6 +495,16 @@ func (cq *Queue) fetchAll(initialParams arvados.ResourceListParams) ([]arvados.C
 			break
 		}
 
+		// Conserve memory by deleting mounts that aren't
+		// relevant to choosing the instance type.
+		for _, c := range list.Items {
+			for path, mnt := range c.Mounts {
+				if mnt.Kind != "tmp" {
+					delete(c.Mounts, path)
+				}
+			}
+		}
+
 		results = append(results, list.Items...)
 		if len(params.Order) == 1 && params.Order == "uuid" {
 			params.Filters = append(initialParams.Filters, arvados.Filter{"uuid", ">", list.Items[len(list.Items)-1].UUID})

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list