Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jul 2002 13:44:11 -0700 (PDT)
From:      John Polstra <jdp@polstra.com>
To:        stable@freebsd.org
Cc:        romanp@unshadow.net
Subject:   Re: NFS errors at high hz values with TCP mounts
Message-ID:  <200207072044.g67KiBn5001861@vashon.polstra.com>
In-Reply-To: <20020707205408.Y416-100000@room101.wuppy.net.ru>
References:  <20020707205408.Y416-100000@room101.wuppy.net.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <20020707205408.Y416-100000@room101.wuppy.net.ru>,
Roman V. Palagin <romanp@unshadow.net> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207072044.g67KiBn5001861>