Commit fec04fd
runsc: don't forward GOMAXPROCS environment variable to fsgofers
This is not strictly required for runsc-sandbox since
runsc/boot/loader.go:New() unconditionally overrides the default GOMAXPROCS via
a call to gomaxprocs.SetBase().
Alternatively, we could filter out the GOMAXPROCS environment variable from all
shim invocations of runsc (in e.g.
pkg/shim/v1/runsccmd/runsc.go:runsccmd.Runsc.command()). But since said
invocations of runsc run in containerd's cgroups and are thus subject to its
resource restrictions, it's not clear that this would be better.
PiperOrigin-RevId: 8280790331 parent 2e0758b commit fec04fd
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
1309 | 1310 | | |
1310 | 1311 | | |
1311 | 1312 | | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
1312 | 1317 | | |
1313 | 1318 | | |
1314 | 1319 | | |
| |||
0 commit comments