SHARE
Facebook X Pinterest WhatsApp

More Deep Discovery on your Linux Server With /proc

Written By
JK
Juliet Kemp
Jan 19, 2011

“Linux’s amazing and powerful pseudo-filesytem proc isn’t just
for peering into a running kernel. Juliet Kemp shows how Linux
admins can also change kernel parameters on the fly.

“Last month I looked at some of the interesting data you can get
out of /proc/. But /proc isn’t just for getting information out of
the system and into convenient text form. You can also use it to
put information into the system, and thereby change it. The sys/
directory, which is where kernel variable information is kept, is
where most of the things you might want to alter live. Changes made
here will take effect immediately; no need to reboot. A real boon
for working sysadmins! Note that you’ll need appropriate (root)
privileges to change these values. See here for a discussion of
using sudo with pipes.

“Networking changes

“/proc/sys/net/ipv4/ contains a bunch of networking values to
try playing around with.

“/proc/sys/net/ipv4/tcp_keepalive_time sets how long (in
seconds) it takes the TCP keepalive routines to send the first
keepalive probe. A keepalive message simply detects whether the
other side of the connection is still there; if not, it drops the
connection. However, the default is 7200 seconds (2 hours), which
is probably after your session would have timed out itself. If you
want something quicker than that, you can change this value to send
a keepalive sooner (and thus drop the session sooner if the other
side has gone away). Setting it to 120 seconds would start sending
keepalives after two minutes.”

Complete
Story

JK

Juliet Kemp

Recommended for you...

How to Install Immich on openSUSE
r00t
Sep 6, 2024
Beginners Guide for ID Command in Linux
Benny Lanco
Sep 5, 2024
[Fixed] An Unexpected Error Occurred on Gnome Extensions
Patrick
Sep 3, 2024
Run a Google Search From the Linux Command Line With Googler
TechRepublic
Aug 27, 2024
Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.