Skip to contentSkip to conversation

Improving performance?

dm-crypt Markus Krainz 4 participants 4 messages Nov 11, 2010 – Nov 12, 2010

lore
Share & tools
lore
#0 lore raw
Quoted 1 line · Lasse Jensen

I havent tested my current setup this way, but my old setup, RAID first, then encryption worked fine.

RAID first, den ecryption works for me, too.
But testing the ecrypting drives seperately, then RAID approach failed. What good is fast performance if the RAID 5 does not work? :D

Quoted 24 lines

dmcrypt/luks is used on top of the raid. The performance of the i5 is not great, despite hardware aes. Should not be this numbers a bit higher than 158 MB/sec?

~/httptunnel-3.3/ hdparm -t --direct /dev/md1

/dev/md1:
Timing O_DIRECT disk reads: 936 MB in 3.00 seconds = 311.67 MB/sec

~/httptunnel-3.3/ hdparm -t --direct /dev/mapper/evol

/dev/mapper/evol:
Timing O_DIRECT disk reads: 476 MB in 3.01 seconds = 158.30 MB/sec

cat /proc/cpuinfo | grep -E (model name|aes)
model name : Intel(R) Core(TM) i5 CPU 660 @ 3.33GHz
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr
pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt aes lahf_lm ida arat dts tpr_shadow vnmi flexpriority ept vpid

Quoted 2 lines

Well, it's still a lot better than my setup. Have you got any idea how much power your system uses idle and under load?

I am afraid I cannot unplug the server right now and I do not have an ampere meter lying around.
But I went for a 32nm dual-core-CPU, a small motherboard with lots of sata plugs and an efficient power supply, so I figured you can not get much better power consumption wise.

Forgot to mention, the above hdparam -t result is for cipher mode: xts-plain64 and AES-256.

Regards,

Markus Krainz

#1 lore raw
Quoted 8 lines · Markus Krainz
Quoted 2 lines · Lasse Jensen

I havent tested my current setup this way, but my old setup, RAID first, then encryption worked fine.

RAID first, den ecryption works for me, too.
But testing the ecrypting drives seperately, then RAID approach failed. What good is fast performance if the RAID 5 does not work? :D

I Have not tried encytion first, but I have several 3-way RAID1 with RAID first runnign without a problem for > 2 years now. (It is partition RAID1, only 3 disks involved.)

I would imagine that encryption-first is a bit of a risk until the kernel barriers have been cleaned up. BTW, I see significantly better behavior with 2.6.36. Hope they manage to clean this mess up by 2.6.37. The kernel used to be tunable to not slow to a crawl when writing large amounts of data onto slow devices. One of the ugly secrets up to 2.6.35.

Arno

Signature · 7 lines
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: [email protected] 
GnuPG:  ID: 1E25338F  FP: 0C30 5782 9D93 F785 E79C  0296 797F 6B50 1E25 338F
----
Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans

If it's in the news, don't worry about it.  The very definition of 
"news" is "something that hardly ever happens." -- Bruce Schneier 
#3 lore raw
Quoted 3 lines · dave b

FYI guys, there is a patch that hasn't yet been accepted into the linux kernel --->
https://patchwork.kernel.org/patch/244031/

Yes, we know :-)

AS far as I've read, it has one minor flaw which must be fixed before it gets accepted and merged into the kernel. I have used it over some months now, with good improvement and zero problems.