]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r226840: AESNI-related commit, from a long time ago:
authorroberto <roberto@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 25 Aug 2013 14:29:47 +0000 (14:29 +0000)
committerroberto <roberto@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 25 Aug 2013 14:29:47 +0000 (14:29 +0000)
commitab36d8d7c86e92df99a0bca6083787375d318049
tree9652082fdcebea9a686ca539c5ae4bd73d482e2f
parent28f75a9705ceb7410baa5bd0f98fe0a3009ba346
MFC r226840: AESNI-related commit, from a long time ago:

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.

Submitted by: Michael Moll <kvedulv@kvedulv.de>

git-svn-id: svn://svn.freebsd.org/base/stable/9@254859 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/geom/eli/g_eli.c
sys/geom/eli/g_eli.h