sysctl - deptno/deptno.github.io GitHub Wiki

sysctl

μ‹œμŠ€ν…œ λ³€μˆ˜λ₯Ό 읽고 μ“΄λ‹€.

μ‚¬μš©λ²•

# read
sysctl VARIABLE_NAME
# write
sudo sysctl -w VARIABLE_NAME=value

μ‚¬μš©

# ν”„λ‘œμ„Έμ„œ [이름](/deptno/deptno.github.io/wiki/이름)
sysctl -n machdep.cpu.brand_string
sysctl -n machdep.cpu
# μ—΄μˆ˜μžˆλŠ” fd 관리, macOS 10.6 μ΄μ „μ—μ„œλ§Œ μ‚¬μš©λ˜μ—ˆμŒ
# + μ°Έκ³ . https://facebook.github.io/watchman/docs/install.html#mac-os-file-descriptor-limits
sudo sysctl -w kern.maxfiles=10485760
sudo sysctl -w kern.maxfilesperproc=1048576

link