Linux sysctl parameters
What each kernel setting does, its usual default and a typical value for servers.
Memory (vm.*)
vm.swappinessHow eagerly the kernel swaps memory pages out. Lower keeps data in RAM.vm.dirty_ratioPercent of RAM that may hold unwritten data before writers are forced to wait.vm.dirty_background_ratioPercent of dirty memory at which background flushing begins.vm.overcommit_memoryWhether the kernel promises more memory than exists. 0 heuristic, 1 always, 2 strict.vm.max_map_countMaximum memory mappings per process.vm.min_free_kbytesMemory the kernel always keeps free for emergencies.vm.nr_hugepagesNumber of reserved 2 MB huge pages, used by databases to cut page-table overhead.
Files (fs.*)
fs.file-maxSystem-wide limit on open files.fs.inotify.max_user_watchesHow many files one user can watch for changes. IDEs and file syncers hit this.fs.inotify.max_user_instancesInotify instances per user.
Network (net.*)
net.core.somaxconnLongest queue of finished connections waiting for accept().net.ipv4.tcp_max_syn_backlogQueue of half-open connections.net.core.netdev_max_backlogPackets queued per CPU before the network stack handles them.net.core.rmem_maxLargest receive buffer a socket may request, in bytes.net.core.wmem_maxLargest send buffer a socket may request, in bytes.net.ipv4.tcp_congestion_controlAlgorithm that decides how fast TCP sends.net.core.default_qdiscDefault packet scheduler on interfaces.net.ipv4.tcp_tw_reuseReuse sockets in TIME_WAIT for new outgoing connections.net.ipv4.tcp_fin_timeoutSeconds a closing socket waits in FIN_WAIT_2.net.ipv4.ip_local_port_rangePort range for outgoing connections. Limits connections per destination.net.ipv4.ip_forwardAllows the machine to route packets between interfaces.net.netfilter.nf_conntrack_maxSize of the connection tracking table. Full tables drop packets.net.ipv4.conf.all.rp_filterDrops packets whose source could not be reached via the interface they came from.