Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VNz-hgS-Kv3g for ; Thu, 1 Sep 2011 23:25:09 +0200 (CEST) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.saout.de (Postfix) with ESMTP for ; Thu, 1 Sep 2011 23:25:08 +0200 (CEST) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QzEl0-0004Ac-8h for dm-crypt@saout.de; Thu, 01 Sep 2011 23:25:06 +0200 Received: from f052047149.adsl.alicedsl.de ([78.52.47.149]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Sep 2011 23:25:06 +0200 Received: from jens-dmcrypt by f052047149.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Sep 2011 23:25:06 +0200 From: Jens Date: Thu, 1 Sep 2011 21:22:55 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [dm-crypt] AES hardware support in dm-crypt / kernel List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hello, I own an ARM-based NAS which - supposedly - has AES hardware support: The WD MyBook Live. This is the hardware it runs: http://myapm.apm.com/MyAMCC/retrieveDocument/PowerPC/ APM82181/APM82181_PB4090.pdf The AES modules are also enabled in the current kernel that it runs (CONFIG_CRYPTO_HW=y). Upon booting, I get several devices listed in /proc/crypto, but performance on a test image (mounted via loop, 1GB) is rather low (7..8 MB/s) and CPU peaks at 100%. Without encryption the machine can sustain 40..50 MB/s over GBit ethernet and 80..100 MB/s locally (from /dev/zero). Am I right that if the crypto hardware were active, the CPU load during usage of an encrypted device should not be influenced by the encryption / decryption process (because this does not happen on the CPU)? How can I find out for sure whether dm-crypt uses the hardware acceeleration features? Thanks! Jens