k3s/cmd
k8s-merge-robot 4466531382 Merge pull request #29094 from luxas/gomaxproc
Automatic merge from submit-queue

Remove GOMAXPROCS() calls because they are unnecessary


Now we're setting GOMAXPROCS when every binary starts up, but we don't have to do that anymore, since we've upgraded to Go 1.6

Documentation for it:

> func GOMAXPROCS(n int) int

> GOMAXPROCS sets the maximum number of CPUs that can be executing simultaneously and returns the previous setting. If n < 1, it does not change the current setting. The number of logical CPUs on the local machine can be queried with NumCPU. This call will go away when the scheduler improves. 

A simple program to prove it's unnecessary:

```go
package main
import (
    "fmt"
    "runtime"
)
func main(){
    numCPUBefore := runtime.GOMAXPROCS(runtime.NumCPU())
    numCPUAfter := runtime.GOMAXPROCS(runtime.NumCPU())
    fmt.Println(numCPUBefore, numCPUAfter)
}
```

Output with Go 1.4.2: `1 4`
Output with Go 1.6.2: `4 4`

So I think we should remove calls to GOMAXPROCS now, and it should be pretty straightforward

@thockin @wojtek-t @gmarek @lavalamp @vishh
2016-07-19 08:11:24 -07:00
..
gendocs Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
genkubedocs Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
genman Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
genswaggertypedocs Remove GOMAXPROCS() calls because they are unnecessary 2016-07-19 11:08:21 +03:00
genutils Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
genyaml Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
hyperkube Remove GOMAXPROCS() calls because they are unnecessary 2016-07-19 11:08:21 +03:00
kube-apiserver Remove GOMAXPROCS() calls because they are unnecessary 2016-07-19 11:08:21 +03:00
kube-controller-manager Remove GOMAXPROCS() calls because they are unnecessary 2016-07-19 11:08:21 +03:00
kube-dns Remove GOMAXPROCS() calls because they are unnecessary 2016-07-19 11:08:21 +03:00
kube-proxy Remove GOMAXPROCS() calls because they are unnecessary 2016-07-19 11:08:21 +03:00
kubectl Remove GOMAXPROCS() calls because they are unnecessary 2016-07-19 11:08:21 +03:00
kubelet Remove GOMAXPROCS() calls because they are unnecessary 2016-07-19 11:08:21 +03:00
kubemark Remove GOMAXPROCS() calls because they are unnecessary 2016-07-19 11:08:21 +03:00
kubernetes-discovery Merge pull request #29042 from dims/fixup-imports 2016-07-18 07:23:38 -07:00
libs/go2idl Use Go canonical import paths 2016-07-16 13:48:21 -04:00
linkcheck Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
mungedocs Don't panic if we hit a dangling symlink in mungedocs 2016-07-13 11:50:26 -07:00
OWNERS Remove myself from a bunch of OWNERS files, as I am too overloaded 2016-05-11 13:34:51 -07:00