Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp382109imm; Fri, 10 Aug 2018 13:03:30 -0700 (PDT) X-Google-Smtp-Source: AA+uWPz29tU1WEI6aKkV+a3LvtlWogf0/AmTdlSLxSguJToenl7h8aB7zIjhPHCUgmr7/hw7d5h5 X-Received: by 2002:a62:4ece:: with SMTP id c197-v6mr8498458pfb.240.1533931410770; Fri, 10 Aug 2018 13:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533931410; cv=none; d=google.com; s=arc-20160816; b=YhQKdstnCHufXDOzHXO+pJMX8rMMHkM0LfYf6esW2dOPUb6Enphg7gjj9o2vUYw1vo 15zHJpXMIHXrNQ5DkX/EDUomkcNw+g0UA7znQUiIrDl/7qPnNgNnZ3M18yWYLk4pxNcY zt7IcLIFANaypQfbLBuEQo69i62l+dylp5DJwI8FjH5cxFKOQg8Mti4eHkC6XdLBgsoz 8+dN5cnyktt6wfro+XFlxnlnWk/7ZqrhFUinFCI1VbEcFLWxIwZPqj8kRONn4elXleFY xloTyQRfuOOnrSypdzq5a1UXej6Q7q+UkGC9OgVVD83mm8aajjaZjOiMyCpeJWsDEwKS /yYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=rfgl7nWwcXjgpaxppA5Ekhm9kG4iKHMbINuF4vQQ3L0=; b=cRd3BohCjnpy8Rn7vAhzTtnJ82NlqKTWVXSrbU0GtWSd+viijQUsvQ5mZKJNQ/0I5Z 39KK6yZ2WCJOIwnZ7fWXfbAo8hrp1/8fMz1vjw8iFFXMKyWOHdUzly66KFEKsOPIrae9 kF8V0k9FNn0qmTWTeTFBau4h2ZPiOJNYXC1LYLBPpN71u42+KZpbqbVRCE7pJeTICWaI 13H48LkYuPnJKyyUcESuVQwkcfsJFt87jfDPIij30Anp/PXc7W2KKgybE9hki6+T8vjd GTl4RUsEhKWtpgR/vFa+cKlj1df12ja76jf8padf8qqkLyBCL10+5rrvIhoQPQaLu/bP oIKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BCFR34Gp; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 68-v6si9507552pla.332.2018.08.10.13.03.15; Fri, 10 Aug 2018 13:03:30 -0700 (PDT) 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=@linaro.org header.s=google header.b=BCFR34Gp; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727218AbeHJWdo (ORCPT + 99 others); Fri, 10 Aug 2018 18:33:44 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:43701 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726982AbeHJWdo (ORCPT ); Fri, 10 Aug 2018 18:33:44 -0400 Received: by mail-qt0-f194.google.com with SMTP id f18-v6so11554263qtp.10 for ; Fri, 10 Aug 2018 13:02:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=rfgl7nWwcXjgpaxppA5Ekhm9kG4iKHMbINuF4vQQ3L0=; b=BCFR34Gpefs11IfRGWX+rUdowaTCRnyzgAUXAcY707TZzupmzD7LjnKQ4luuBxy5M8 BfzMkXOHE0Q3CNp3ee8q5N3C8mMYop51GQQpiQUHrSBIFQlC4F50fCjaShhx5BmDhZAv TuV/yMGtM9zIxoUznI9EUWhpXD+RQ4T7mjtoI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=rfgl7nWwcXjgpaxppA5Ekhm9kG4iKHMbINuF4vQQ3L0=; b=VQMtlXO37FkRoAB91Ib/Y+cv9roUi9KbqJtDXWHQJpZjFzNKkMmFSIJ/km+xeoench YjQYw7Ct1rU+YOqTEZTICPtZl+J4k2U+vC8pHJvfkoZJXpbwp4WS478QEa3uFAT42shb VH6ZaK5rMvmTgJZLF2aFXrk+VSk0ecNamQAklACFrOASmx052oWMAsZdvB8U7mV9Bw90 PZkV01iVee5wmkigAo5oiiM75JLQ5ZfPxbQ9Y9wc70HLCwBvIfK3d2dEE3DLtTVdQXuU jcVh1ZqfdyqQO6VjGsfl1mwO/heT7A6uAG81jOcswA0yh7/egeRfrO4FGC6NL/lD5m3X ajzg== X-Gm-Message-State: AOUpUlGFBoht3szBx5Dm3gkvNWJSIZ9YG0UKKw9J/uYPCph5EcbWUbrg bS1mAGUvQUwYwFbySs3HkZ3nqA== X-Received: by 2002:ac8:4102:: with SMTP id q2-v6mr7998736qtl.222.1533931345098; Fri, 10 Aug 2018 13:02:25 -0700 (PDT) Received: from xanadu.home (modemcable228.104-82-70.mc.videotron.ca. [70.82.104.228]) by smtp.gmail.com with ESMTPSA id 25-v6sm7389041qtx.91.2018.08.10.13.02.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Aug 2018 13:02:24 -0700 (PDT) Date: Fri, 10 Aug 2018 16:02:23 -0400 (EDT) From: Nicolas Pitre To: Joe Perches cc: Jeff Lien , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, herbert@gondor.apana.org.au, tim.c.chen@linux.intel.com, martin.petersen@oracle.com, david.darrington@wdc.com, jeff.furlong@wdc.com Subject: Re: [PATCH] Performance Improvement in CRC16 Calculations. In-Reply-To: <9b5b906f42dfab78f382c90f66851717d258a15d.camel@perches.com> Message-ID: References: <1533928331-21303-1-git-send-email-jeff.lien@wdc.com> <9b5b906f42dfab78f382c90f66851717d258a15d.camel@perches.com> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 10 Aug 2018, Joe Perches wrote: > On Fri, 2018-08-10 at 14:12 -0500, Jeff Lien wrote: > > This patch provides a performance improvement for the CRC16 calculations done in read/write > > workloads using the T10 Type 1/2/3 guard field. For example, today with sequential write > > workloads (one thread/CPU of IO) we consume 100% of the CPU because of the CRC16 computation > > bottleneck. Today's block devices are considerably faster, but the CRC16 calculation prevents > > folks from utilizing the throughput of such devices. To speed up this calculation and expose > > the block device throughput, we slice the old single byte for loop into a 16 byte for loop, > > with a larger CRC table to match. The result has shown 5x performance improvements on various > > big endian and little endian systems running the 4.18.0 kernel version. > > Thanks. > > This seems a sensible tradeoff for the 4k text size increase. More like 7.5KB. Would be best if this was configurable so the small version remained available. Nicolas