Skip to content

Instantly share code, notes, and snippets.

View jihunseol's full-sized avatar

Seol Ji-Hun jihunseol

  • Samsung Mobile
  • Suwon, South Korea
View GitHub Profile
@jihunseol
jihunseol / cpuunclaimed.py
Last active February 14, 2019 06:46 — forked from brendangregg/cpuunclaimed.py
cpuunclaimed.py draft
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# cpuunclaimed Sample CPU run queues and calculate unclaimed idle CPU.
# For Linux, uses BCC, eBPF.
#
# This samples the length of the run queues and determine when there are idle
# CPUs, yet queued threads waiting their turn. Report the amount of idle
# (yet unclaimed by waiting threads) CPU as a system-wide percentage.
#
@jihunseol
jihunseol / dockerpsns.sh
Created April 24, 2017 13:38 — forked from brendangregg/dockerpsns.sh
docker ps --namespaces
#!/bin/bash
#
# dockerpsns - proof of concept for a "docker ps --namespaces".
#
# USAGE: ./dockerpsns.sh
#
# This lists containers, their init PIDs, and namespace IDs. If container
# namespaces equal the host namespace, they are colored red (this can be
# disabled by setting color=0 below).
#