Skip to content

substantially higher CPU after upgrading to v9.17.0 #3608

@clambin

Description

@clambin

Issue tracker is used for reporting bugs and discussing new features. Please use
stackoverflow for supporting issues.

Since I upgraded my application to v9.17.0, I've seen a substantial increase in CPU usage: whereas previously the app was using no CPU when dormant, after the upgrade it's consistently using 10% CPU.

The only difference is an upgrade from v9.16.0 to v9.17.0.

Expected Behavior

Would expect same resource usage as on v9.16.0.

Current Behavior

CPU is much higher, even when dormant.

Steps to Reproduce

My app creates a simple client as follows:

		client := redis.NewClient(&redis.Options{
			Addr:     configuration.Redis.Addr,
			Username: configuration.Redis.Username,
			Password: configuration.Redis.Password,
			DB:       configuration.Redis.Database,
		})

Running pprof, I see a 60% of time spent in syscall.Syscall6, triggered by syscall.EpollWait (50%), called by runtime.findRunnable. So, it looks like something is constantly waking up the scheduler.

Image

Context (Environment)

  • Go 1.25.4
  • Runtime: linux 6.8.0-1040-raspi running on arm64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions