From mboxrd@z Thu Jan 1 00:00:00 1970 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 Qe1jK7WphAvy for ; Mon, 19 Nov 2012 12:57:05 +0100 (CET) Received: from orion.uberspace.de (orion.uberspace.de [95.143.172.79]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Mon, 19 Nov 2012 12:57:05 +0100 (CET) Message-ID: <50AA1D33.7030109@jreinert.com> Date: Mon, 19 Nov 2012 12:51:15 +0100 From: Joakim Reinert MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [dm-crypt] Performance problems List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, i intended to use dm-crypt + LUKS to encrypt my entire file system. I ran into the following problem: After finishing cryptsetup i noticed by testing with dd (dd if=/dev/zero of=/dev/mapper/cryptroot) with different blocksizes, that i had read and write speeds of roughly 50MB/s. If you consider my setup, you will agree, that this is way too slow: cpu: i7-2620 (AES-NI integrated) disk: Crucial m4 226GB SSD ram: 4GB DDR-3 1333Mhz (Single Channel) Additional information: kernel: linux 3.6.6.1 os: arch linux I have loaded the module aesni_intel and verified that the refcnt changes in /proc/crypto when i open/close the encrypted partition. I've already harrassed everybody at #archlinux and #crypto in IRC but nobody seems to know what the problem might be. I also installed truecrypt and did some benchmarks which show encryption and decryption speeds of roughly 2GB/s. Might this have something to do with the data alignment on disk? At least with lvm it's suggested to define dataalignment=1m on SSD's. Is it possible to define data alignment for dm-crypt? Another possibility that would come to mind is a bug in the kernel. I followed this guide to set up the encryption by the way: https://wiki.archlinux.org/index.php/Dm-crypt_with_LUKS Hoping to hear from you soon. Kind regards Joakim Reinert -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iQIcBAEBAgAGBQJQqh0yAAoJEMy9easHXAWxKCoQALOEDTnrfTRi8dNb254TDqt9 m8v5iwvZ/AcKAERp6BSHdFd+Vugu+oi/263nz6vpl7eFPXbkjaYg9YJn89Xmah/Q sQ0Ck4Jxv2Q4NSyLr9TzFPm9m7hbU/eKByJP3MuZSI8YXBH+7F+A8YeKFdq3WGTQ 5R26n87ERibOxtBFbcktcdrVhBEo7NNdlpwAQlh5VKn2w6WKFjxqZtLvCRSCK7dq nRHsfJVxMizQkVVhLyyoKxotqLLbeW7867faY3S9/vDfPqZtY6skgCPEpb/aZYBI k+/9E5jKLlDLOCHG0F8SUflFH4y0gMP3OP5MsAuysCQWjgZL2qGhcq/pjQy/Oabk LGB7CLNBHeNAABVUmxfPEBji2fAXx7ke84KNNpWRLzy4FCj2tJsqUM9remsXsvo+ efS97IME+WAZ0H4M0DJU31z/pj6Tk8fXamN1KqnvazEqf5qFL3hBlZ4pSyIQBkZs 29JgFF8sBon5Vq+j+thG3CPJRxREssf+tddm60w27+fxXxceBjePPgBolsw3e9UZ 4/ksgYiG6mOmLXO61sREd3W+hqdwhHy7cAeVrYr9dFHFu29DFgOZ7WZijNVJxnks gZd0uagk32LYySBYpvqslNNA//T+u2mcDF9vvXm+c94DfFqxD/ffYnZFwZCkFiY0 okEEhdqVpTNzaZpAxyIa =C6JE -----END PGP SIGNATURE-----