From nobody Fri Nov 18 21:28:45 2022 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 4NDVK06Bg4z4hLt1 for ; Fri, 18 Nov 2022 21:28:52 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smarthost1.sentex.ca", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NDVJz6BvRz3vrH for ; Fri, 18 Nov 2022 21:28:51 +0000 (UTC) (envelope-from mike@sentex.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of mike@sentex.net designates 2607:f3e0:0:1::12 as permitted sender) smtp.mailfrom=mike@sentex.net; dmarc=none Received: from pyroxene2a.sentex.ca (pyroxene19.sentex.ca [199.212.134.19]) by smarthost1.sentex.ca (8.16.1/8.16.1) with ESMTPS id 2AILShgB087325 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 18 Nov 2022 16:28:43 -0500 (EST) (envelope-from mike@sentex.net) Received: from [IPV6:2607:f3e0:0:4:2842:c7f9:7ac4:7d78] ([IPv6:2607:f3e0:0:4:2842:c7f9:7ac4:7d78]) by pyroxene2a.sentex.ca (8.16.1/8.15.2) with ESMTPS id 2AILShNT051652 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Fri, 18 Nov 2022 16:28:43 -0500 (EST) (envelope-from mike@sentex.net) Message-ID: <9d17ea30-4b10-2aa3-9d09-017da7423844@sentex.net> Date: Fri, 18 Nov 2022 16:28:45 -0500 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 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Content-Language: en-US To: FreeBSD Questions From: mike tancsa Subject: RELENG_13 and min cpu frequency Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 64.7.153.18 X-Spamd-Result: default: False [-3.22 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-0.97)[-0.970]; NEURAL_HAM_SHORT(-0.85)[-0.852]; R_SPF_ALLOW(-0.20)[+ip6:2607:f3e0::/32]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[199.212.134.19:received]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; ASN(0.00)[asn:11647, ipnet:2607:f3e0::/32, country:CA]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEFALL_USER(0.00)[mike]; RCVD_COUNT_THREE(0.00)[3]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_ALL(0.00)[]; DMARC_NA(0.00)[sentex.net]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4NDVJz6BvRz3vrH X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N I noticed that when I moved from an old RELENG11 to RELENG13 firewall, I was starting to get dropped packets.  Looking at when it was happening, it actually seems to happen at times where the network load is really low?!?!  When I see a high PPS or high bandwidth, I dont get overruns on the nic.  Trying to figure out whats going on, it seems to correlate with when the CPU reduces its frequency to save on power. When its in turbo mode, it scales up to 4300, but then in the quiet hours, it goes down to 800 and that seems to be when I start getting the odd overrun. e.g. printing it out every second, I see while true do /sbin/sysctl -n dev.cpu.0.freq sleep 1 done 4308 4308 4308 4308 1902 900 900 900 4308 4308 4308 4308 4308    Whats the best way to set the box NOT to scale down the CPU below a certain frequency ? I want to see if not letting it drop below 3000 prevents packet overruns when there is a burst of traffic from a time of things being quiet ? Setting debug.cpufreq.lowest: to 3000 does not seem to make a difference dev.cpu.0.cx_method: C1/hlt dev.cpu.0.cx_usage_counters: 229391593 dev.cpu.0.cx_usage: 100.00% last 87us dev.cpu.0.cx_lowest: C1 dev.cpu.0.cx_supported: C1/1/0 dev.cpu.0.freq_levels: 3400/-1 dev.cpu.0.freq: 1302 dev.cpu.0.temperature: 43.0C dev.cpu.0.coretemp.throttle_log: 0 dev.cpu.0.coretemp.tjmax: 100.0C dev.cpu.0.coretemp.resolution: 1 dev.cpu.0.coretemp.delta: 57 dev.cpu.0.%parent: acpi0 dev.cpu.0.%pnpinfo: _HID=none _UID=0 _CID=none dev.cpu.0.%location: handle=\_SB_.PR00 dev.cpu.0.%driver: cpu dev.cpu.0.%desc: ACPI CPU sysctl -A debug.cpufreq debug.cpufreq.verbose: 0 debug.cpufreq.lowest: 0 CPU is CPU: Intel(R) Xeon(R) E-2226G CPU @ 3.40GHz (3400.00-MHz K8-class CPU)