Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce sizes of binaries #76506

Open
dims opened this Issue Apr 12, 2019 · 3 comments

Comments

@dims
Copy link
Member

dims commented Apr 12, 2019

Sizes of packages as of this morning:

2.0M    ./k8s.io/kubernetes/vendor/github.com/json-iterator/go.a
2.0M    ./k8s.io/kubernetes/vendor/github.com/vishvananda/netlink.a
2.2M    ./k8s.io/kubernetes/vendor/gonum.org/v1/gonum/lapack/gonum.a
2.5M    ./k8s.io/kubernetes/vendor/gonum.org/v1/gonum/blas/gonum.a
3.0M    ./k8s.io/kubernetes/vendor/github.com/aws/aws-sdk-go/service/autoscaling.a
3.1M    ./k8s.io/kubernetes/vendor/github.com/googleapis/gnostic/OpenAPIv2.a
3.4M    ./k8s.io/kubernetes/vendor/github.com/coreos/etcd/etcdserver/etcdserverpb.a
4.0M    ./k8s.io/kubernetes/vendor/github.com/vmware/govmomi/object.a
4.3M    ./k8s.io/kubernetes/vendor/github.com/vmware/govmomi/vim25/methods.a
4.4M    ./k8s.io/kubernetes/vendor/github.com/rancher/go-rancher/client.a
6.3M    ./k8s.io/kubernetes/vendor/github.com/GoogleCloudPlatform/k8s-cloud-provider/pkg/cloud.a
8.3M    ./k8s.io/kubernetes/vendor/github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01/compute.a
9.7M    ./k8s.io/kubernetes/vendor/github.com/ugorji/go/codec.a
14M    ./k8s.io/kubernetes/vendor/github.com/Azure/azure-sdk-for-go/services/network/mgmt/2017-09-01/network.a
14M    ./k8s.io/kubernetes/vendor/google.golang.org/api/compute/v1.a
15M    ./k8s.io/kubernetes/vendor/github.com/xanzy/go-cloudstack/cloudstack.a
16M    ./k8s.io/kubernetes/vendor/google.golang.org/api/compute/v0.beta.a
20M    ./k8s.io/kubernetes/vendor/github.com/aws/aws-sdk-go/service/ec2.a
20M    ./k8s.io/kubernetes/vendor/google.golang.org/api/compute/v0.alpha.a
28M    ./k8s.io/kubernetes/vendor/github.com/vmware/govmomi/vim25/types.a

Steps to gather latest sizes:

go build -a -v ./cmd/hyperkube 2>&1 | grep vendor | grep -v vendor/k8s.io > built.txt
cat built.txt | xargs -L 1 -I {} go build -o "{}.a" {}
find . -type f -name *.a -exec du -h {} \; | sort -h | grep -v vendor/k8s.io

@dims dims added the kind/bug label Apr 12, 2019

@dims

This comment has been minimized.

Copy link
Member Author

dims commented Apr 12, 2019

/sig cloud-provider

@dims

This comment has been minimized.

Copy link
Member Author

dims commented Apr 12, 2019

/sig gcp
/sig auth
/sig vmware
/sig aws

@andrewsykim

This comment has been minimized.

Copy link
Member

andrewsykim commented Apr 12, 2019

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.