Received: by 10.223.185.116 with SMTP id b49csp918585wrg; Wed, 21 Feb 2018 09:01:59 -0800 (PST) X-Google-Smtp-Source: AH8x227nG9kmoqfHvVGDOUe2AoJy0eE6lRa55+lqRj/j/RfFwdmz13+ay+uJzQ8xW8//R1IRnuT1 X-Received: by 10.99.111.130 with SMTP id k124mr3347539pgc.236.1519232519665; Wed, 21 Feb 2018 09:01:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519232519; cv=none; d=google.com; s=arc-20160816; b=Iiw5Z9e5LMsWtMeJUrAM7HelCzE9mOYyZUMALCbOx4l+Vb8AmWbDAR4Fbb+JlM1PHB fZlWGRmT5fPSbNll+udbu3Rv4WutOFaHXvrd0ZgceSpFRfla/YZnOro5kHEqKfkotY68 qbXgr4uPFyXOyY8nGJWL0f21LrWq8Qbn3uxe43dLN1Kxj46EnN9+Rvglk1d0XJaE0O1t AMZrzoLNtOtNeXFcBxbtUVOWspPWmwOJD2qjibhiAUdSHDYCHDifANsEb327XVZGBb4X afyZ/Q1zT/5fdxQLi9Ru4mCisLTdc8kfxbQ9V6soJqU6eSkF37Egbscz5sIGBrBvXpwt iykw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=tApXZrt5YFjgp1qdqWCN/28TERYIn6XCxj57S7vBetk=; b=KLoW/62dAWXvF80W4D6JsbxOw/Acxg00b2ck1djRh+4yX4AmHW43x7HNLpTlL66/Pv 86Z0/lnfJnykADFQCO4GGL6VviDcigU56ht9Tz05hop31W/3UB1mSw/jhyeTQ7q/TWCH 27q9pgOVeXU5kZIvS4StBBUFQP52st+KUsPgZkkiIrBlcAjyflpTo/3CeImVMxOt2cB2 sKhJvrj5kzhEcxn0ZPkDqKWzl/g9Oems9rSeDM7EYXkxzZr5OMPRb6+3DlKzelFZzbRY N27XfqYX00NY3i17DXv9j1ODa8w7ZmFaWMAK8DUfvm3TN/0bwyDmxh9k3cU0izolWfpo v8/A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2-v6si1963896pln.115.2018.02.21.09.01.25; Wed, 21 Feb 2018 09:01:59 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933552AbeBULj7 (ORCPT + 99 others); Wed, 21 Feb 2018 06:39:59 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:38052 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932123AbeBULj6 (ORCPT ); Wed, 21 Feb 2018 06:39:58 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 98EDF1150; Wed, 21 Feb 2018 11:39:57 +0000 (UTC) Date: Wed, 21 Feb 2018 12:40:00 +0100 From: Greg Kroah-Hartman To: Tommi Rantala Cc: Tahsin Erdogan , Theodore Ts'o , Andreas Dilger , linux-ext4@vger.kernel.org, LKML Subject: Re: backporting "ext4: inplace xattr block update fails to deduplicate blocks" to LTS kernels? Message-ID: <20180221114000.GB6555@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 19, 2018 at 03:26:37PM +0200, Tommi Rantala wrote: > Hi, > > 4.9 (and earlier) LTS kernels are missing this: > > commit ec00022030da5761518476096626338bd67df57a > Author: Tahsin Erdogan > Date: Sat Aug 5 22:41:42 2017 -0400 > > ext4: inplace xattr block update fails to deduplicate blocks > > > OK to backport it? > I tested it briefly in 4.9, seems to work. > > One of our testers noticed a glusterfs performance regression when going > from 4.4 to 4.9, caused by the duplicated blocks. > > In I understand everything correctly, in 4.4 mbcache uses the block number > in the hash table bucket calculation, and the hash table is populated quite > evenly even if there are duplicates. So the mbcache is fast. > > But in later kernels mbcache puts all the duplicate entries into a single > bucket. As the entries are stored in one big linked list, this obviously > makes the mbcache slow. > > > I tested this in 4.9 (which still has the ext4_xattr_rehash() call that got > eliminated in commit "ext4: eliminate xattr entry e_hash recalculation for > removes"): I need an ack from the ext4 maintainers before I can take this...