Date: Sat, 02 Mar 2019 14:17:10 +0000 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: Konstantin Belousov <kostikbel@gmail.com> Cc: Ian Lepore <ian@freebsd.org>, Mark Millard <marklmi@yahoo.com>, Mark Millard via freebsd-hackers <freebsd-hackers@freebsd.org>, Konstantin Belousov <kib@freebsd.org>, bde@freebsd.org, FreeBSD PowerPC ML <freebsd-ppc@freebsd.org> Subject: Re: powerpc64 head -r344018 stuck sleeping problems: th->th_scale * tc_delta(th) overflows unsigned 64 bits sometimes [patched failed] Message-ID: <9993.1551536230@critter.freebsd.dk> In-Reply-To: <20190302105652.GD68879@kib.kiev.ua> References: <D3D7E9F4-9A5E-4320-B3C8-EC5CEF4A2764@yahoo.com> <20190228145542.GT2420@kib.kiev.ua> <20190228150811.GU2420@kib.kiev.ua> <962D78C3-65BE-40C1-BB50-A0088223C17B@yahoo.com> <28C2BB0A-3DAA-4D18-A317-49A8DD52778F@yahoo.com> <20190301112717.GW2420@kib.kiev.ua> <679402FF-907C-43AF-B18C-8C9CC857D7A6@yahoo.com> <6669.1551473821@critter.freebsd.dk> <210dfd0f50ee6b1149c914ee503502654eb5f328.camel@freebsd.org> <20190302105652.GD68879@kib.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
-------- In message <20190302105652.GD68879@kib.kiev.ua>, Konstantin Belousov writes: >Using more than two timehands increases a chance of reader to try to >use outdated timehands. No, using only two timehands increase the chance that the reader tries to use the timehand which is being updated. As long as the reader does not use the timehand being updated, using a one or two generations old timehand is OK. At worst a frequency change happened since then, in which case the timestamp will be "delta-f * delta-t" wrong. Delta-f is in 1e-7 territory on a system running ntpd(8), so this is below noise level for anything but high-precision timekeeping. The target-value for delta-t was "a few milliseconds" when I wrote timecounters, if somebody has changed that since, I hope they did their math first. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9993.1551536230>