diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-10-05 16:00:01 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-05 16:00:01 -0700 |
commit | 1bc78d9fda68d7141ea63cd0c26dd0119ea49cf4 (patch) | |
tree | 09349ad7c53877485520dec52c6c2d0f11ca0740 /runsc | |
parent | 9e9fec3a09308a5df616c86b665b848eba2ba6f7 (diff) | |
parent | 12731f4271ea1c42d7501b9e626044cf9aa369ca (diff) |
Merge pull request #3970 from benbuzbee:gomaxprocs
PiperOrigin-RevId: 335516972
Diffstat (limited to 'runsc')
-rw-r--r-- | runsc/boot/loader.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runsc/boot/loader.go b/runsc/boot/loader.go index 2e652ddad..d5391f78a 100644 --- a/runsc/boot/loader.go +++ b/runsc/boot/loader.go @@ -282,6 +282,7 @@ func New(args Args) (*Loader, error) { args.NumCPU = runtime.NumCPU() } log.Infof("CPUs: %d", args.NumCPU) + runtime.GOMAXPROCS(args.NumCPU) if args.TotalMem > 0 { // Adjust the total memory returned by the Sentry so that applications that |