Skip to content

Instantly share code, notes, and snippets.

View kunalkushwaha's full-sized avatar

Kunal Kushwaha kunalkushwaha

View GitHub Profile
@kunalkushwaha
kunalkushwaha / weather-map.json
Created April 18, 2018 04:15
Elementary os weather data file.
{
"Clear": "weather-clear-symbolic",
"Drizzle": "weather-showers-scattered-symbolic",
"Light Rain":"weather-showers-scattered-symbolic",
"Rain": "weather-showers-symbolic",
"Snow": "weather-snow-symbolic",
"Partly Cloudy": "weather-few-clouds-symbolic",
"Cloudy": "weather-few-clouds-symbolic",
"Humid and Mostly Cloudy": "weather-few-clouds-symbolic",
"Mostly Cloudy": "weather-few-clouds-symbolic",
@kunalkushwaha
kunalkushwaha / headless.go
Created April 17, 2018 07:09
cli browser
package main
import (
"fmt"
"os"
"gopkg.in/headzoo/surf.v1"
)
func main() {
{
"metadata": {
"name": "powertest",
"attempt": 1
},
"image": {
"image": "docker.io/library/alpine:latest"
},
"command": [
"/bin/sh"
@kunalkushwaha
kunalkushwaha / Dockerfile
Last active March 13, 2018 04:18
Memory allocator in blocks of GB
FROM scratch
ADD high-mem-allocator /
ENTRYPOINT ["/high-mem-allocator"]
CMD ["1"]
@kunalkushwaha
kunalkushwaha / hello-containerd.go
Created December 14, 2017 05:30
sample code for using containerd.
package main
import (
"context"
"fmt"
"log"
"syscall"
"time"
"github.com/containerd/containerd"
@kunalkushwaha
kunalkushwaha / Container Runtime Comparision-powertest-profile.jpg
Last active December 1, 2017 05:56
performance comparision containerd vs cri-containerd vs crio using powertest
Container Runtime Comparision-powertest-profile.jpg
@kunalkushwaha
kunalkushwaha / cri-containerd-flame-powertest.md
Last active November 30, 2017 02:07
Output of ctr-powertest profile for cri-containerd

Code: https://github.com/kunalkushwaha/cri-containerd-flame/tree/powertest-flamegraph

make[1]: Entering directory '/home/kunal/go/src/github.com/kunalkushwaha/cri-containerd-flame'
docker run --rm --cidfile=run/torch --log-driver=none --net=container:88f2825b36316541304f295abb3a714a415efa81e77b85e2e3284239e51f4150 uber/go-torch --print -t "60" > "run"/torch.svg; \
        rm run/torch; \
        docker logs -f 71a7d3d1393691a5fee1ce3786df0f59ac2f3c90f65b9c0cf594da4a1c642689; \
        docker rm 71a7d3d1393691a5fee1ce3786df0f59ac2f3c90f65b9c0cf594da4a1c642689; \
        rm run/bench
INFO[01:37:56] Run pprof command: go tool pprof -raw -seconds 60 http://localhost:8080/debug/pprof/profile
@kunalkushwaha
kunalkushwaha / runtime-benchmark.md
Last active February 7, 2024 01:17
Runtime performance benchmark result. [containerd vs CRI-containerd vs CRI-O]

Software Versions

$ runc --version
runc version 1.0.0-rc4+dev
commit: f53ad9cec928821a25c2a74eb8bd95558f8cf152-dirty
spec: 1.0.0

$ containerd --version
containerd github.com/containerd/containerd v1.0.0-beta.3-86-g9649a42 9649a428e8c470cddc0d5a3c394f36111f940adc
package main
import (
"bytes"
"context"
"fmt"
"sync"
"github.com/containerd/containerd"
"github.com/containerd/containerd/containers"

Keybase proof

I hereby claim:

  • I am kunalkushwaha on github.
  • I am kunalkushwaha (https://keybase.io/kunalkushwaha) on keybase.
  • I have a public key ASDt6K_m_e9iMPYN1-MJtvmzw8h7SDgTblfcIxdlXX6lxwo

To claim this, I am signing this object: