Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp75039pxu; Tue, 6 Oct 2020 00:42:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhUhLx3pVowoFvFN1vOW/dCkVfmnLpvsuhrHZS7vQVN9K8mLAYhnEOdj71NZJ2jWSfBcIb X-Received: by 2002:a05:6402:13d7:: with SMTP id a23mr3785018edx.352.1601970163024; Tue, 06 Oct 2020 00:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601970163; cv=none; d=google.com; s=arc-20160816; b=ldY/eYShqlAXbKwwA/ZKeh10f4nFSqWcIoeJxDQee/XjkpCNU9+O9OAYp+QNLK5QY3 6iVycbIxT69cPIBsf+d+w79aEbOJ1OF8nTx9NO/7NpiYQRFU/c7I6nydX1esoYdjugaU JOXZn3jYaR7zIOgYuGMb7SWmVw/IGcPF2nhUKuJLO0uZt8W1ZicaVuojd18j1gYRi6mw MRxSu3baPSSP+9c9RhmpvLRIF4AZeBB73eNlHQpQ9GHZ+DU6YsX52SwpV9gs2/PwzGrO irWDZW1weOpyLw0ekrEeJEZT14T0tW6wIKuyGHiPBm6OajwNnvAUr1qYC1RADJE1W4d8 T7Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eFC0ISn2+rWqsHgSwE4sZ0+UQ3DhHxUZGAadpsJBkLw=; b=FVC2zvdhpED82eFH6lOlDSR6YXYB2SLSdB3Z0lA5AxL4XMgdL4/7wIJ/Mn6VnzJkXI arZ5Us5PfVp6PvLAZCAJPvoIKr5dtrBcEBe2ZpU9s71ju4sWd+oqgtYmSaEx6/0KbtX+ Nu1wOgOzIwueRL0ST+jl6l76xCsMzjFE8IjgFKAWKwkU+hi+wl2jK4MVEe9Kv4URPOwX PS/PlU+viynkoVBIuQLx+ftk+vdGpNqRZaMLm/XJS1SYMrob+YxK2o6Iwt3bIdKOXXF9 wWilwxXxPFbQtDlAAaUDooLOKObmNmO3yEf3+iQ/nHZOJBigsiyAyZzGY/ncm5pE8YV/ ih/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SnA6ci52; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u24si1619997ejj.66.2020.10.06.00.42.20; Tue, 06 Oct 2020 00:42:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SnA6ci52; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726897AbgJFHlU (ORCPT + 99 others); Tue, 6 Oct 2020 03:41:20 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:49480 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726670AbgJFHlU (ORCPT ); Tue, 6 Oct 2020 03:41:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601970079; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eFC0ISn2+rWqsHgSwE4sZ0+UQ3DhHxUZGAadpsJBkLw=; b=SnA6ci52OjArJTJSaAYCMYdXCqHtfbII7sEGje6ijOxmHEXl9GDSnOpEEbM1vR9B4E9+SV Iz1xWnvs10YKOTqB6E5GS6ria/6iLRrpTEnyeqQi/4KlDCvxnk4JnMHpw2hj9coboAbYdQ p/bfj68fCfXELer50PplT41HRIxJjbw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-65-JKwoqOqxNom9jlTPhAa4hQ-1; Tue, 06 Oct 2020 03:41:15 -0400 X-MC-Unique: JKwoqOqxNom9jlTPhAa4hQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EC3AE1868411; Tue, 6 Oct 2020 07:41:13 +0000 (UTC) Received: from T590 (ovpn-12-63.pek2.redhat.com [10.72.12.63]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C4C5755767; Tue, 6 Oct 2020 07:41:04 +0000 (UTC) Date: Tue, 6 Oct 2020 15:41:00 +0800 From: Ming Lei To: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Cc: Veronika Kabatova , Sagi Grimberg , Tejun Heo , Christoph Hellwig , Jens Axboe , Bart Van Assche Subject: Re: [PATCH V7 0/2] percpu_ref & block: reduce memory footprint of percpu_ref in fast path Message-ID: <20201006074100.GA26059@T590> References: <20201001154842.26896-1-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201001154842.26896-1-ming.lei@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 01, 2020 at 11:48:40PM +0800, Ming Lei wrote: > Hi, > > The 1st patch removes memory footprint of percpu_ref in fast path > from 7 words to 2 words, since it is often used in fast path and > embedded in user struct. > > The 2nd patch moves .q_usage_counter to 1st cacheline of > 'request_queue'. > > Simple test on null_blk shows ~2% IOPS boost on one 16cores(two threads > per core) machine, dual socket/numa. > > V7: > - add comments about reason for struct split Hello Jens Can you consider to merge the patchset in block tree if you are fine? Thanks, Ming