cvs commit: src/sys/crypto/via padlock_cipher.c

Pawel Jakub Dawidek pjd at FreeBSD.org
Tue Jul 25 19:32:58 UTC 2006


pjd         2006-07-25 19:32:58 UTC

  FreeBSD src repository

  Modified files:
    sys/crypto/via       padlock_cipher.c 
  Log:
  Avoid memory allocations when the given address is already 16 bytes aligned.
  Such an address can be used directly in padlock's AES.
  This improves speed of geli(8) significantly:
  
          # sysctl kern.geom.zero.clear=0
          # geli onetime -s 4096 gzero
          # dd if=/dev/gzero.eli of=/dev/null bs=1m count=1000
  
  Before: 113MB/s
  After:  203MB/s
  
  BTW. If sector size is set to 128kB, I can read at 276MB/s :)
  
  Revision  Changes    Path
  1.3       +51 -6     src/sys/crypto/via/padlock_cipher.c


More information about the cvs-src mailing list