Re: OpenSSL + opencrypto

[email protected] (Jun-ichiro itojun Hagino)
Newsgroups gmane.os.netbsd.devel.crypto
Message-ID <[email protected]>
> > NB: the kernel currently honours requests on /dev/crypto transforms
> > which end up being handled in software. That's a
> > performance-measurement hack: both FreeBSD and OpenBSD disallow
> > /dev/crypto access to software operations.  I'd planned to turn them
> > off just before the openssl libcrypto patches go in.
> 
> Seems like that should be a per-file descriptor policy tweak.  I'd say 
> default to "don't allow software transforms to service this fd", but 
> add an ioctl to enable it.  My measurements clearly show that the 
> in-kernel 3des-cbc is faster than the libcrypto one for large blocks!
> 
> (Though, "non-preemptable kernel time" vs. "preemptable user time" is 
> one aspect of the issue to consider, I guess :-)

	are there any possible negative impact due to non-preemptiveness of
	software-based /dev/crypto operation?  such as unfairness in scheduling,
	or whatever.  especially public key crypto (D-H/RSA) operation could
	take a long time...

itojun
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.