From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c78462de23a51a46,start X-Google-Attributes: gidfee84,public From: mogul@pa.dec.com (Jeffrey Mogul) Subject: Re: Q: How do I change the TCP/IP KeepAlive_Interval? Date: 1995/10/28 Message-ID: <46ru2i$t4f@usenet.pa.dec.com>#1/1 X-Deja-AN: 118198237 distribution: world references: organization: DEC Western Research newsgroups: comp.unix.osf.osf1 In article 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