From nobody Fri Nov 18 21:50:53 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 4NDVpQ4Lf1z4hQcN for ; Fri, 18 Nov 2022 21:50:54 +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 4NDVpP3D9zz3yKZ for ; Fri, 18 Nov 2022 21:50:53 +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 2AILoqEI007374 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 18 Nov 2022 16:50:52 -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 2AILoqoj058382 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Fri, 18 Nov 2022 16:50:52 -0500 (EST) (envelope-from mike@sentex.net) Message-ID: Date: Fri, 18 Nov 2022 16:50:53 -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 Subject: Re: RELENG_13 and min cpu frequency Content-Language: en-US From: mike tancsa To: FreeBSD Questions References: <9d17ea30-4b10-2aa3-9d09-017da7423844@sentex.net> In-Reply-To: <9d17ea30-4b10-2aa3-9d09-017da7423844@sentex.net> 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.21 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-0.97)[-0.966]; NEURAL_HAM_SHORT(-0.85)[-0.848]; 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: 4NDVpP3D9zz3yKZ X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On 11/18/2022 4:28 PM, mike tancsa wrote: > 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 ? > > I tried with powerd e.g # powerd -v -m 3000 -a max -n max powerd: unable to determine AC line status now operating on unknown power; changing frequency to 3400 MHz now operating on unknown power; changing frequency to 3400 MHz now operating on unknown power; changing frequency to 3400 MHz now operating on unknown power; changing frequency to 3400 MHz now operating on unknown power; changing frequency to 3400 MHz now operating on unknown power; changing frequency to 3400 MHz now operating on unknown power; changing frequency to 3400 MHz now operating on unknown power; changing frequency to 3400 MHz now operating on unknown power; changing frequency to 3400 MHz yet checking the freq sysctl -a dev.cpu.0.freq dev.cpu.0.freq: 900 If I start up  cat /dev/urandom | md5 then  sysctl -a dev.cpu.0.freq dev.cpu.0.freq: 4308 powerd doesnt seem to work in this case