From owner-freebsd-bugs@FreeBSD.ORG Fri Jul 20 12:10:10 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E3B47106564A for ; Fri, 20 Jul 2012 12:10:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BBD228FC15 for ; Fri, 20 Jul 2012 12:10:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q6KCAAL3052743 for ; Fri, 20 Jul 2012 12:10:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q6KCAAmU052742; Fri, 20 Jul 2012 12:10:10 GMT (envelope-from gnats) Resent-Date: Fri, 20 Jul 2012 12:10:10 GMT Resent-Message-Id: <201207201210.q6KCAAmU052742@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Steve McCoy Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 709531065675 for ; Fri, 20 Jul 2012 12:00:33 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 1CEFC8FC0A for ; Fri, 20 Jul 2012 12:00:27 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q6KC0QQU058780 for ; Fri, 20 Jul 2012 12:00:26 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q6KC0QaW058779; Fri, 20 Jul 2012 12:00:26 GMT (envelope-from nobody) Message-Id: <201207201200.q6KC0QaW058779@red.freebsd.org> Date: Fri, 20 Jul 2012 12:00:26 GMT From: Steve McCoy To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/170021: ACPI idle causes I/O slowdown as of r209897 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2012 12:10:11 -0000 >Number: 170021 >Category: kern >Synopsis: ACPI idle causes I/O slowdown as of r209897 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 20 12:10:10 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Steve McCoy >Release: 8.3-STABLE >Organization: >Environment: FreeBSD 4oneQA1 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #6 r209897: Tue Jul 17 09:42:40 EDT 2012 smccoy@newcastle83:/usr/obj/usr/relbuild/os/8revs/testk/sys/GENERIC i386 >Description: We saw this when moving from 8.1 to 8.3; I later found that r209897 is the specific change that introduces this issue. Kernels after r209897 show a 20% drop in performance for Postgres's pgbench, and we've also been using "bonnie", which shows similar or worse drops. We have a possible workaround: Eric van Gyzen on freebsd-stable suggested changing the value of the machdep.idle sysctl from "acpi". I've tried "mwait" so far and it restores I/O performance (or bettered it in a couple cases). Our system is an Intel S5520UR Server with 12 GB RAM, dual 4-core CPUs. Storage is a LSI MegaSAS 1078 controller (mfi) in a RAID-10 configuration, using UFS + geom_journal for filesystem. Here's a summary of the averaged bonnie outputs for r209896, r209897, and r209897 with machdep.idle=mwait: ------------Sequential Output------------ ------Sequential Input----- ----Random--- --Per Char-- -----Block---- ---Rewrite-- --Per Char-- -----Block---- ----Seeks---- Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec %CPU 209896 100 141372 99.66 176170 54.72 226918 62.42 153879 100.04 3551889 98.74 275536 232.08 209897 100 99306 99.78 89651.8 49.82 110016 74.5 152890 99.52 4443177 95.72 171110 181.42 +mwait 100 177231 99.98 364950 66.14 423017 66.2 153827 99.26 3288740 103.1 279108 240.38 The send-pr web page indicates the formatting of the above may get messed up, so here's an alternative view, if you can't read it: http://itsapad.appspot.com/262002/raw >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: