loop-AES-v3.6a terrible slow!

Gabriel VLASIU gabriel at vlasiu.net
Sun Feb 13 14:03:50 EST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

loop-AES-v3.6a is terrible, terrible slow. Tested on kernel 2.6.35.11.

*** Using loopAES v3.6a

# /usr/bin/time tar xjf xulrunner-2.0b11.source.tar.bz2
21.96user 20.86system 23:22.61elapsed 3%CPU (0avgtext+0avgdata 15664maxresident)k
132224inputs+940776outputs (3major+1511minor)pagefaults 0swaps

# /usr/bin/time rm -rf mozilla-central/
0.19user 24.34system 20:36.99elapsed 1%CPU (0avgtext+0avgdata 4832maxresident)k
0inputs+8outputs (0major+437minor)pagefaults 0swaps



*** Using loopAES v3.5b
- - does not compile clean. I had to apply this patch:

- --- loop.c-2.6a.patched.ORIG    2010-11-09 16:32:02.000000000 +0200
+++ loop.c-2.6a.patched 2011-02-13 20:28:30.000000000 +0200
@@ -1520,7 +1520,11 @@
 #endif
        blk_queue_max_sectors(lo->lo_queue, MAX_SECTORS);
 #endif
+#if defined(QUEUE_FLAG_CLUSTER)
        lo->lo_queue->queue_flags &= ~(1 << QUEUE_FLAG_CLUSTER);
+#else
+       lo->lo_queue->limits.cluster = 0;
+#endif
 #if (LINUX_VERSION_CODE >= 0x20609) || defined(QUEUE_FLAG_ORDERED)
        loop_blk_queue_ordered(lo->lo_queue, QUEUE_ORDERED_NONE);
 #endif

# /usr/bin/time tar xjf xulrunner-2.0b11.source.tar.bz2
20.83user 9.08system 4:50.09elapsed 10%CPU (0avgtext+0avgdata 15664maxresident)k
132056inputs+940776outputs (3major+1513minor)pagefaults 0swaps

# /usr/bin/time rm -rf mozilla-central/
0.11user 5.79system 3:02.13elapsed 3%CPU (0avgtext+0avgdata 4832maxresident)k
0inputs+0outputs (0major+437minor)pagefaults 0swaps

Why is SO slow?


Sincerely,
Gabriel
- -- 

// Gabriel VLASIU
//
// OpenGPG-KeyID      : 0xE684206E
// OpenGPG-Fingerprint: 0C3D 9F8B 725D E243 CB3C 8428 796A DB1F E684 206E
// OpenGPG-URL        : http://www.vlasiu.net/public.key


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFNWCsbeWrbH+aEIG4RAry9AJ0bIVv6ySnasmLT+KlLUPIrqCMkjwCfbfLe
AdymT+WvU/abgM44cLWRIWs=
=MJ2w
-----END PGP SIGNATURE-----



More information about the Linux-crypto mailing list