Skip to content

Commit

Permalink
change the gcsfuse memory usage logging frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
songjiaxun committed Apr 4, 2024
1 parent 56ad0a8 commit 1370c77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sidecar_mounter/sidecar_mounter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1370c77

Please sign in to comment.