[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cp auf crypt-Laufwerken - schlechte Performance



Hallo Heinz,

hat ein bißchen gedauert, aber hier sind jetzt die Angaben - besten Dank schonmal für deine Untestützung:

Heinz Diehl schrieb:
At Fri, 06 Mar 2009 10:47:07 +0100,
Andre Bischof wrote:

bei einem cp auf Partitionen die mit cryptsetup mit luks erstellt sind geht der Load bei mir hoch bis auf ca. 7, das System ist dann nahezu unbrauchbar - es reagiert extrem träge. In der Prozessliste ziehen sich vor allem kcryptd-Prozesse viel Rechenzeit und CPU.

Bitte starte mal eine solche Aktion und schicke mir die Ausgabe eines vorher
auf einer rootconsole gestarteten "vmstat 1" sowie ein "cryptsetup luksDump"
der beteiligten Partitionen, plus die komplette Ausgabe von "lsmod", des
weiteren die Ausgaben von "uname -a" und "rpm -q cryptsetup". Dann kann ich
dir evtl. mehr sagen.

Ok, das wird jetzt aber lang:


Die ersten Einträge von vmstat 1 (cp-Prozess ab Zeile 4 ca.):

procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 3 0 0 3427672 8604 314592 0 0 265 9097 1551 307 5 24 64 7 0 0 0 3427664 8604 314600 0 0 0 0 199 203 0 1 99 0 1 1 0 3397484 8756 344492 0 0 15076 0 329 1337 3 26 45 27 2 1 0 3300052 8916 440340 0 0 48116 0 619 2240 2 86 0 12 1 1 0 3227288 9028 511484 0 0 35628 16552 2185 1139 0 90 0 10 3 2 0 3200668 9076 537288 0 0 12912 53304 5477 470 2 95 0 3 1 1 0 3112392 9260 624512 0 0 43688 4164 933 1365 1 85 0 14 5 2 0 3097524 9300 640056 0 0 7800 88592 8581 322 0 98 0 2 2 0 0 3007228 9496 729736 0 0 44904 1580 621 1486 0 85 0 15 1 1 0 2951464 9608 783328 0 0 26760 56032 5393 3187 1 95 0 4 2 1 0 2858864 9824 875000 0 0 46072 20 634 1554 1 81 0 18 5 2 0 2844424 9860 890288 0 0 7652 67844 7635 329 0 96 0 4 1 1 0 2754336 10044 981572 0 0 45744 336 614 2203 3 84 0 13 2 0 0 2697788 10140 1035888 0 0 27168 28624 3424 925 2 92 0 6 1 1 0 2623412 10260 1108904 0 0 36588 14656 1801 1112 1 89 0 10 6 0 0 2564688 10392 1167992 0 0 29532 95536 10536 1115 0 94 0 6 2 2 0 2484672 10580 1247628 0 0 39968 380 571 1211 26 74 0 0 5 2 0 2418876 10728 1311688 0 0 32112 43488 5452 1008 12 88 0 0 2 0 0 2336712 10900 1392712 0 0 40584 3340 728 1194 17 77 0 6 5 0 0 2278324 10992 1450048 0 0 28732 27492 2504 929 0 92 0 8 4 4 0 2253844 11024 1475144 0 0 12556 79284 7715 404 0 99 0 1 1 1 0 2163552 11144 1565796 0 0 45364 4696 861 1500 2 90 0 8 1 1 0 2096028 11236 1631564 0 0 32960 16412 1768 1652 3 88 0 9 1 1 0 2031296 11308 1695108 0 0 31808 20720 1569 1056 1 90 0 9 5 0 0 1974172 11372 1752004 0 0 28448 71880 5970 920 1 96 0 3 1 0 0 1918772 11448 1808164 0 0 28060 25560 3289 884 1 95 0 4 3 0 0 1832608 11548 1892344 0 0 42156 8336 1352 1319 1 89 0 10 2 1 0 1758752 11644 1964896 0 0 36364 14776 1596 1162 0 94 0 6 2 1 0 1706004 11700 2016568 0 0 25884 28980 2184 830 0 94 0 6 4 0 0 1647836 11768 2072648 0 0 28048 45392 1633 858 2 91 0 7 4 2 0 1649344 11768 2073152 0 0 256 62904 8212 59 0 100 0 0 1 1 0 1575264 12308 2147160 0 0 37476 1948 680 1464 23 69 0 8 1 2 0 1507092 12564 2213988 0 0 33660 12536 1537 1222 9 82 0 9 1 0 0 1442684 12684 2277108 0 0 31608 20696 1837 1034 2 94 0 4 5 1 0 1400540 12736 2318852 0 0 20940 88264 8643 705 1 97 0 2 1 1 0 1317304 12868 2402424 0 0 41868 6332 952 1312 0 89 0 11 1 0 0 1237324 12944 2480636 0 0 39136 12432 1080 1229 1 93 0 6 1 1 0 1168052 13016 2548420 0 0 33956 19476 1745 1083 2 92 0 6 4 0 0 1110932 13088 2604732 0 0 28140 28168 1673 918 1 92 0 7 1 1 0 1061876 13216 2652972 0 0 24240 21560 2000 887 1 83 0 16 8 4 0 1060492 13232 2655768 0 0 1412 81492 8023 90 0 100 0 0 1 1 0 965532 13388 2750232 0 0 47296 308 606 1459 1 91 0 8 2 0 0 879744 13496 2834160 0 0 42000 11032 1446 1299 1 90 0 9 0 1 0 824720 13560 2888416 0 0 27056 25016 2189 871 1 93 0 6 procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 2 1 0 794580 13636 2919584 0 0 15744 96140 7019 613 1 95 0 4 1 1 0 709152 13800 3001952 0 0 41256 6152 883 1555 18 75 0 7 2 1 0 630008 13956 3073976 0 0 36080 6352 1037 1273 23 67 0 10 2 1 0 577120 14044 3118872 0 0 22508 20720 1922 757 38 62 0 0 3 2 0 540304 14120 3153992 0 0 17588 85148 3478 635 19 81 0 0 0 1 0 476312 14324 3217904 0 0 31940 7576 1020 1304 0 67 0 33



top:

 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 5574 root      15  -5     0    0    0 S 37.4  0.0   4:26.36 kcryptd
 5644 root      15  -5     0    0    0 S 30.7  0.0   1:13.10 kcryptd
 5775 root      20   0  2312  768  628 R 11.0  0.0   0:25.86 cp


cryptsetup luksDump:
Quellpartition:

root@linux:/# cryptsetup luksDump /dev/sdb6
LUKS header information for /dev/sdb6

Version:        1
Cipher name:    aes
Cipher mode:    cbc-essiv:sha256
Hash spec:      sha1
Payload offset: 1032
MK bits:        128
MK digest:      fe 7f 99 05 47 6e e0 ac cc a3 b1 36 b8 5c 91 10 e7 40 d1 5f
MK salt:        72 48 97 ec 8b 49 81 01 3c d2 3b 2c 95 22 b3 1e
                28 7d 62 36 43 b8 43 68 f6 95 b1 49 55 8d 6b ec
MK iterations:  10
UUID:           b11fe6ae-ae3f-4fc8-8d8c-782db949c4db

Key Slot 0: ENABLED
        Iterations:             167158
Salt: c0 9d 8b 23 5c 83 09 66 bb 79 39 75 65 6e b6 51 d1 4e 21 68 94 9e 8a 03 5a 86 48 70 d0 c1 9c e6
        Key material offset:    8
        AF stripes:             4000
Key Slot 1: ENABLED
        Iterations:             162691
Salt: c7 8a c1 09 17 e7 b5 ca 55 75 65 31 9d 93 eb be 5c c9 a2 0e c6 f1 68 48 7a a6 12 1c 0a 82 01 33
        Key material offset:    136
        AF stripes:             4000
Key Slot 2: DISABLED
Key Slot 3: DISABLED
Key Slot 4: DISABLED
Key Slot 5: DISABLED
Key Slot 6: DISABLED
Key Slot 7: DISABLED
root@linux:/#


Zielpartition:
root@linux:/# cryptsetup luksDump /dev/sdc5
LUKS header information for /dev/sdc5

Version:        1
Cipher name:    aes
Cipher mode:    cbc-essiv:sha256
Hash spec:      sha1
Payload offset: 1032
MK bits:        128
MK digest:      40 fa f5 03 89 4c 6f 16 e5 5a 89 2d 5d b0 b4 be f5 1d 3a 44
MK salt:        bc db 87 a5 b0 40 4e 04 27 d6 d4 2e 7b c6 65 96
                cc be 42 13 a1 1e 37 8e db 5e a8 60 bc 20 9d a9
MK iterations:  10
UUID:           ffce13d1-2ea1-4212-a302-678614b8eded

Key Slot 0: ENABLED
        Iterations:             221401
Salt: 14 46 6c aa bf 81 16 c2 a7 13 d8 89 61 7e 5c f8 24 79 57 bc ba cb 7b 4c 44 93 23 f2 21 bf 6c 14
        Key material offset:    8
        AF stripes:             4000
Key Slot 1: ENABLED
        Iterations:             220914
Salt: 6d d6 15 64 59 22 1a f8 38 13 0f 86 d7 6f 26 11 c3 73 80 70 73 df b2 0b 4b ba b5 23 ed 66 5b 09
        Key material offset:    136
        AF stripes:             4000
Key Slot 2: DISABLED
Key Slot 3: DISABLED
Key Slot 4: DISABLED
Key Slot 5: DISABLED
Key Slot 6: DISABLED
Key Slot 7: DISABLED



lsmod:

root@linux:/# lsmod
Module                  Size  Used by
xt_tcpudp               3904  1
iptable_filter          3744  1
ip_tables              14052  1 iptable_filter
x_tables               15012  2 xt_tcpudp,ip_tables
binfmt_misc            12008  1
vboxnetflt             80584  0
vboxdrv               104616  1 vboxnetflt
ipx                    26660  0
p8023                   2880  1 ipx
autofs4                21412  0
ipv6                  241572  24
deflate                 4512  0
zlib_deflate           18520  1 deflate
zlib_inflate           15328  1 deflate
twofish                 9248  0
twofish_common         36992  1 twofish
camellia               31936  0
serpent                19616  0
blowfish                9312  0
des_generic            17376  0
ecb                     4320  0
xcbc                    6376  0
sha1_generic            3360  0
crypto_null             3328  0
af_key                 35344  0
fuse                   45972  1
sha256_generic         11808  0
cbc                     5184  10
blkcipher               7492  2 ecb,cbc
dm_crypt               13988  1
dm_snapshot            17732  0
dm_mirror              22368  0
dm_mod                 56580  20 dm_crypt,dm_snapshot,dm_mirror
aes_i586               34144  20
nvidia               7821728  24
agpgart                32552  1 nvidia
it87                   19276  0
hwmon_vid               3808  1 it87
eeprom                  7952  0
psmouse                37232  0
ide_generic             2048  0 [permanent]
snd_usb_audio          77056  1
snd_usb_lib            16576  1 snd_usb_audio
snd_hwdep               9572  1 snd_usb_audio
irtty_sir               8864  0
snd_intel8x0           32828  1
sir_dev                16228  1 irtty_sir
snd_ac97_codec         93700  1 snd_intel8x0
rtc_cmos                9184  0
rtc_core               18760  1 rtc_cmos
parport_pc             34724  0
parport                35048  1 parport_pc
irda                  175004  2 irtty_sir,sir_dev
rtc_lib                 3808  1 rtc_core
ac97_bus                2944  1 snd_ac97_codec
snd_pcm_oss            39040  0
snd_mixer_oss          16064  1 snd_pcm_oss
tda1004x               15076  1
crc_ccitt               2944  1 irda
snd_pcm 72612 4 snd_usb_audio,snd_intel8x0,snd_ac97_codec,snd_pcm_oss
pcspkr                  3968  0
snd_seq_dummy           4548  0
k8temp                  6304  0
snd_seq_oss            30240  0
snd_seq_midi            8928  0
snd_rawmidi            23392  2 snd_usb_lib,snd_seq_midi
budget_ci              19364  0
firmware_class         10080  2 tda1004x,budget_ci
budget_core            11684  1 budget_ci
dvb_core               75100  2 budget_ci,budget_core
saa7146                19560  2 budget_ci,budget_core
ttpci_eeprom            3296  1 budget_core
snd_seq_midi_event      7744  2 snd_seq_oss,snd_seq_midi
ir_common              35780  1 budget_ci
snd_seq 47312 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              21860  2 snd_pcm,snd_seq
snd_seq_device 8588 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
ark3116                13860  0
usbserial              32968  1 ark3116
snd 49380 16 snd_usb_audio,snd_hwdep,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
uvcvideo               52904  0
snd_page_alloc         10888  2 snd_intel8x0,snd_pcm
soundcore               8320  1 snd
compat_ioctl32          2176  1 uvcvideo
videodev               27072  1 uvcvideo
v4l1_compat            13348  2 uvcvideo,videodev
v4l2_common            17376  2 uvcvideo,videodev
button                  9200  0
i2c_nforce2             7296  0
i2c_core 23200 7 nvidia,eeprom,tda1004x,budget_ci,budget_core,ttpci_eeprom,i2c_nforce2
evdev                  11872  4
ext3                  123656  11
jbd                    44500  1 ext3
mbcache                 9056  1 ext3
sd_mod                 27968  17
usbhid                 28928  0
hid                    35040  1 usbhid
ide_cd                 36992  0
cdrom                  33280  1 ide_cd
ide_disk               16416  3
sata_nv                25864  17
sky2                   44676  0
ata_generic             8196  0
firewire_ohci          18720  0
firewire_core          40000  1 firewire_ohci
crc_itu_t               2944  1 firewire_core
forcedeth              48044  0
amd74xx                 9520  0 [permanent]
libata                145648  2 sata_nv,ata_generic
scsi_mod              141964  2 sd_mod,libata
ehci_hcd               33612  0
ohci_hcd               23012  0
generic                 5156  0 [permanent]
ide_core              109316  5 ide_generic,ide_cd,ide_disk,amd74xx,generic
usbcore 134060 9 snd_usb_audio,snd_usb_lib,ark3116,usbserial,uvcvideo,usbhid,ehci_hcd,ohci_hcd
thermal                16796  1
processor              37608  1 thermal
fan                     5540  1



uname -a:
root@linux:/# uname -a
Linux linux 2.6.24-1-686-bigmem #1 SMP Thu May 8 02:55:42 UTC 2008 i686 GNU/Linux


rpm -q cryptsetup (Debian, daher mit dpkg):
ii cryptsetup 2:1.0.6-7 configures encrypted block devices


...
Kann ich das irgendwie performanter machen (ohne Hardwaretausch)? :-)

Das kann ich dir sagen, wenn ich die obengenannten Ausgaben habe.

ich bin gespannt! :-)

Schonmal vielen Dank für deine Hilfe!

Viele Grüße
Andre


--
Personal weblog and more: http://bischof.homelinux.net

"Das Schwein trägt seinen Namen nicht umsonst" - Stilblüten aus
Kinderaufsätzen: (Geographie)

Jedes Jahr kann man sehen, wie der Po gewaltig anschwillt.


Reply to: