Return-Path: Received: from sonic308-12.consmr.mail.ne1.yahoo.com (sonic308-12.consmr.mail.ne1.yahoo.com [66.163.187.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Tue, 27 Nov 2018 01:00:04 +0100 (CET) Date: Tue, 27 Nov 2018 00:00:00 +0000 (UTC) From: H McCurdy Message-ID: <1078293073.3048200.1543276800580@mail.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3048199_691912002.1543276800575" References: <1078293073.3048200.1543276800580.ref@mail.yahoo.com> Subject: [dm-crypt] Data Processing Slowdown when LUKS used List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "dm-crypt@saout.de" ------=_Part_3048199_691912002.1543276800575 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I have a mystery and am wondering if anyone has ideas. Ubuntu 16.04.5 Kernel 4.15.0-39 We have incoming UDP data coming in at 2.42Gb/s.=C2=A0 The data is written = to a 1TB SSD and also processed and some of the output is written to a 2nd = 1TB SSD.=C2=A0 Every minute data from the 2nd SSD is packaged (including co= mpression) and copied to a hardware encrypted HDD RAID.=C2=A0 If the data i= s "interesting" several minutes of data from the first SSD are copied to th= e HDD RAID. All is good if the 2 1TB SSD's are not encrypted.=C2=A0 If I use LUKS to en= crypt the SSD's, it runs for about 40 minutes and then the "pipe" gets full= and we lose packets.=C2=A0 ethtool reports rx_missed_errors. I am trying to understand why simply turning on encryption would cause the = problem and if anyone has ideas. I have installed the aes kernel modules cryptd, aes_x86_64 and aesni_intel. The processor is an Intel i9-7920X (12 core, 24 threads).=C2=A0 The system = load is only 8.=C2=A0 Using the program 'glances' I don't see where the dis= k i/o is getting fully loaded except for 2 seconds out of 60. I don't expect a magic solution but am hoping for ideas since I've narrowed= this down to LUKS vs no LUKS and have installed the AES modules. I did, however, find this article and wonder if it means something.=C2=A0 J= ust by itself, I wonder if anyone would like to simply comment on the artic= le for academic reasons.=20 https://www.researchgate.net/publication/312627780_Improving_dm-crypt_perfo= rmance_for_XTS-AES_mode_through_extended_requests_first_results Does it make sense to anyone here for me to attempt to increase the block s= ize?=C2=A0 I think it's the -b option to cryptsetup, but that isn't clear t= o me.=C2=A0 A value of 8 would give me 4K, right?=C2=A0 (I would just try i= t but I currently don't have access to the box but likely will tomorrow eve= n if I don't get an answer from anyone.) Thanks to anyone who reads this and I'm interested in ideas or knowledge or= where I can find more information.=C2=A0 (I have read the FAQ and I have u= sed the API as well.) Regards,Hugh McCurdy ------=_Part_3048199_691912002.1543276800575 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I have a mystery= and am wondering if anyone has ideas.

Ubuntu 16.0= 4.5 Kernel 4.15.0-39

We have incoming UDP data com= ing in at 2.42Gb/s.  The data is written to a 1TB SSD and also process= ed and some of the output is written to a 2nd 1TB SSD.  Every minute d= ata from the 2nd SSD is packaged (including compression) and copied to a ha= rdware encrypted HDD RAID.  If the data is "interesting" several minut= es of data from the first SSD are copied to the HDD RAID.

All is good if the 2 1TB SSD's are not encrypted.  If I use LU= KS to encrypt the SSD's, it runs for about 40 minutes and then the "pipe" g= ets full and we lose packets.  ethtool reports rx_missed_errors.
=

I am trying to understand why simply turning on encrypt= ion would cause the problem and if anyone has ideas.

I have installed the aes kernel modules cryptd, aes_x86_64 and aesni_int= el.

The processor is an Intel i9-7920X (12 cor= e, 24 threads).  The system load is only 8.  Using the program 'g= lances' I don't see where the disk i/o is getting fully loaded except for 2= seconds out of 60.

I don't expect a magic sol= ution but am hoping for ideas since I've narrowed this down to LUKS vs no L= UKS and have installed the AES modules.

= I did, however, find this article and wonder if it means something.  J= ust by itself, I wonder if anyone would like to simply comment on the artic= le for academic reasons.

<= /span>
Does it make sense to anyone here for me to = attempt to increase the block size?  I think it's the -b option to cry= ptsetup, but that isn't clear to me.  A value of 8 would give me 4K, r= ight?  (I would just try it but I currently don't have access to the b= ox but likely will tomorrow even if I don't get an answer from anyone.)

Thanks to anyone who reads this and I'm interested in= ideas or knowledge or where I can find more information.  (I have rea= d the FAQ and I have used the API as well.)

Re= gards,
Hugh McCurdy
------=_Part_3048199_691912002.1543276800575--