Skip to content

gosimple + go 1.23 consume all available RAM #4908

@olegrok

Description

@olegrok

Welcome

  • Yes, I'm using a binary release within 2 latest releases. Only such installations are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've read the typecheck section of the FAQ.
  • Yes, I've tried with the standalone linter if available (e.g., gocritic, go vet, etc.).
  • I agree to follow this project's Code of Conduct

Description of the problem

It is quite inadequate to use more than 60 GB of RAM.

изображение

Version of golangci-lint

$ golangci-lint --version
golangci-lint has version 1.60.1 built with go1.22.5 from v1.60.1 on 19700101-00:00:00

Configuration

golangci-lint run -j 4 -v --go 1.23 --enable-only gosimple

Go environment

$ go version && go env
go version go1.23.0 linux/amd64
GO111MODULE='on'
GOARCH='amd64'
GOBIN=''
GOCACHE='/tmp/sha256-PObLD2gU7qm3qL3G4JqrBtqTw5i08ab+oNSM+GAQu60=/go-cache'
GOENV='/home/oleg/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS='-modcacherw -mod=vendor -trimpath'
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/tmp/sha256-PObLD2gU7qm3qL3G4JqrBtqTw5i08ab+oNSM+GAQu60=/go/mod/cache'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/tmp/nix-shell.S8T84v/go'
GOPRIVATE=''
GOPROXY='off'
GOROOT='/nix/store/0k144pnsvy0wa3dcl1y3df7d4zskylc4-go-1.23.0/share/go'
GOSUMDB='off'
GOTMPDIR=''
GOTOOLCHAIN='local'
GOTOOLDIR='/nix/store/0k144pnsvy0wa3dcl1y3df7d4zskylc4-go-1.23.0/share/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.23.0'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/home/oleg/.config/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='0'
GOMOD='/home/oleg/Projects/toy-cluster/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/nix-shell.S8T84v/go-build1273801823=/tmp/go-build -gno-record-gcc-switches'

Verbose output of running

golangci-lint run -j 4 -v --go 1.23 --enable-only gosimple
INFO golangci-lint has version 1.60.1 built with go1.22.5 from v1.60.1 on 19700101-00:00:00 
INFO [config_reader] Config search paths: [./ /home/oleg/Projects/toy-cluster /home/oleg/Projects /home/oleg /home /] 
INFO [config_reader] Used config file .golangci.yml 
INFO [lintersdb] Active 1 linters: [gosimple]     
INFO [loader] Using build tags: [test]            
INFO [loader] Go packages loading at mode 575 (types_sizes|compiled_files|exports_file|imports|deps|files|name) took 1.697405389s 
INFO [runner/filename_unadjuster] Pre-built 0 adjustments in 14.087863ms 
INFO Memory: 577 samples, avg is 18567.3MB, max is 34902.9MB 
INFO Execution took 1m0.053878382s                
Killed

A minimal reproducible example or link to a public repository

I run linter over my private project

Validation

  • Yes, I've included all information above (version, config, etc.).

Supporter

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions