From owner-freebsd-current@freebsd.org Tue Mar 10 17:34:00 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 59CFF26B138 for ; Tue, 10 Mar 2020 17:34:00 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com [209.85.210.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48cMdg145Nz4N84 for ; Tue, 10 Mar 2020 17:33:58 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-ot1-f51.google.com with SMTP id f21so13934424otp.12 for ; Tue, 10 Mar 2020 10:33:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=fiY5dLkpQjjH+BHCyMe+/BQFxXkpCJb01o7uvpISgbo=; b=b/5O3hNQbKCIfAF0X79inQfLusJoGUx7/sHm1CwEdKYhBnqoWKltiboqftA1foKJ0F xPfRvDVQUYSZxk9f+o3iuT14vOws7GPyiRK9j6K0eVkoTjqOb8BJSLj/ygPL5amVrO2K JCuHVo8p/3fa4Lh0Gk31MHQ5286aR2rHDsyjMNmUa/bbOfzUsvt5ZOHoYp0aLaw4wvbY 6T7whot0dhwOMkNbAdl4+NrX0J9yttUNI4zC9e5b3llpMhTzTowHTxKCC6CINWImqAuX hcxhsiKjhHaZMyhwJwQT7yj6vz39EKs3N29zS50Z3LXBrNeUBGe2ID0fVj1Orx/BoGqC fz7g== X-Gm-Message-State: ANhLgQ1LCWH0Ml2O3kUfK1akvP+NYqMFBaIEbdm6J5L86g7zGD0onxIt WLTPu+28M/9vAxEu6rA45bzht4i5 X-Google-Smtp-Source: ADFU+vvkYzm3/iXOllIAEtDfz2K2QFAGmOk0i19YKPewS9jUv3bMAgHyppggeu8Xa8vt8+TTCknlJg== X-Received: by 2002:a9d:2c69:: with SMTP id f96mr9305717otb.62.1583861637270; Tue, 10 Mar 2020 10:33:57 -0700 (PDT) Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com. [209.85.167.181]) by smtp.gmail.com with ESMTPSA id l19sm2091452otj.69.2020.03.10.10.33.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Mar 2020 10:33:56 -0700 (PDT) Received: by mail-oi1-f181.google.com with SMTP id p125so14693790oif.10 for ; Tue, 10 Mar 2020 10:33:56 -0700 (PDT) X-Received: by 2002:a05:6808:289:: with SMTP id z9mr1937218oic.48.1583861636722; Tue, 10 Mar 2020 10:33:56 -0700 (PDT) MIME-Version: 1.0 References: <989cd36a-e015-940a-dfe2-851c6fdf4734@gmail.com> <20200310053833.GD3091@server.rulingia.com> In-Reply-To: Reply-To: cem@freebsd.org From: Conrad Meyer Date: Tue, 10 Mar 2020 10:33:45 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: System clock is slow To: Theron Cc: FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 48cMdg145Nz4N84 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of csecem@gmail.com designates 209.85.210.51 as permitted sender) smtp.mailfrom=csecem@gmail.com X-Spamd-Result: default: False [-3.13 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[cem@freebsd.org]; RWL_MAILSPIKE_GOOD(0.00)[51.210.85.209.rep.mailspike.net : 127.0.0.18]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[cem@freebsd.org,csecem@gmail.com]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; TAGGED_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_NEQ_ENVFROM(0.00)[cem@freebsd.org,csecem@gmail.com]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[51.210.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-1.13)[ip: (-0.99), ipnet: 209.85.128.0/17(-2.98), asn: 15169(-1.65), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Mar 2020 17:34:00 -0000 On Tue, Mar 10, 2020 at 9:24 AM Theron wrote: > I had previously used powerd to let the CPU underclock to 700MHz when > idle. Now, I've lost all control over CPU frequency (either by powerd > or by sysctl) since there is some in-kernel cpufreq driver which I can't > figure out how to disable. It's hwpstate_intel(4). You can add 'hint.hwpstate_intel.0.disabled="1"' in loader.conf or device.hints to disable and use est(4), if you prefer. The idea of the device is that hardware can do a better job managing the frequency / power states rapidly than daemons like powerd. But if you like powerd/est, feel free to disable it. Future models of Intel CPU may not provide est(4). If you leave it enabled, you can control the energy efficiency / performance trade-off of hwpstate_intel on a per-core basis (or per-package, if not disabled and hardware supports package-level control) with 'dev.hwpstate_intel..epp=0-100' (sysctl or tunable); the CPU uses this knob to control how biased it is towards low frequency states. 100 is most efficient, 0 is most performant. The default is 50. Best, Conrad