This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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). | |
| # |