Skip to content

Instantly share code, notes, and snippets.

@akutz
Created April 6, 2013 19:27
Show Gist options
  • Save akutz/5327309 to your computer and use it in GitHub Desktop.
Save akutz/5327309 to your computer and use it in GitHub Desktop.
Prints the amount of memory your kexts are using.
echo "Index Refs Address Size Wired Name (Version) <Linked Against>"; \
kextstat -l | \
awk '{ printf "%-6s %-5s %-18s %-10d %-10d %-40s\n", $1, $2, $3, $4, $5, $6}' | \
awk '{ printf "%-6s %-5s %-18s %-10d %-10d %-40s\n", $1, $2, $3, (($4/1024)), (($4/1024)), $6}' | \
sort -rn -k4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment