Skip to content

Instantly share code, notes, and snippets.

@hiyali
Last active June 9, 2019 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiyali/e2eded6bb4c58ff8c55b9a744daee1dc to your computer and use it in GitHub Desktop.
Save hiyali/e2eded6bb4c58ff8c55b9a744daee1dc to your computer and use it in GitHub Desktop.
Optimize Linux

Find fd limit:

cat /proc/sys/fs/file-max

Check limit:

ulimit -n

Set ulimit:

ulimit -n 10000

Check cpu, memory...:

top

Detect large files in a directory:

du -sch ~/pmm/* | sort -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment