[ARVADOS] updated: ade6281bfee602253f2d42c8337f5c63373f0429

git at public.curoverse.com git at public.curoverse.com
Thu Jun 12 14:04:12 EDT 2014


Summary of changes:
 .../crunchstat/src/arvados.org/crunchstat/crunchstat.go     | 13 +++++++++++++
 1 file changed, 13 insertions(+)

       via  ade6281bfee602253f2d42c8337f5c63373f0429 (commit)
      from  13254dc054d9f2f50cc0c5f878f6ecfb6fcbed7f (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 ade6281bfee602253f2d42c8337f5c63373f0429
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Thu Jun 12 14:04:08 2014 -0400

    Crunchstat logs where it reads its stats from.  refs #2882

diff --git a/services/crunch/crunchstat/src/arvados.org/crunchstat/crunchstat.go b/services/crunch/crunchstat/src/arvados.org/crunchstat/crunchstat.go
index 09a99e5..3544e74 100644
--- a/services/crunch/crunchstat/src/arvados.org/crunchstat/crunchstat.go
+++ b/services/crunch/crunchstat/src/arvados.org/crunchstat/crunchstat.go
@@ -75,6 +75,19 @@ func PollCgroupStats(cgroup_path string, stderr chan string, poll int64) {
 	cpuset_cpus := FindStat(cgroup_path, "cpuset", "cpus")
 	memory_stat := FindStat(cgroup_path, "memory", "stat")
 
+	if cpuacct_stat != "" {
+		stderr <- fmt.Sprintf("crunchstat: reading stats from ", cpuacct_stat)
+	}
+	if blkio_io_service_bytes != "" {
+		stderr <- fmt.Sprintf("crunchstat: reading stats from ", blkio_io_service_bytes)
+	}
+	if cpuset_cpus != "" {
+		stderr <- fmt.Sprintf("crunchstat: reading stats from ", cpuset_cpus)
+	}
+	if memory_stat != "" {
+		stderr <- fmt.Sprintf("crunchstat: reading stats from ", memory_stat)
+	}
+
 	var elapsed int64 = poll
 
 	for {

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list