From owner-freebsd-current@freebsd.org Fri May 26 21:57:19 2017 Return-Path: Delivered-To: freebsd-current@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 6461DD823F6 for ; Fri, 26 May 2017 21:57:19 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-QB1-obe.outbound.protection.outlook.com (mail-eopbgr660079.outbound.protection.outlook.com [40.107.66.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0ABA810DF for ; Fri, 26 May 2017 21:57:18 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM (10.165.218.133) by YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM (10.165.218.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Fri, 26 May 2017 21:57:16 +0000 Received: from YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM ([10.165.218.133]) by YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM ([10.165.218.133]) with mapi id 15.01.1124.013; Fri, 26 May 2017 21:57:16 +0000 From: Rick Macklem To: "freebsd-current@freebsd.org" Subject: NFS client perf. degradation when SCHED_ULE is used (was when SMP enabled) Thread-Topic: NFS client perf. degradation when SCHED_ULE is used (was when SMP enabled) Thread-Index: AQHS1mmgxqkdxhAY5U2DZ8FjIm51zg== Date: Fri, 26 May 2017 21:57:16 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=uoguelph.ca; x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; YTXPR01MB0189; 7:R4A19J+bQQ515HQlmnDBsZuulPTG8FvDX1krhaaIh68seiwekAdF721SayIrdQcb09M3dRLysAXxKz/6TnzzW3f51RGzm3fPvIcm9KWYbGVkPMB2BgTXMbWN6odyJ3NfOtJMPDFeZ5D5xavHyiSw/Xq32DjvoKywvOYUbgU5aYPyYW8cnDxM5sL/q/1OeQLJudR6AmYNQFREQwVLJu+FRdxisH4Xp9w7U1AByiL7+t0UEDiCvPrxp3zPXW8aVuPStU0SubYLn5EdCWqdlCWJO/fBuFw3yGYK7WjOYLr3FThlwqfXj0smPr10f5KC1FZrJW6RAt3ACL0jx/E09wYA7Q== x-ms-traffictypediagnostic: YTXPR01MB0189: x-ms-office365-filtering-correlation-id: e6ee8e40-00af-44dc-161f-08d4a4822c7f x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:YTXPR01MB0189; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(6041248)(201703131423075)(201702281529075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(20161123555025)(20161123564025)(20161123562025)(6072148); SRVR:YTXPR01MB0189; BCL:0; PCL:0; RULEID:; SRVR:YTXPR01MB0189; x-forefront-prvs: 031996B7EF x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39450400003)(39850400002)(39400400002)(39410400002)(39840400002)(6916009)(5640700003)(2351001)(2900100001)(86362001)(8936002)(14454004)(8676002)(110136004)(102836003)(38730400002)(2501003)(81166006)(478600001)(53936002)(3660700001)(3280700002)(74316002)(305945005)(2906002)(55016002)(9686003)(50986999)(6506006)(6436002)(7696004)(54356999)(25786009)(74482002)(189998001)(122556002)(77096006)(5660300001)(33656002); DIR:OUT; SFP:1101; SCL:1; SRVR:YTXPR01MB0189; H:YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-originalarrivaltime: 26 May 2017 21:57:16.4111 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTXPR01MB0189 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 May 2017 21:57:19 -0000 To briefly summarize the previous post related to perf. degradation when ru= nning a recent kernel... - kernel build running 1yr old kernel took 100minutes - same kernel build running recent kernel 148minutes (ie. Almost a 50% degradation.) As noted in the last post, I got rid of most of the degradation by disablin= g SMP. - same kernel build running recent kernel with SCHED_4BSD 104minutes I have now found I can get rid of almost all of the degradation by building= the recent kernel with options SCHED_4BSD instead of options SCHED_ULE The 1yr old kernel was built with SCHED_ULE, so the degradation is some cha= nge to the kernel since Apr. 12, 2016 that affects SCHED_ULE but not SCHED_4BSD= . Any ideas? Since GENERIC uses SCHED_ULE, it would be nice to see good perf. with that = option. However, recommending "options SCHED_4BSD" is nicer than recommending disab= ling SMP;-) rick ps: I tried the 1yr old net driver in the recent kernel and it had no effec= t on perf.=