freebsd-dev/sys/geom/eli
Pawel Jakub Dawidek 0c879bd990 Before this change when GELI detected hardware crypto acceleration it will
start only one worker thread. For software crypto it will start by default
N worker threads where N is the number of available CPUs.

This is not optimal if hardware crypto is AES-NI, which uses CPU for AES
calculations.

Change that to always start one worker thread for every available CPU.
Number of worker threads per GELI provider can be easly reduced with
kern.geom.eli.threads sysctl/tunable and even for software crypto it
should be reduced when using more providers.

While here, when number of threads exceeds number of CPUs avilable don't
reduce this number, assume the user knows what he is doing.

Reported by:	Yuri Karaban <dev@dev97.com>
MFC after:	3 days
2011-10-27 16:12:25 +00:00
..
g_eli_crypto.c
g_eli_ctl.c
g_eli_integrity.c
g_eli_key_cache.c
g_eli_key.c
g_eli_privacy.c
g_eli.c
g_eli.h
pkcs5v2.c
pkcs5v2.h