Re: [Ocf-linux-users] Any known issues with cryptodev digests in 0.9.8k?
Brought to you by:
david-m
From: David M. <Dav...@se...> - 2009-07-05 11:01:25
|
Jivin Philip A. Prindeville lays it down ... > I'm running with 0.9.8k on a GeodeLX processor and Linux 2.6.26.8 and > the OCF patches: > > # cat /proc/cpuinfo > processor : 0 > vendor_id : AuthenticAMD > cpu family : 5 > model : 10 > model name : Geode(TM) Integrated Processor by AMD PCS > stepping : 2 > cpu MHz : 433.259 > cache size : 128 KB > fdiv_bug : no > hlt_bug : no > f00f_bug : no > coma_bug : no > fpu : yes > fpu_exception : yes > cpuid level : 1 > wp : yes > flags : fpu de pse tsc msr cx8 sep pge cmov clflush mmx mmxext 3dnowext 3dnow > bogomips : 867.50 > clflush size : 32 > power management: > > # lsmod > Module Size Used by > authenc 4672 2 > xfrm4_mode_tunnel 2016 4 > binfmt_misc 7112 1 > aes_i586 7456 0 > aes_generic 28968 1 aes_i586 > twofish 7968 0 > twofish_common 13632 1 twofish > xcbc 4104 0 > esp4 5344 2 > aead 6144 2 authenc,esp4 > ah4 4320 0 > af_key 24528 2 > wlan_ccmp 6112 1 > wlan_xauth 1184 0 > act_police 4260 1 > cls_u32 5860 1 > sch_ingress 1888 1 > sch_sfq 5088 4 > sch_htb 12960 1 > xt_dscp 2080 4 > xt_CLASSIFY 1408 43 > xt_length 1472 3 > ipt_recent 6648 3 > nf_nat_sip 5152 0 > nf_conntrack_sip 15836 1 nf_nat_sip > xt_policy 2592 6 > xt_tcpudp 2560 142 > ipt_MASQUERADE 2464 1 > iptable_nat 4488 1 > nf_nat_ftp 2272 0 > nf_nat 15792 4 nf_nat_sip,ipt_MASQUERADE,iptable_nat,nf_nat_ftp > xt_TCPMSS 3424 3 > ipt_LOG 4672 50 > ipt_REJECT 2464 0 > iptable_mangle 2400 1 > iptable_filter 2368 1 > xt_multiport 2560 0 > xt_state 1760 16 > xt_limit 1888 54 > xt_conntrack 3200 1 > nf_conntrack_ftp 6432 1 nf_nat_ftp > nf_conntrack_ipv4 11884 20 iptable_nat,nf_nat > nf_conntrack 55268 10 nf_nat_sip,nf_conntrack_sip,ipt_MASQUERADE,iptable_nat,nf_nat_ftp,nf_nat,xt_state,xt_conntrack,nf_conntrack_ftp,nf_conntrack_ipv4 > ip_tables 9552 3 iptable_nat,iptable_mangle,iptable_filter > x_tables 12932 16 xt_dscp,xt_CLASSIFY,xt_length,ipt_recent,xt_policy,xt_tcpudp,ipt_MASQUERADE,iptable_nat,xt_TCPMSS,ipt_LOG,ipt_REJECT,xt_multiport,xt_state,xt_limit,xt_conntrack,ip_tables > pc87360 15892 0 > hwmon_vid 2272 1 pc87360 > hwmon 2228 1 pc87360 > pppoe 8256 2 > pppox 2892 1 pppoe > ppp_synctty 5696 0 > ppp_async 7008 0 > bridge 40088 0 > llc 5392 1 bridge > dummy 2176 0 > wlan_wep 5184 0 > wlan_scan_ap 7968 1 > ath_rate_sample 10784 1 > ath_pci 181432 0 > wlan 193040 7 wlan_ccmp,wlan_xauth,wlan_wep,wlan_scan_ap,ath_rate_sample,ath_pci > ath_hal 248928 3 ath_rate_sample,ath_pci > ztdummy 2808 0 > wanec 300600 0 > wanpipe_lip 116192 0 > af_wanpipe 24480 0 > wanpipe 936384 0 > wanpipe_syncppp 21140 1 wanpipe > wanrouter 35296 5 wanec,wanpipe_lip,af_wanpipe,wanpipe,wanpipe_syncppp > zaptel 190308 4 ztdummy,wanpipe > hdlc 5176 1 zaptel > ppp_generic 19668 9 pppoe,pppox,ppp_synctty,ppp_async,zaptel > slhc 5312 1 ppp_generic > sdladrv 71488 2 wanpipe,wanrouter > sha512_generic 9024 0 > sha256_generic 11136 0 > deflate 2368 0 > zlib_deflate 17496 1 deflate > arc4 1536 0 > ecb 2336 0 > sha1_generic 2144 0 > blowfish 8832 0 > des_generic 17216 2 > cbc 3168 2 > cryptosoft 10020 0 > cryptodev 11076 3 > ocf 26740 2 cryptosoft,cryptodev > geodewdt 4176 0 > geode_rng 1632 0 > geode_aes 5284 0 > crypto_blkcipher 14980 6 authenc,ecb,cbc,geode_aes > via_rhine 18184 0 > rtc 10268 0 > cs5535_gpio 3452 0 > # ls -l /dev/crypto > crw-rw---- 1 root root 10, 70 Jul 3 12:41 /dev/crypto > # > > > If I run "openssl speed sha1" it works fine. > > # openssl speed sha1 > Doing sha1 for 3s on 16 size blocks: 38311 sha1's in 0.11s > Doing sha1 for 3s on 64 size blocks: 34422 sha1's in 0.10s > Doing sha1 for 3s on 256 size blocks: 26720 sha1's in 0.06s > Doing sha1 for 3s on 1024 size blocks: 14137 sha1's in 0.05s > Doing sha1 for 3s on 2048 size blocks: 8712 sha1's in 0.02s > OpenSSL 0.9.8k 25 Mar 2009 > built on: Fri Jul 3 11:48:06 PDT 2009 > options:bn(64,32) md2(int) rc4(ptr,char) des(idx,cisc,16,long) aes(partial) blowfish(ptr) > compiler: /home/philipp/vpn/build_i586/staging_dir/bin/i586-linux-uclibc-gcc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS -I/home/philipp/vpn/build_i586/staging_dir/include -DTERMIO -O3 -fomit-frame-pointer -Wall -Os -pipe -fomit-frame-pointer -march=k6-2 -fno-align-functions -fno-align-loops -fno-align-jumps -fno-align-labels > available timing options: TIMES TIMEB HZ=100 [sysconf value] > timing function used: times > The 'numbers' are in 1000s of bytes per second processed. > type 16 bytes 64 bytes 256 bytes 1024 bytes 2048 bytes > sha1 5572.51k 22030.08k 114005.33k 289525.76k 892108.80k > # > > > If I compute a digest on a large file, it fails: > > > # ls -l /oldroot/cdrom/os/astlinux-trunk-2849.run > -rwxr-xr-x 1 root root 39694336 Jul 3 12:11 /oldroot/cdrom/os/astlinux-trunk-2849.run > # openssl sha1 /oldroot/cdrom/os/astlinux-trunk-2849.run > cryptodev_digest_final: digest failed > SHA1(/oldroot/cdrom/os/astlinux-trunk-2849.run)= 57bf5d5c81395f12bfdb3cf3c497abffbef8dbe4 > # > > > What am I missing? Try enabling debug in the cryptodev module, might give you a hint as to why it's failing. Cheers, Davidm -- David McCullough, dav...@se..., Ph:+61 734352815 McAfee - SnapGear http://www.snapgear.com http://www.uCdot.org |