[sheepdog] [PATCH 0/2] make use of hardware acceleration for sha1
Liu Yuan
namei.unix at gmail.com
Thu Sep 5 12:47:50 CEST 2013
This patch set tries to make use of hardware acceleration for sha1, namely ssse3
and avx instructions from modern cpus.
On average, for a 4M object with random data, I get more than 50% time reduction
for sha1 generation:
Hardware-assisted Software
8.4 ms 20.6 ms
Liu Yuan (2):
sha1: add x86 hardware acceleration for sha1
sheep: restructure sd_vnode
dog/vdi.c | 15 +-
include/sha1.h | 11 +-
include/sheep.h | 26 +--
lib/Makefile.am | 2 +-
lib/sha1.c | 159 ++++++++++++++-
lib/sha1_sss3.S | 564 ++++++++++++++++++++++++++++++++++++++++++++++++++++
sheep/gateway.c | 4 +-
sheep/recovery.c | 3 +-
sheep/sheep_priv.h | 2 +-
9 files changed, 742 insertions(+), 44 deletions(-)
create mode 100644 lib/sha1_sss3.S
--
1.7.9.5
More information about the sheepdog
mailing list