Skip to content

Instantly share code, notes, and snippets.

View lilithmooncohen's full-sized avatar

Lily Cohen lilithmooncohen

View GitHub Profile
@lilithmooncohen
lilithmooncohen / gist:9794015
Last active August 29, 2015 13:57
Simple script to return TCP memory settings and actual usage.
#!/bin/bash
# Author: Ryan C Koch - [email protected]
# Purpose: Returns TCP Memory settings and Usage
# Arguments: low - Return Low Threshold Setting
# mem - Return Memory Pressure Setting
# out - Return Out of Socket Setting
# use - Return Actual Usage
# use_thresh - Check Usage Against Settings and Return Threshold
SETTINGS=$(cat /proc/sys/net/ipv4/tcp_mem)