Skip to content

Commit

Permalink
Merge pull request #3098 from xiao-jay/release-1.8-dump-more-info
Browse files Browse the repository at this point in the history
[cherry-pick for release-1.8]:feat:add printing of MemStats in dumpall
  • Loading branch information
volcano-sh-bot committed Sep 25, 2023
2 parents 18dd077 + 522e3bf commit 14570c6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/scheduler/cache/dumper.go
Expand Up @@ -19,6 +19,7 @@ package cache
import (
"os"
"os/signal"
"runtime"
"strings"
"syscall"

Expand All @@ -45,6 +46,14 @@ func (d *Dumper) dumpAll() {
for _, jobInfo := range snapshot.Jobs {
klog.Info(d.printJobInfo(jobInfo))
}

d.displaySchedulerMemStats()
}

func (d *Dumper) displaySchedulerMemStats() {
var m runtime.MemStats
runtime.ReadMemStats(&m)
klog.Infof("volcano scheduler memory stat: %+v\n", m)
}

func (d *Dumper) printNodeInfo(node *api.NodeInfo) string {
Expand Down

0 comments on commit 14570c6

Please sign in to comment.