[Pcsclite-muscle] High CPU load with pcscd and Kerkey security Module
Mon Nov 14 00:11:06 PST 2016
This is the Statement from Kerkey User Manual:
"By default PCSCDLite will call the driver Kerkey every 400ms to check card
status. This is not usefull because in any case there?s no call from CCID
driver to Kerkey to avoid so many traffic between host an Kerkey
We suggest the following to change the polling time:
#define PCSC_LITE_STATUS_POLL_RATE 60000000 from pcscd.h set the pooling to
But even with this patch there is a lot of communication towards the
security module and
pcscd utilize our cpu.
here the tar packed log.
On Fri, Nov 11, 2016 at 5:30 PM, Ludovic Rousseau
<ludovic.rousseau at free.fr> wrote:
> Le 11/11/2016 ? 14:49, Oliver Graute a ?crit :
>> we use a ST Kerkey security module together with pcsc-lite and we observe
>> CPU load problems with pcscd. Pcscd is running on an embedded Yocto Linux
>> a ARM Based CPU imx6ul.
>> We store some TLS related certificates inside our security module. If we
>> access our Webserver over TLS the CPU Load of pcscd is >60%. What can be
>> cause for such a high CPU load?
>> The components which are involved are
>> kerkey driver/kerkey HW.
>> The only changes in source code we made on pcscd is this one, because its
>> recommended in the ST Kerkey User Manual.
>> diff --git a/src/pcscd.h.in b/src/pcscd.h.in
>> index c0cda6d..7354262 100644
>> --- a/src/pcscd.h.in
>> +++ b/src/pcscd.h.in
>> @@ -54,7 +54,7 @@
>> #define PCSCLITE_CSOCK_NAME PCSCLITE_IPC_DIR "/pcscd.comm"
>> #define PCSCLITE_VERSION_NUMBER "@VERSION@" /**<
>> Current version */
>> -#define PCSCLITE_STATUS_POLL_RATE 400000 /**< Status
>> polling rate */
>> +#define PCSCLITE_STATUS_POLL_RATE 60000000 /**<
>> Status polling rate */
>> #define PCSCLITE_LOCK_POLL_RATE 100000 /**<
>> Lock polling rate */
> Strange patch. I dont know why this is needed.
>> sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu
>> --color | tee pcscd_log.txt
> Please try again to generate the log and send me the generated pcscd_log.txt
> file as an attachement.
> Dr. Ludovic Rousseau
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 485807 bytes
Desc: not available
More information about the pcsclite-muscle