From: mogul@pa.dec.com (Jeffrey Mogul)
Subject: Re: Q: How do I change the TCP/IP KeepAlive_Interval?
Date: 1995/10/28 [thread overview]
Message-ID: <46ru2i$t4f@usenet.pa.dec.com> (raw)
In-Reply-To: ACB5D2169668107F7@bifroest.demon.co.uk
In article <ACB5D2169668107F7@bifroest.demon.co.uk> Ian_Miller@bifroest.demon.co.uk (Ian Miller) writes:
>We are using the TCP socket option of sending KeepAlives (SO_KEEPALIVE).
>However, the interval between sending the KeepAlives defaults (on most
>O/Ss) to two hours which is far too long for our purposes. It is normally
>system wide parameter, and it should be possible to change it. However I
>cannot work out how to do it on Alpha/OSF1. I have done this on other O/Ss
>but I am novice on OSF1.
One way to discover if a kernel variable exists is to search the
kernel's symbol table. I did:
% nm -B /vmunix |grep -i keep
on my 3.0 system (I'm a little slow about upgrading!) and got
0xfffffc0000515610 G tcp_keepidle
0xfffffc0000515618 G tcp_keepintvl
0xfffffc00002c4d40 T u_map_keep_on_exec
0xfffffc00002c7070 T vm_keep_on_exec
The first two look promising, huh? Since I have the source
code, I can tell you that tcp_keepidle is initialized to
TCPTV_KEEP_IDLE, and tcp_keepintvl is initialized to
TCPTV_KEEPINTVL. These values are described in the header
file /usr/include/netinet/tcp/tcp_timer.h
#define TCPTV_KEEP_IDLE (120*60*PR_SLOWHZ) /* dflt time before probing */
#define TCPTV_KEEPINTVL ( 75*PR_SLOWHZ) /* default probe interval */
I suspect that you want to patch tcp_keepidle to something smaller.
-Jeff
parent reply other threads:[~1995-10-28 4:00 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <ACB5D2169668107F7@bifroest.demon.co.uk>]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox