Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Dec 2023 22:27:00 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Gleb Smirnoff <glebius@freebsd.org>
Cc:        src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: git: e3cbc572f154 - main - kern/subr_trap.c: repair the HPTS performance hack in userret()
Message-ID:  <ZW42FH2wpsJInlUI@kib.kiev.ua>
In-Reply-To: <202312041859.3B4IxVcB043749@gitrepo.freebsd.org>
References:  <202312041859.3B4IxVcB043749@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 04, 2023 at 06:59:31PM +0000, Gleb Smirnoff wrote:
> The branch main has been updated by glebius:
> 
> URL: https://cgit.FreeBSD.org/src/commit/?id=e3cbc572f1541fdc18be9971d23e210d5018e662
> 
> commit e3cbc572f1541fdc18be9971d23e210d5018e662
> Author:     Gleb Smirnoff <glebius@FreeBSD.org>
> AuthorDate: 2023-12-04 18:19:46 +0000
> Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
> CommitDate: 2023-12-04 18:19:46 +0000
> 
>     kern/subr_trap.c: repair the HPTS performance hack in userret()
>     
>     It wasn't functional as subr_trap.c doesn't include opt_inet.h.  Put a
>     better comment provided by gallatin@ in place of the old one.  The idea
>     is to use userret() as a cheap place to call a soft clock.  This approach
>     saves CPU on busy machines and saves power on idle machines.
>     An alternative would be to constantly schedule callouts.  Running with
>     neither callouts nor the soft clock ruins HPTS precision.
Can this be converted to AST, and scheduled as needed, instead of current
ugliness?



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