From owner-freebsd-questions@freebsd.org Tue Jul 13 19:00:23 2021 Return-Path: Delivered-To: freebsd-questions@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 0DB776639A0 for ; Tue, 13 Jul 2021 19:00:23 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) (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 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GPVM95gZzz4pqR for ; Tue, 13 Jul 2021 19:00:21 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: by mail-pl1-x630.google.com with SMTP id b12so8640333plh.10 for ; Tue, 13 Jul 2021 12:00:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FFaG9z8ZVNIsr64nBbxiftAQ8R2XCUw02IUQZ20soF8=; b=BcgieWMQn8YOe0bIW7kqPZMPzxYi9hKmc9RkKzYa5kEFoPjIxDfQJIkvBXpHbQeH+z GWs3pfZfjuEyWy/ZeYaInmfIKmv4dwTOPTPKk+Y0ZtWE8Hu6vTHaovzGGW1SH3t03buP cX9GfMZOoFUxDoes242V3vvafLyk1Hml7rGASE89vkvGS3qXExp36x0lzqrNCCN6gx0A E2bcKbOaJtTReSBizE1DaomiYJOQEEb/400R5+PXNcwJ1Ossiya9OeZP7DzeYNv/l2TK N8kNy8XAoYAzPfuXWYuwt8Us5lDDaa6fVd/juZY/qReEMEXimzrhgG703acLJFETmunh 1MIg== 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:from:date :message-id:subject:to:cc; bh=FFaG9z8ZVNIsr64nBbxiftAQ8R2XCUw02IUQZ20soF8=; b=EukaMwPGIe819hzJ1B1WGmRYFy5GBtmOpQ9Jpr7CE0+O7+YKwhGgGutS3E6lg4evg6 G8TwwqxhOv5PthOUD2TnTcdrfSPaD2hbLR3gnyxoxZTEf2o2xtAIYvbG/OVSEJ/9g5rc MJVFA/NTX+di6Ro3luRu9+rlsbU9Mjym/nk7kDkw9opvqmvvXavFIFLh89ChcpOcfB1R TERe8lqkVk+V2f5PGiH77+hp3P1wjmbQx9QXWHLxqbnshq93/Mk0Njh1Qtkai3mUFbjn rFQGIAe2ZbvS3ZunXlIcxaDtpcHi1QsZ/uSTgRSLLdQmu2LysqQ2lJNHw5OhR/+gPFOl 3OCQ== X-Gm-Message-State: AOAM532P448nyEm5KWsQOtWEIg2pv2VK5kY24DaFdrHHhRjB0KuuK+1T ckNpZxtAUhq31U6mGuew3s1MFsQ7ZCb0FA4tUQ== X-Google-Smtp-Source: ABdhPJxt0MM7pX8j0q/f96FKI+KrLAPXdUOISKIbyd9U1vhHyRkRLJrrYtR55PQhYvr4z8VTOh0Js3diT1lFjVo/67o= X-Received: by 2002:a17:90b:3617:: with SMTP id ml23mr5640668pjb.236.1626202820192; Tue, 13 Jul 2021 12:00:20 -0700 (PDT) MIME-Version: 1.0 References: <0be4883a-6bf6-28bc-a14b-9cb1f6d729ae@wavecable.com> <4d1e32fc-3e77-626e-138b-6af872445c5e@wavecable.com> <48605aef-d1ba-c24a-bae7-cb69306410a8@wavecable.com> In-Reply-To: <48605aef-d1ba-c24a-bae7-cb69306410a8@wavecable.com> From: Paul Procacci Date: Tue, 13 Jul 2021 15:00:08 -0400 Message-ID: Subject: Re: How do I disable CPU throttling To: "Thomas D. Dean" Cc: FreeBSD Questions X-Rspamd-Queue-Id: 4GPVM95gZzz4pqR X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=BcgieWMQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of pprocacci@gmail.com designates 2607:f8b0:4864:20::630 as permitted sender) smtp.mailfrom=pprocacci@gmail.com X-Spamd-Result: default: False [-0.29 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::630:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.24)[-0.242]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.16)[0.164]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::630:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.79)[0.786]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::630:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jul 2021 19:00:23 -0000 On Tue, Jul 13, 2021 at 12:56 AM Thomas D. Dean wrote: > On 7/12/21 8:17 PM, Paul Procacci wrote: > > > > > sysctl dev.cpu.0 | grep freq > dev.cpu.0.freq_levels: 3700/4070 2800/2800 2200/1980 > dev.cpu.0.freq: 2200 > > These numbers are in GHz. > > What I want to do is understand where the numbers 3700 and 4070 come from. > > You aren't looking at the right place. This information is offered by the CPU and it's the CPU's documentation that you'll find the information you're looking for. If using Intel for instance, you'd be interested in reading about SpeedStep. Along with that, you'll want to understand ACPI, which is essentially the software side, or programmable interface to SpeedStep among other things. For instance, bit 22 in edx after a `cpuid` instruction with eax set to 0x01 will tell ya if if the cpu even supports acpi. ~Paul