mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Merge pull request #3970 from benbuzbee:gomaxprocs
PiperOrigin-RevId: 335516972
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user