Bug 247433
Summary: | pcscd up to 80% of CPI | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Giuseppe Paterno <gpaterno> | ||||
Component: | pcsc-lite | Assignee: | Bob Relyea <rrelyea> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7 | CC: | ludovic.rousseau | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-10-10 15:22:44 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Giuseppe Paterno
2007-07-09 10:25:01 UTC
Do you have any other reader drivers installed, and if so what versions? No, CCID is the only activated reader in readers.conf There's openct installed as rpm, but is commented out. Note that if I remove the pcmcia reader to use the UMTS card, pcsc will stay 80-95% of cpu. Of course I stop it when using UTMS, because it's useless. The real question is what is the output of the command: $ file /usr/lib/pcsc/drivers/ This is the output: ~$ find /usr/lib/pcsc/drivers/ /usr/lib/pcsc/drivers/ /usr/lib/pcsc/drivers/openct-ifd.bundle /usr/lib/pcsc/drivers/openct-ifd.bundle/Contents /usr/lib/pcsc/drivers/openct-ifd.bundle/Contents/Info.plist /usr/lib/pcsc/drivers/openct-ifd.bundle/Contents/PkgInfo /usr/lib/pcsc/drivers/openct-ifd.bundle/Contents/Linux /usr/lib/pcsc/drivers/openct-ifd.bundle/Contents/Linux/openct-ifd.so /usr/lib/pcsc/drivers/serial /usr/lib/pcsc/drivers/serial/libccidtwin.so.1.2.1 /usr/lib/pcsc/drivers/ifd-egate.bundle /usr/lib/pcsc/drivers/ifd-egate.bundle/Contents /usr/lib/pcsc/drivers/ifd-egate.bundle/Contents/Info.plist /usr/lib/pcsc/drivers/ifd-egate.bundle/Contents/Linux /usr/lib/pcsc/drivers/ifd-egate.bundle/Contents/Linux/libifd_egate.so /usr/lib/pcsc/drivers/ifd-ccid.bundle /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux /usr/lib/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so.1.2.1 The real problem is that pcscd keep scanning the usb bus in an infinitive loop. An interim (workaround) solution would be a "sleep" between the scan of the usb bus. Maybe the long term solution would be based on udev (but i'm not a developer). Created attachment 222331 [details]
strace of pcscd showing the usb scan
This is the strace of pcscd showing that the usb scanning is in infinitive
loop.
this take me 100% of cpu, and in my laptop fans are ON all the times and my
(poor) battery is lasting no more than 30mins.
You are using 3 drivers for USB readers: - openct-ifd - ifd-egate - ifd-ccid I suggest to move all three *.bundle directories to somewhere else and then move them back one at a time and restart pcscd after each addition of a driver to see if CPU load is high. It looks like a known bug in the ifd-egate and/or openct-ifd driver. See also bugs 229263 and 232983 Hi Ludovic, you're great. Removing openct worked fine and now the CPU has reasonable level. Maybe we can mark this bug as dups of the above bug #229263 *** This bug has been marked as a duplicate of 229263 *** (In reply to comment #7) > Hi Ludovic, you're great. Yes, I know. I have no objection if Red Hat wants to hire me :-) Just use my private e-mail. |