Skip to content

Commit 68e144c

Browse files
committed
Set shim max procs via env var
This sets the shim's max procs to 2, like we already have hard coded in the shim, with the env var so that it is set at go runtime boot. Signed-off-by: Michael Crosby <[email protected]>
1 parent f15c3be commit 68e144c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

runtime/shim/client/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ func newCommand(binary, daemonAddress string, debug bool, config shim.Config, so
136136
// will be mounted by the shim
137137
cmd.SysProcAttr = getSysProcAttr()
138138
cmd.ExtraFiles = append(cmd.ExtraFiles, socket)
139+
cmd.Env = append(os.Environ(), "GOMAXPROCS=2")
139140
if debug {
140141
cmd.Stdout = os.Stdout
141142
cmd.Stderr = os.Stderr

0 commit comments

Comments
 (0)