Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7278479imu; Thu, 31 Jan 2019 07:49:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN4wkUyaNNkjANVjqXi4lYWbO776flMKPRKO/VEAdiJSPh6AeQbiJjQM9mhLRyeleKi+4WpZ X-Received: by 2002:a17:902:7614:: with SMTP id k20mr35815249pll.285.1548949792029; Thu, 31 Jan 2019 07:49:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548949792; cv=none; d=google.com; s=arc-20160816; b=HbxCDelE1z10fSMrUWP+FM7KVVT75zcP7iextaE3cCW13Bsot/yADEzzoANkWYJUaE v7+nq6SLaKvkMaGfQGf49SovDrEAVE2uIac+rS/4WCr1+NUT67QBQSAI4m8KglqBIR/z wqhT2ppTcr6+KqYkk6sYjSYxp6fruH5GUdhHwtwb5ns3WTBWAWpxklR2q0NtoTb04LbR jvnQNP2Kwz9Zv3ufMWdsLwKuhYa7ZdwmK/qv0TrsMZNClGp6spTXXq4ttwj8dzt7QsRn EOyUvZ9TLd+CobRmI9OLVX+yKUfzJtO7ZilDwa0V/unIQV/eaRewKrfnf1CVZ09KO7aK Tx3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :dkim-signature; bh=bZe05LeFwWkwD1dYxHAECYci48pntEe72FbkOp3ldwg=; b=LpoOIMz9O5AtxQW8yVj5/nxaLvasTs2lGwn51rITmTNgvqgqENHV13LsiKYVxOjmDN pEl6+zxdTaySfxpgNlOeFx5HxbbrC/ZY26+rFOB7dnUyBWSPDB8kWLhiBL/dUHI+TdqF 02U+rZf2xcYqRiDKBKt9kWG9vimi3QDQbLKyUEEMkzFDxJPl2Jpm+D9dkjkhVDOXbG7c fhV1EDpJHFvMsjFNEUi0Fog1KegZEdwk2+Jr1/JITJRTvBb3fNLzT8p1r7jwa7UhyYro zKXf9L8PPMo/k1yh29AtsQCw/STJ+vWK9vzAMW9qCutSS7fp795+VQWpOlRuNq7Ghllh ymLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=bNXgVSNf; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=irqteWkU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si4836456plb.103.2019.01.31.07.49.36; Thu, 31 Jan 2019 07:49:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=bNXgVSNf; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=irqteWkU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387773AbfAaPt3 (ORCPT + 99 others); Thu, 31 Jan 2019 10:49:29 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:42896 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbfAaPt0 (ORCPT ); Thu, 31 Jan 2019 10:49:26 -0500 Received: from pps.filterd (m0148460.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x0VFcmOf002531; Thu, 31 Jan 2019 07:49:21 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=facebook; bh=bZe05LeFwWkwD1dYxHAECYci48pntEe72FbkOp3ldwg=; b=bNXgVSNfjUyF1QpoRUEW0BZQHo5ZVc/P8eWuBJJ2NnYDxkANPP+KAN/PV2FFpEF0Fo24 b/MzuI5ASLBdWbankDhd8AsvdekwTQs6vmRm/6XP2LKgjeH+80jy8a3folZPTYvqfZNk BbCzdr01Map2J4ChkDqRAriNAWOKSHLTQNE= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2qc1a10hxk-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 31 Jan 2019 07:49:21 -0800 Received: from frc-hub03.TheFacebook.com (2620:10d:c021:18::173) by frc-hub01.TheFacebook.com (2620:10d:c021:18::171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1531.3; Thu, 31 Jan 2019 07:48:13 -0800 Received: from NAM01-SN1-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1531.3 via Frontend Transport; Thu, 31 Jan 2019 07:48:13 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bZe05LeFwWkwD1dYxHAECYci48pntEe72FbkOp3ldwg=; b=irqteWkUnlrYuuwlSY75KLhmCQgcTurVq6Ts9VTfnoZO0p7OL601SPpkc/VQg7ygpHdMdzMZvECYCbSAuC6KMCIrhs52hy4trkg6Kh0xsNMH6stz0MJYbGYzJE01sbwAqTf4Vg7xpm3dYz2h4qPOPwkl3bZDtw2DsqVYqUTdZF4= Received: from DM5PR15MB1883.namprd15.prod.outlook.com (10.174.247.135) by DM5PR15MB1209.namprd15.prod.outlook.com (10.173.209.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.17; Thu, 31 Jan 2019 15:48:11 +0000 Received: from DM5PR15MB1883.namprd15.prod.outlook.com ([fe80::9c23:2db3:1e2a:4796]) by DM5PR15MB1883.namprd15.prod.outlook.com ([fe80::9c23:2db3:1e2a:4796%9]) with mapi id 15.20.1558.025; Thu, 31 Jan 2019 15:48:11 +0000 From: Chris Mason To: Dave Chinner CC: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-xfs@vger.kernel.org" , Roman Gushchin , "akpm@linux-foundation.org" , "mhocko@kernel.org" , "vdavydov.dev@gmail.com" Subject: Re: [PATCH 1/2] Revert "mm: don't reclaim inodes with many attached pages" Thread-Topic: [PATCH 1/2] Revert "mm: don't reclaim inodes with many attached pages" Thread-Index: AQHUuFK1zOCFq26G8UWPT6kjO3PxRaXHu+OAgADdj4CAAO6hAA== Date: Thu, 31 Jan 2019 15:48:11 +0000 Message-ID: References: <20190130041707.27750-1-david@fromorbit.com> <20190130041707.27750-2-david@fromorbit.com> <25EAF93D-BC63-4409-AF21-F45B2DDF5D66@fb.com> <20190131013403.GI4205@dastard> In-Reply-To: <20190131013403.GI4205@dastard> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: MailMate (1.12.4r5594) x-clientproxiedby: BN6PR22CA0065.namprd22.prod.outlook.com (2603:10b6:404:ca::27) To DM5PR15MB1883.namprd15.prod.outlook.com (2603:10b6:4:4f::7) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c091:180::1:9acc] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR15MB1209;20:+FzV+hhrDmQEdxoitFZHMT1PWZE7vg7QVpjtg3fRRI++YbjJrFPkeiv1km3ZE8ZjHz4/t9we3eW7BEFd9clrMLWIlisFjIRaFAmscQ+UxPcOymw+6oFx7LLtoWXKkCRC+Zz8xqjTb4/kjZFVHc7Fnii2sSOhLT45BtwvJ31mR2Y= x-ms-office365-filtering-correlation-id: 7bc2a95f-4cab-4b25-b16f-08d687938109 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(2017052603328)(7153060)(7193020);SRVR:DM5PR15MB1209; x-ms-traffictypediagnostic: DM5PR15MB1209: x-microsoft-antispam-prvs: x-forefront-prvs: 09347618C4 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(396003)(346002)(136003)(366004)(39860400002)(199004)(51444003)(189003)(478600001)(76176011)(82746002)(6486002)(7736002)(386003)(6506007)(53546011)(6116002)(52116002)(102836004)(6306002)(53936002)(186003)(305945005)(33656002)(316002)(14454004)(6512007)(6436002)(966005)(50226002)(93886005)(99286004)(54906003)(106356001)(11346002)(71190400001)(83716004)(71200400001)(2616005)(97736004)(105586002)(476003)(486006)(4326008)(81166006)(446003)(8676002)(39060400002)(68736007)(6916009)(2906002)(36756003)(86362001)(25786009)(256004)(6246003)(8936002)(229853002)(81156014)(46003);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR15MB1209;H:DM5PR15MB1883.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: fb.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 9SmKB3ybe3AJs41yp/NbPRUtthMoM3CtIIzj9St+4hN+bwL610v10VwXgcAc7T+kAaVWM8shjbUPh7pOLd1llEIsulbs7WP0DNDUHCPu/O4TlV2kevsmPpaNQbzg818zsJ/O8ck6HQ82LuP6mT4ZeUllKug7+5IK9qN64hL8YcxhOIoxulMHaG7vN6CfHXM+QDOBhPMDpfZNsDbAFjB9ec6GwsJnduWU4hdzTI4p6WnhTE3whPdQs7H0Nil090YrsvYPfJcNH77I9qoq5Mk+gJ5xovj7VhOuyB2o82a3wcYR/cCl2Jny6i7HHg0WQsnOdu7DpiUi9tQC2NvkbQWhze25RKLklClcDNCS6BBV4NVsi57kpxjLL21zkirRJTh+84VAop8ug0nJehsegHwIv64Kwa0Csgx9n0BKRox0Sfc= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 7bc2a95f-4cab-4b25-b16f-08d687938109 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jan 2019 15:48:10.3172 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR15MB1209 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-31_08:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30 Jan 2019, at 20:34, Dave Chinner wrote: > On Wed, Jan 30, 2019 at 12:21:07PM +0000, Chris Mason wrote: >> >> >> On 29 Jan 2019, at 23:17, Dave Chinner wrote: >> >>> From: Dave Chinner >>> >>> This reverts commit a76cf1a474d7dbcd9336b5f5afb0162baa142cf0. >>> >>> This change causes serious changes to page cache and inode cache >>> behaviour and balance, resulting in major performance regressions >>> when combining worklaods such as large file copies and kernel >>> compiles. >>> >>> https://bugzilla.kernel.org/show_bug.cgi?id=3D202441 >> >> I'm a little confused by the latest comment in the bz: >> >> https://bugzilla.kernel.org/show_bug.cgi?id=3D202441#c24 > > Which says the first patch that changed the shrinker behaviour is > the underlying cause of the regression. > >> Are these reverts sufficient? > > I think so. Based on the latest comment: "If I had been less strict in my testing I probably would have=20 discovered that the problem was present earlier than 4.19.3. Mr Gushins=20 commit made it more visible. I'm going back to work after two days off, so I might not be able to=20 respond inside your working hours, but I'll keep checking in on this as=20 I get a chance." I don't think the reverts are sufficient. > >> Roman beat me to suggesting Rik's followup. We hit a different=20 >> problem >> in prod with small slabs, and have a lot of instrumentation on Rik's >> code helping. > > I think that's just another nasty, expedient hack that doesn't solve > the underlying problem. Solving the underlying problem does not > require changing core reclaim algorithms and upsetting a page > reclaim/shrinker balance that has been stable and worked well for > just about everyone for years. > Things are definitely breaking down in non-specialized workloads, and=20 have been for a long time. -chris