- First, install GNU tar:
brew install --with-default-names gnu-tar - Ensure at least 4GB RAM available to Docker for Mac
go get k8s.io/kubernetes && cd $GOPATH/src/k8s.io/kubernetes
brew install --with-default-names gnu-targo get k8s.io/kubernetes && cd $GOPATH/src/k8s.io/kubernetes
| package main | |
| import ( | |
| "context" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" | |
| "time" | |
| ) |
| Linux pstree shows running processes as a tree. The tree is rooted at either pid or init if pid is omitted. If a user name is specified, all process trees rooted at processes owned by that user are shown. | |
| Install pstree | |
| #On Mac OS | |
| brew install pstree | |
| #On Fedora/Red Hat/CentOS | |
| yum install psmisc #using psmisc package for pstree | |
| #On Ubuntu/Debian APT |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |