From owner-freebsd-stable Sun Jul 7 13:44:29 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91C7137B400 for ; Sun, 7 Jul 2002 13:44:26 -0700 (PDT) Received: from wall.polstra.com (wall-gw.polstra.com [206.213.73.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACE8E43E31 for ; Sun, 7 Jul 2002 13:44:25 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.3) with ESMTP id g67KiHT85130; Sun, 7 Jul 2002 13:44:17 -0700 (PDT) (envelope-from jdp@vashon.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.12.4/8.12.4/Submit) id g67KiBn5001861; Sun, 7 Jul 2002 13:44:11 -0700 (PDT) (envelope-from jdp) Date: Sun, 7 Jul 2002 13:44:11 -0700 (PDT) Message-Id: <200207072044.g67KiBn5001861@vashon.polstra.com> To: stable@freebsd.org From: John Polstra Cc: romanp@unshadow.net Subject: Re: NFS errors at high hz values with TCP mounts In-Reply-To: <20020707205408.Y416-100000@room101.wuppy.net.ru> References: <20020707205408.Y416-100000@room101.wuppy.net.ru> Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In article <20020707205408.Y416-100000@room101.wuppy.net.ru>, Roman V. Palagin wrote: > On Jul 6, at 3:54pm -0700, John Polstra wrote: > > so->so_rcv.sb_timeo = (5 * hz); > > so->so_snd.sb_timeo = (5 * hz); > > > > But sb_timeo has type "short", which overflows when hz is 10000. > > > > This is in struct sockbuf. I don't think it would break binary > > compatibility with existing 3rd party modules to change it to type > > "long". Are there any contrary opinions? > > I see this problem with HZ=1000, overflow doesn't occured in this > situation... May be problem lies somewhere else? Are you sure? I changed the type of sb_timeo to int and the problem disappeared on my system. John -- John Polstra John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message