From owner-freebsd-net@freebsd.org Tue Oct 20 08:24:54 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 31265A18987 for ; Tue, 20 Oct 2015 08:24:54 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1765D2E0 for ; Tue, 20 Oct 2015 08:24:54 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: by mailman.ysv.freebsd.org (Postfix) id 1752AA18985; Tue, 20 Oct 2015 08:24:54 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 16F28A18984 for ; Tue, 20 Oct 2015 08:24:54 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 79FFB2DF for ; Tue, 20 Oct 2015 08:24:52 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id t9K8ObpU066842; Tue, 20 Oct 2015 19:24:37 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Tue, 20 Oct 2015 19:24:37 +1100 (EST) From: Ian Smith To: Kevin Oberman cc: Luigi Rizzo , "jfv@FreeBSD.org" , "ricera10@gmail.com" , "Eggert, Lars" , Giuseppe Lettieri , "net@freebsd.org" Subject: Re: ixl 40G bad performance? In-Reply-To: Message-ID: <20151020190541.B15983@sola.nimnet.asn.au> References: <79830D9D-94E6-47A9-92B9-D63DF5432272@netapp.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2015 08:24:54 -0000 On Mon, 19 Oct 2015 21:47:36 -0700, Kevin Oberman wrote: > > I suspect it might not touch the c states, but better check. The safest is > > disable them in the bios. > > > > To disable C-States: > sysctl dev.cpu.0.cx_lowest=C1 Actually, you want to set hw.acpi.cpu.cx_lowest=C1 instead. Otherwise you've only changed cpu.0; if you try it you should see that other CPUs will have retained their previous C-state setting - up to 9.3 at least. Setting performance_cx_lowest=C1 in rc.conf (and economy_cx_lowest=C1 on laptops) performs that by setting hw.acpi.cpu.cx_lowest on boot (and on every change to/from battery power) in power_profile via devd notifies. cheers, Ian