Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jul 2011 17:16:18 -0700
From:      Garrett Cooper <yanegomi@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   Re: What is slowhz?
Message-ID:  <CAGH67wRhRU0y15bC0KdkOBf=dBb5OauU5H%2BBfJHw%2BqfB4dg1sg@mail.gmail.com>
In-Reply-To: <CAGH67wRYgDEd3GnFzFH950wtZQVVr_HyHK4YJhca-rTULtSTLA@mail.gmail.com>
References:  <CAGH67wRYgDEd3GnFzFH950wtZQVVr_HyHK4YJhca-rTULtSTLA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 22, 2011 at 3:10 PM, Garrett Cooper <yanegomi@gmail.com> wrote:
> =A0 =A0I see this comment, and I've found references to a
> net.inet.tcp.slowhz in Free, Net, and OpenBSDs, but this value can't
> be queried anymore.
>
> # grep -r slowhz /sys/
> /sys/netinet/ip.h:#define =A0 =A0 =A0 IPFRAGTTL =A0 =A0 =A0 60 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0/* time to live for frags, slowhz */
>
> =A0 =A0Could someone please confirm that slowhz is indeed a half second
> value [1], or was it tunable / does it matter anymore?

Answering my own question...

/sys/sys/protosw.h:

...

* every 500ms through the pr_slowtimo for timer based actions.

...

#define PR_SLOWHZ       2               /* 2 slow timeouts per second */

> =A0 =A0For additional context, I'm trying to map IP-MIB::ipReasmTimeout
> to a value used in the FreeBSD networking stack, and it looks like
> that value is the best candidate.

This is of course IP-MIB::ipReasmTimeout =3D IFRAGTTL / PR_SLOWHZ =3D 30 se=
conds.

> 1. http://markmail.org/message/3xvte6uxrhyb4spn

Thanks!
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wRhRU0y15bC0KdkOBf=dBb5OauU5H%2BBfJHw%2BqfB4dg1sg>