All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: "Darrick J. Wong" <djwong@us.ibm.com>
Cc: Herbert Xu <herbert@gondor.hengli.com.au>,
	Theodore Tso <tytso@mit.edu>,
	Joakim Tjernlund <joakim.tjernlund@transmode.se>,
	Bob Pearson <rpearson@systemfabricworks.com>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Andreas Dilger <adilger.kernel@dilger.ca>,
	linux-crypto <linux-crypto@vger.kernel.org>,
	linux-fsdevel <linux-fsdevel@vger.kernel.org>,
	Mingming Cao <cmm@us.ibm.com>,
	linux-ext4@vger.kernel.org, linux-wireless@vger.kernel.org,
	netdev@vger.kernel.org, netfilter-devel@vger.kernel.org
Subject: Re: [PATCH v5.4 00/13] crc32c: Add faster algorithm and self-test code
Date: Wed, 18 Jan 2012 15:01:14 -0800	[thread overview]
Message-ID: <20120118150114.2e2dac2d.akpm@linux-foundation.org> (raw)
In-Reply-To: <20120118222733.4079.13377.stgit@elm3c44.beaverton.ibm.com>

On Wed, 18 Jan 2012 14:27:33 -0800
"Darrick J. Wong" <djwong@us.ibm.com> wrote:

> This patchset (re)uses Bob Pearson's crc32 slice-by-8 code to stamp out a
> software crc32c implementation.  It removes the crc32c implementation in
> crypto/ in favor of using the stamped-out one in lib/.  There is also a change
> to Kconfig so that the kernel builder can pick an implementation best suited
> for the hardware.
> 
> The motivation for this patchset is that I am working on adding full metadata
> checksumming to ext4.  As far as performance impact of adding checksumming
> goes, I see nearly no change with a standard mail server ffsb simulation.  On a
> test that involves only file creation and deletion and extent tree writes, I
> see a drop of about 50 pcercent with the current kernel crc32c implementation;
> this improves to a drop of about 20 percent with the enclosed crc32c code.
> 
> When metadata is usually a small fraction of total IO, this new implementation
> doesn't help much because metadata is usually a small fraction of total IO.
> However, when we are doing IO that is almost all metadata (such as rm -rf'ing a
> tree), then this patch speeds up the operation substantially.
> 
> Incidentally, given that iscsi, sctp, and btrfs also use crc32c, this patchset
> should improve their speed as well.  I have not yet quantified that, however.
> This latest submission combines Bob's patches from late August 2011 with mine
> so that they can be one coherent patch set.  Please excuse my inability to
> combine some of the patches; I've been advised to leave Bob's patches alone and
> build atop them instead. :/
> 
> Since the last posting, I've also collected some crc32c test results on a bunch
> of different x86/powerpc/sparc platforms.  The results can be viewed here:
> http://goo.gl/sgt3i ; the "crc32-kern-le" and "crc32c" columns describe the
> performance of the kernel's current crc32 and crc32c software implementations.
> The "crc32c-by8-le" column shows crc32c performance with this patchset applied.
> I expect crc32 performance to be roughly the same.
> 
> The two _boost columns at the right side of the spreadsheet shows how much
> faster the new implementation is over the old one.  As you can see, crc32 rises
> substantially, and crc32c experiences a huge increase.

I grabbed this lot, so it will turn up in linux-next soon.

There are quite a lot of clients of the crc32 code.  net, netfilter and
wireless are prominent, but there are others everywhere.

So I cc'ed various other mailing lists just as a heads-up that this
work is inbound and will hopefully yield performance improvements.  But
of course, it might also yield bugs.

      parent reply	other threads:[~2012-01-18 23:01 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-18 22:27 [PATCH v5.4 00/13] crc32c: Add faster algorithm and self-test code Darrick J. Wong
2012-01-18 22:27 ` Darrick J. Wong
2012-01-18 22:27 ` [PATCH 01/13] crc32: removed two instances of trailing whitespaces Darrick J. Wong
2012-01-18 22:27   ` Darrick J. Wong
2012-01-18 22:27 ` [PATCH 02/13] crc32: Move long comment about crc32 fundamentals to Documentation/ Darrick J. Wong
2012-01-18 22:27   ` Darrick J. Wong
2012-01-18 22:27 ` [PATCH 03/13] crc32: Simplify unit test code Darrick J. Wong
2012-01-18 22:27   ` Darrick J. Wong
2012-01-18 22:28 ` [PATCH 04/13] crc32: Miscellaneous cleanups Darrick J. Wong
2012-01-18 22:28   ` Darrick J. Wong
2012-01-18 22:28 ` [PATCH 05/13] crc32: Fix mixing of endian-specific types Darrick J. Wong
2012-01-18 22:28   ` Darrick J. Wong
2012-01-18 22:28 ` [PATCH 06/13] crc32: Make CRC_*_BITS definition correspond to actual bit counts Darrick J. Wong
2012-01-18 22:28   ` Darrick J. Wong
2012-01-18 22:28 ` [PATCH 07/13] crc32: Add slice-by-8 algorithm to existing code Darrick J. Wong
2012-01-18 22:28   ` Darrick J. Wong
2012-01-18 22:28 ` [PATCH 08/13] crc32: Optimize loop counter for x86 Darrick J. Wong
2012-01-18 22:28   ` Darrick J. Wong
2012-01-18 22:28 ` [PATCH 09/13] crc32: Add note about this patchset to crc32.c Darrick J. Wong
2012-01-18 22:28   ` Darrick J. Wong
2012-01-18 22:28 ` [PATCH 10/13] crc32: Bolt on crc32c Darrick J. Wong
2012-01-18 22:28   ` Darrick J. Wong
2012-01-18 22:28 ` [PATCH 11/13] crypto: crc32c should use library implementation Darrick J. Wong
2012-01-18 22:28   ` Darrick J. Wong
2012-01-18 22:28 ` [PATCH 12/13] crc32: Add self-test code for crc32c Darrick J. Wong
2012-01-18 22:28   ` Darrick J. Wong
2012-01-18 22:29 ` [PATCH 13/13] crc32: Select an algorithm via kconfig Darrick J. Wong
2012-01-18 22:29   ` Darrick J. Wong
2012-01-18 23:01 ` Andrew Morton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120118150114.2e2dac2d.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=adilger.kernel@dilger.ca \
    --cc=cmm@us.ibm.com \
    --cc=djwong@us.ibm.com \
    --cc=herbert@gondor.hengli.com.au \
    --cc=joakim.tjernlund@transmode.se \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=rpearson@systemfabricworks.com \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.