Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp443841rdh; Tue, 19 Dec 2023 03:59:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHtr7CoygswP2H3VwVbx4u/n72TWoXG3nZw2KDkygEVtwGG4TlDnQ3jOZ+1I7DuIrPiJqpB X-Received: by 2002:a05:620a:1a0d:b0:77d:6804:aeda with SMTP id bk13-20020a05620a1a0d00b0077d6804aedamr23208857qkb.19.1702987186997; Tue, 19 Dec 2023 03:59:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702987186; cv=none; d=google.com; s=arc-20160816; b=SBHRza9b6RBHOvxT/a0NFTmQuzSQUaxuV7x8v48sU1cOlZLQDmMjeOPDnAgG9aAgGA Y2u1qAkp5kc+uSTzw3LLb2pqBNSwjXPkNS+lTdHttR86BYYe+xvY1kLRFrvrRwUDeV7I pLjOXHuf9P5Oj57yBEtS2lPEQihwT574u5iWltM7P9MBl7pa1/mfObzA9qEZojDGCykp kUIfE9kel1DQFpSqmNGwkUuLh441zSiT0HQCLRynXFrSlLxnztGsBlcMnTnNIL2jnLHM wDUNf+6NC603h/qUHkAjhpKsb6ksdexBiiIi0jX7hMT8QCUdreqfSc+RJRUJei4TDcC5 pcBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=zRZTfMJl5C7xdAtnUeUo0z8eB6SUbLVOKctuKxplhSk=; fh=ZQvkKjxMICS2O4iYL1J7l5FOHdU+Lfn+xG15GsFPvwE=; b=Cd1jKNEyBIwldR3L8LcyX2I1LAFpxa0N1uWto9YMuLY4A+QhFzXcJd+ywDaKi2Iu6u xLUTsGQW4yA/Tfu+o6YDqKGVQ7gbZ1LGgxV2OAmg/0njlaNShzbT4QK3G/kGKmfM3iV4 h6IDwkirQW29Uhg/J5PbC23oFCTOKcO1GROv4Ktk1A1ohQ7gBtXBtnwqXrf4ON7X+Ucg j837sSXV2rwic9t5wSKt8qSirPaEWf5bJJ3k4cSqS6uva5ZDFbO4ExFSuCp0zvPe8tmY aqaa7SR9C4QvfkcqBDKCrF6QvHWql4ewIJipau5k2wNmOnOJZcdtDOZsc6HV0NSdpTZe y+iQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-5128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5128-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bl17-20020a05620a1a9100b0077f3c8298a2si26624222qkb.0.2023.12.19.03.59.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 03:59:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-5128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5128-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 08F7E1C23F07 for ; Tue, 19 Dec 2023 11:59:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D04851C295; Tue, 19 Dec 2023 11:59:33 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4D341C293 for ; Tue, 19 Dec 2023 11:59:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 2C1FD221F9; Tue, 19 Dec 2023 11:59:30 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 8B0671375D; Tue, 19 Dec 2023 11:59:29 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id IBz1HqGFgWV1OgAAD6G6ig (envelope-from ); Tue, 19 Dec 2023 11:59:29 +0000 Message-ID: Date: Tue, 19 Dec 2023 12:59:29 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 6/6] nvme: repack struct nvme_ns_head Content-Language: en-US To: Daniel Wagner , linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Keith Busch , Christoph Hellwig , Sagi Grimberg , Max Gurtovoy , Chaitanya Kulkarni References: <20231218165954.29652-1-dwagner@suse.de> <20231218165954.29652-7-dwagner@suse.de> From: Hannes Reinecke In-Reply-To: <20231218165954.29652-7-dwagner@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Level: X-Spam-Level: Authentication-Results: smtp-out1.suse.de; none X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[] X-Spam-Score: -4.00 X-Rspamd-Queue-Id: 2C1FD221F9 X-Spam-Flag: NO On 12/18/23 17:59, Daniel Wagner wrote: > ns_id, lba_shift and ms are always accessed for every read/write I/O in > nvme_setup_rw. By grouping these variables into one cacheline we can > safe some cycles. > > 4k sequential reads: > > baseline patched > Bandwidth: 1620 1634 > IOPs 66345579 66910939 > > Reviewed-by: Christoph Hellwig > Reviewed-by: Sagi Grimberg > Signed-off-by: Daniel Wagner > --- > drivers/nvme/host/nvme.h | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Ivo Totev, Andrew McDonald, Werner Knoblich