From 1370c77284d4305e236bfc844a96ba4e5bfa497b Mon Sep 17 00:00:00 2001 From: Jiaxun Song Date: Thu, 4 Apr 2024 06:08:31 +0000 Subject: [PATCH] change the gcsfuse memory usage logging frequency --- pkg/sidecar_mounter/sidecar_mounter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/sidecar_mounter/sidecar_mounter.go b/pkg/sidecar_mounter/sidecar_mounter.go index 7331edd50..046532b44 100644 --- a/pkg/sidecar_mounter/sidecar_mounter.go +++ b/pkg/sidecar_mounter/sidecar_mounter.go @@ -126,9 +126,9 @@ func (m *Mounter) Mount(ctx context.Context, mc *MountConfig) error { return nil } -// logMemoryUsage logs gcsfuse process VmRSS (Resident Set Size) usage every minute. +// logMemoryUsage logs gcsfuse process VmRSS (Resident Set Size) usage every 30 seconds. func logMemoryUsage(ctx context.Context, pid int) { - ticker := time.NewTicker(time.Minute) + ticker := time.NewTicker(30 * time.Second) filepath := fmt.Sprintf("/proc/%d/status", pid) file, err := os.Open(filepath) if err != nil {