From nobody Tue Nov 22 05:36:25 2022 X-Original-To: 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 4NGY0n21G1z4hwVN for ; Tue, 22 Nov 2022 05:36:57 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from se6.syd.hostingplatform.net.au (se6.syd.hostingplatform.net.au [IPv6:2400:b800:5::52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NGY0n053nz3Cxx for ; Tue, 22 Nov 2022 05:36:54 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Authentication-Results: mx1.freebsd.org; none Received: from s121.syd3.hostingplatform.net.au ([103.27.34.4]) by se6.syd.hostingplatform.net.au with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1oxLxV-0005Ct-KT for questions@freebsd.org; Tue, 22 Nov 2022 16:36:41 +1100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nimnet.asn.au; s=default; h=Message-ID:From:CC:To:Subject: Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To: Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=zLeqex9ZfWDItwf023dHALk760hxNrBQjM3gmLQzS9U=; b=WFnGcipBUme1mFfDpy4oDXrw0Z YfzhexzUmB1dDCjy1ejxXxGaMiofLQ1qvRsOnNFUocsmmB2DiSCWb0KJAIhLWpxDMcIP3uw4r7QVX KP9z5W8ynyRrfP4Y/V8A24bkpVXsw3t28Q0eqHirEIj7zHmEXMzTjlBy/7KwFqD1p7WPX7772dlKe tL1/5fgqxOrXqgrx/RXRDtNW++jZwvqrb2VwUriNeamHgUO+Z0Kr0EXb2SjKaSpZTHPcImRm+wfry qcReuQYohZ0lyp8xkHZu4kz8LLDtYcYTMG2sLJGPllEaOu24LSLs03zkqLxR7KP61msG6k6s9NuC5 chY0Opeg==; Received: from [1.129.208.114] (port=59876 helo=Galaxy-J5-Pro) by s121.syd3.hostingplatform.net.au with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1oxLxT-001KQt-11; Tue, 22 Nov 2022 16:36:35 +1100 Date: Tue, 22 Nov 2022 16:36:25 +1100 User-Agent: K-9 Mail for Android In-Reply-To: References: <9d17ea30-4b10-2aa3-9d09-017da7423844@sentex.net> 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: RELENG_13 and min cpu frequency To: mike tancsa ,Kevin Oberman CC: questions@freebsd.org From: Ian Smith Message-ID: X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - s121.syd3.hostingplatform.net.au X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - nimnet.asn.au X-Get-Message-Sender-Via: s121.syd3.hostingplatform.net.au: authenticated_id: smithi@nimnet.asn.au X-Authenticated-Sender: s121.syd3.hostingplatform.net.au: smithi@nimnet.asn.au X-Source: X-Source-Args: X-Source-Dir: X-Originating-IP: 103.27.34.4 X-SpamExperts-Domain: out-3.hostingplatform.net.au X-SpamExperts-Username: 103.27.34.4 X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.09) X-Rec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smgNU80KTDQcWwe0S 4mB30j5nlErnGbOGRQ3KaeE391IyW7bVDpANUQvyZzPgihL3FhyCT+8vOSJGHGnDZXw8f9eIYW4H Vh/UxFgv3Vl8SugHuMPfP9NtOxkpv0M3bEqPjumnp8Gmev19nmuGQVM= X-Report-Abuse-To: spam@se.syd.hostingplatform.net.au X-Rspamd-Queue-Id: 4NGY0n053nz3Cxx X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:45638, ipnet:2400:b800:5::/48, country:AU] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On 22 November 2022 6:08:02 am AEDT, mike tancsa wrote: > On 11/18/2022 4:28 PM, mike tancsa wrote: > > I noticed that when I moved from an old RELENG11 to RELENG13 > firewall,=20 > > I was starting to get dropped packets=2E=C2=A0 Looking at when it was= =20 > > happening, it actually seems to happen at times where the network > load=20 > > is really low?!?!=C2=A0 When I see a high PPS or high bandwidth, I do= nt > get=20 > > overruns on the nic=2E=C2=A0 Trying to figure out whats going on, it = seems > to=20 > > correlate with when the CPU reduces its frequency to save on power=2E >=20 > > When its in turbo mode, it scales up to 4300, but then in the quiet >=20 > > hours, it goes down to 800 and that seems to be when I start > getting=20 > > the odd overrun=2E > OK, some possible progress=2E I noticed that >=20 > =C2=A0sysctl -a dev=2Ecpufreq=2E0=2Efreq_driver > dev=2Ecpufreq=2E0=2Efreq_driver: hwpstate_intel0 >=20 > Looking at the man page >=20 > dev=2Ehwpstate_intel=2E%d=2Eepp > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 Energy/Performance Preference=2E=C2=A0 Valid values range from > 0 to 100=2E > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 Setting this field conveys a hint to the hardware > regarding a > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 preference towards performance (at value 0), energy > efficiency > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 (at value 100), or somewhere in between=2E >=20 > it defaults to 50=2E=C2=A0 I changed the value to 5 >=20 > sysctl -w dev=2Ehwpstate_intel=2E0=2Eepp=3D5 >=20 >=20 > Looking at the freq value >=20 > dev=2Ecpu=2E0=2Efreq: 4410 > dev=2Ecpu=2E0=2Efreq: 4410 > dev=2Ecpu=2E0=2Efreq: 4410 > dev=2Ecpu=2E0=2Efreq: 4410 > dev=2Ecpu=2E0=2Efreq: 4410 > dev=2Ecpu=2E0=2Efreq: 4410 > dev=2Ecpu=2E0=2Efreq: 4410 > dev=2Ecpu=2E0=2Efreq: 4410 > dev=2Ecpu=2E0=2Efreq: 4410 > dev=2Ecpu=2E0=2Efreq: 4410 >=20 >=20 > Should have a better sense in a couple of days >=20 > =C2=A0=C2=A0=C2=A0 ---Mike Ah, well=2E hwpstate_intel was new in 13, I had to read the man online=2E I guess you'll try various values from 0 to 100? Maybe this indicates where powerd or successors might move? I noticed also that you can turn it off at boot to perhaps re-engage est(4= ), or choose between the default package-level or per-cpu control, so ther= e's lots of scope for fine-tuning (or disastrous mismanagement :) You might find sysutils/stress helpful with tests; loading up N cpus and/o= r io and/or memory malloc/free, for specified lengths of time=2E It might be useful to record, say, cpu=2E0=2Etemperature with frequencies?= And maybe vm=2Eloadavg, if it's behaving itself these days =2E=2E=2E Ah, I really haven't the spare time to be this interested :) cheers, Ian > > CPU is CPU: Intel(R) Xeon(R) E-2226G CPU @ 3=2E40GHz (3400=2E00-MHz= =20 > > K8-class CPU)