mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
- An opt-in feature has been added to the agent to allow deprioritizing non coder-related processes for CPU by setting their niceness level to 10. - Opting in to the feature requires setting CODER_PROC_PRIO_MGMT to a non-empty value.
25 lines
416 B
Go
25 lines
416 B
Go
//go:build !linux
|
|
// +build !linux
|
|
|
|
package agentproc
|
|
|
|
import (
|
|
"github.com/spf13/afero"
|
|
)
|
|
|
|
func (p *Process) Niceness(sc Syscaller) (int, error) {
|
|
return 0, errUnimplemented
|
|
}
|
|
|
|
func (p *Process) SetNiceness(sc Syscaller, score int) error {
|
|
return errUnimplemented
|
|
}
|
|
|
|
func (p *Process) Cmd() string {
|
|
return ""
|
|
}
|
|
|
|
func List(fs afero.Fs, syscaller Syscaller) ([]*Process, error) {
|
|
return nil, errUnimplemented
|
|
}
|