Start using packagecloud in minutes
Join thousands of developers using packagecloud to distribute software securely, consistently, and affordably.
README
last updated: Fri 08/19/16 at 02:33:07 PM byhjr3
softnet-stat
Parse the /proc/net/softnet_stat
file into something more readable. For more information about /proc/net/softnet_stat
, I suggest reading Monitoring and Tuning the Linux Networking Stack: Receiving Data.
Compatible Systems
This parser should work on all Linux kernels since v2.6.32. In later versions of the kernel, more fields were added. Currenty, the parser will default these fields to a value of 0
if they are not found in the file.
Distribution
The softnet-stat
binary is distributed via the hjr3/softnet-stat repository on packagecloud.io
Build
See https://github.com/hjr3/softnet-stat#build
Tests
See https://github.com/hjr3/softnet-stat#tests
Examples
Formatted
./softnet-stat
Cpu Processed Dropped Time Squeezed Cpu Collision Received RPS Flow Limit Count
0 1842008611 0 1 0 0 0
1 1863193957 0 2 0 0 0
2 1711764716 0 3 0 0 0
3 1640600369 0 0 0 0 0
4 1737798067 0 5 0 0 0
5 1686686610 0 1 0 0 0
Json
./softnet-stat --json
[{"processed":1842008611,"dropped":0,"time_squeeze":1,"cpu_collision":0,"received_rps":null,"flow_limit_count":null},{"processed":1863193957,"dropped":0,"time_squeeze":2,"cpu_collision":0,"received_rps":null,"flow_limit_count":null},{"processed":1711764716,"dropped":0,"time_squeeze":3,"cpu_collision":0,"received_rps":null,"flow_limit_count":null},{"processed":1640600369,"dropped":0,"time_squeeze":0,"cpu_collision":0,"received_rps":null,"flow_limit_count":null},{"processed":1737798067,"dropped":0,"time_squeeze":5,"cpu_collision":0,"received_rps":null,"flow_limit_count":null},{"processed":1686686610,"dropped":0,"time_squeeze":1,"cpu_collision":0,"received_rps":null,"flow_limit_count":null}]
Your repository is empty!
Put some packages in it like this:
- Install the package_cloud gem: gem install package_cloud.
If you don't already have ruby and rubygems installed, click here for instructions. -
Run package_cloud push hjr3/softnet-stat /path/to/your/package
(You may have to enter your email address and password if you haven't used the gem before.) - Refresh this page and you should see your package.