From nobody Tue Jan 24 20:04:48 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P1dHr27tBz3bNB9 for ; Tue, 24 Jan 2023 20:05:28 +0000 (UTC) (envelope-from stav@stav.cc) Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P1dHq6X16z3vfb for ; Tue, 24 Jan 2023 20:05:27 +0000 (UTC) (envelope-from stav@stav.cc) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x236.google.com with SMTP id t12so10379847lji.13 for ; Tue, 24 Jan 2023 12:05:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stav.cc; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=81MIBmJGBcSCiROsJ6CMOrR4A0+LQWa5lYbJqCsk1xU=; b=E2R3NxxBNsDsJGpHefjAa8elXnJ2JWN0oB5R/VJzUFpaEbmMm4szG6fcurRR1AEYsj MSyOBWKEJDHj1lIEXjr272Z4f2dqsZdg3WJvNfLrclrhvAuA6l2O7UTnYQzaOlgZ7sjr 9AhWCnguXVsEJfNjz6SODdMBuZdov1FGMImfQhjCHQ6hYeQMavVh5rKVgUajFrT31B4A VtzxVYw00fWP1joLIQG3jzftc4XYEoYwhpph7bzsKK6/kUt1iHcI887YKWgLq0GO7YF2 ylA1HliqFUB5bpbfHNgVrGYOdUhiRa7mDcm0kborc1g2Q2wCUS3fof2f2GmsL3O1vYjX jrzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=81MIBmJGBcSCiROsJ6CMOrR4A0+LQWa5lYbJqCsk1xU=; b=VN/HuCX94+KFYRTQRon1r4v7zwO5dt3dEoK5jjCzHYf4ztQK8qNEBELJmcIdI4ZgbE P4JINMYHK1H+3tV8X8b3mMnroMiN4nglvSdaHKKyLaVuuKvuOjVpFgQwezLxKq2YIpfo bfjPfBJU9E6HuZgS73yzZwIccWj8+Yfx/wndSb3TGhb4Jjh+f6fx/p2rKwEFnraNrqwj QdEPandcr2LksLKaNZnh+c2fFRnHWL9yjG4+wsS8cb7+y3bsozNxQjCAS2/Tcs9Arh9G RFH9ifoPNauIRWaKX47qnKehOcJtrNwwhwiJEJdygP8z+gGW0vhPuGI2D/GlYzttXsyQ f/1w== X-Gm-Message-State: AFqh2kqS1Zq2KMEezIFazxvCvYF15yFUJd6Grl+lfHrzB05gxIOBQmyO aq0Qe+Ldu36/kifxjkrlc8mFsSX0vxKnIzACwbp3/W8ZwA/wyhrH X-Google-Smtp-Source: AMrXdXvIbsPfwnrSIMJ+wGQt5sVfFTH9uNa9QSLwEmanypoAYO7BgWsLtP4gQqibnZL+AcnEOcZlxZmGFWPpvi7HOPI= X-Received: by 2002:a2e:a4a4:0:b0:27f:7ee5:8424 with SMTP id g4-20020a2ea4a4000000b0027f7ee58424mr1322682ljm.114.1674590724957; Tue, 24 Jan 2023 12:05:24 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <1889CB4C-4B11-4178-8446-97DA9E5EC35A@nimnet.asn.au> <9A7F4436-4888-42E2-93B9-7A8BA342877B@nimnet.asn.au> In-Reply-To: <9A7F4436-4888-42E2-93B9-7A8BA342877B@nimnet.asn.au> From: Stavros Filargyropoulos Date: Tue, 24 Jan 2023 12:04:48 -0800 Message-ID: Subject: Re: Load 0.20 on a freshly installed idle system To: Ian Smith Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4P1dHq6X16z3vfb X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Tue, Jan 24, 2023 at 11:10 AM Ian Smith wrote: > > Yes; I updated to 12.4-R yesterday (due anyway) assuming 'months ago' sho= uld have been before 12.4 left 12-STABLE, but see no change. > > I emailed gbe@ as well, in case he's buried in PR mail.\ Yeah, I saw your reply. Thanks a lot Ian! > > I put quite some time exploring this back in 2016, as did Jeremy Chadwick= , so I'd pretty much given up since 0.1 or 0.2 nowadays is better than 0.6 = then, and noone could explain how my magic fix for 9.2-STABLE worked, let a= lone me. > > I now understand a bit better what Alexander Motin (mav@) was explaining = in posts #9, #27 and now #46 and #48, and accept the trade-off between idle= accuracy and performance (particularly minimal power consumption on laptop= s) that the current scheme provides. > On one hand I understand his point as well. On the other hand, well I already said it, it's bugging me that it's not right :D On a side note, I've been trying to see it for myself using KTR, but having trouble converting the timestamp to actual time. I understand it's what RDTSC is giving us, but was wondering if there is a formula to convert it to secs?. Do you have any tips? Tried dividing by `machdep.tsc_freq: 2419204467` but the number I get doesn't make much sense. I assume with modern cpus changing the frequency all the time this is even more challenging? Thanks, Stavros