From owner-freebsd-hackers@freebsd.org Sun Oct 27 21:07:15 2019 Return-Path: Delivered-To: freebsd-hackers@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 364E11A6FC4 for ; Sun, 27 Oct 2019 21:07:15 +0000 (UTC) (envelope-from leres@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 471Vm30hpbz48RM for ; Sun, 27 Oct 2019 21:07:15 +0000 (UTC) (envelope-from leres@freebsd.org) Received: from ice.alameda.xse.com (unknown [IPv6:2001:558:6045:bb:2058:ecd1:3e14:bec6]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: leres) by smtp.freebsd.org (Postfix) with ESMTPSA id BF03BC62E for ; Sun, 27 Oct 2019 21:07:14 +0000 (UTC) (envelope-from leres@freebsd.org) To: FreeBSD Hackers From: Craig Leres Subject: How to prevent underclocking when running with 1 redundant power supply Message-ID: Date: Sun, 27 Oct 2019 14:07:12 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Oct 2019 21:07:15 -0000 I have a nameserver running 11.3-RELEASE-p4. It has a Supermicro X9SRi-F motherboard in a 1U chassis with redundant PWS-406P-1R power supplies (400W each). Site power is out thanks to a PG&E "public safety power shutdown" and I find that the system is really unhappy. It looks like it is underclocking due to one power supply not being powered: # sysctl dev.cpu.0.freq_levels dev.cpu.0.freq dev.cpu.0.freq_levels: 3001/80000 3000/80000 2900/75926 2700/69558 2600/65698 2500/62669 2400/59709 2200/53206 2100/50412 2000/46962 1800/41676 1700/38423 1600/35918 1500/33467 1300/28074 1200/25787 dev.cpu.0.freq: 1200 I found powerd and tried this: powerd_enable="YES" powerd_flags="-a max -b max -n max" which works... once it's started. Now I'm finding one system has a difficult time booting because powerd is started so late in the boot process. Is there a sysctl I can put in loader.conf to disable this underclocking behavior? Thanks! Craig