Skip to content

Commit 775c941

Browse files
Furistoroboquat
authored andcommitted
Add additional logging for io limiting
1 parent 92641ca commit 775c941

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/ws-daemon/pkg/cgroup/plugin_iolimit_v2.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ func (c *IOLimiterV2) Type() Version { return Version2 }
2727

2828
func (c *IOLimiterV2) Apply(ctx context.Context, basePath, cgroupPath string) error {
2929
go func() {
30+
log.WithField("cgroupPath", cgroupPath).Debug("starting io limiting")
3031
// We are racing workspacekit and the interaction with disks.
3132
// If we did this just once there's a chance we haven't interacted with all
3233
// devices yet, and hence would not impose IO limits on them.
@@ -47,6 +48,7 @@ func (c *IOLimiterV2) Apply(ctx context.Context, basePath, cgroupPath string) er
4748
if err != nil {
4849
log.WithError(err).WithField("cgroupPath", cgroupPath).Error("cannot write IO limits")
4950
}
51+
log.WithField("cgroupPath", cgroupPath).Debug("stopping io limiting")
5052
return
5153
case <-ticker.C:
5254
err := c.writeIOMax(filepath.Join(basePath, cgroupPath))

0 commit comments

Comments
 (0)