From abfdfcbeecfaa1186df43b3989cba3589746e805 Mon Sep 17 00:00:00 2001 From: "Mark A. Grondona" <mgrondona@llnl.gov> Date: Mon, 3 Oct 2011 14:37:38 -0700 Subject: [PATCH] task/cgroup: Expand debug message during memcg creation Add the amount of memory allocated by slurm to the job or step to the debug message in memcg_initialize(). Also, change the message from debug to info, so that a user can see the information by using --slurmd-debug=1. --- src/plugins/task/cgroup/task_cgroup_memory.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/task/cgroup/task_cgroup_memory.c b/src/plugins/task/cgroup/task_cgroup_memory.c index 95734afbb80..d903e608a1d 100644 --- a/src/plugins/task/cgroup/task_cgroup_memory.c +++ b/src/plugins/task/cgroup/task_cgroup_memory.c @@ -262,8 +262,11 @@ static int memcg_initialize (xcgroup_ns_t *ns, xcgroup_t *cg, xcgroup_set_uint64_param (cg, "memory.limit_in_bytes", mlb); xcgroup_set_uint64_param (cg, "memory.memsw.limit_in_bytes", mls); - debug("task/cgroup: %s: mem.limit=%"PRIu64"MB memsw.limit=%"PRIu64"MB", - path, mlb/(1024*1024), mls/(1024*1024)); + info ("task/cgroup: %s: alloc=%luMB mem.limit=%luMB memsw.limit=%luMB", + path, + (unsigned long) mem_limit, + (unsigned long) mlb/(1024*1024), + (unsigned long) mls/(1024*1024)); return 0; } -- GitLab