FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 01-02-2008, 04:51 AM
Jeff Krebs
 
Default pcscd, sun java, 100% CPU usage

Oddest issue with pcsc. I'm getting 100% CPU usage while running pcscd.

Now to story...

Finally got my CAC Card setup running and working. I'm able to do what
I need to do with PKI certificates and such. Athena reader, Athena
driver. Started with java-1.7.0-icedtea. Joy and happiness abounding
except...

IcedTea just wasn't doing it. CNN video wasn't working. Odds and ends
borked or not functioning.

Managed to get all SunJava 1.6.0r3 packages built and installed under
Fedora 8. Even the jdbc and fonts. My machine passed the Java.com test
and even updated the java applets (hadn't seen that before). Java works
wonderful, everything seems to function very well. Except...

Now, after removing IcedTea and installing Sun-Java, my CPU is at 100%.
Top shows pcscd as #1, burning over 91% of the CPU. This is a P4 1.6
Ghz, and I have 1.2 G of RAM. I can stop pcscd through the "Services"
configuration interface (via /usr/sbin/system-config-services). The
system CPU usage immediately drops to around 7%. Much weeping and
gnashing of teeth...

Now, the question. What's going on? Why does Java appear to cause a
race condition in pcscd? I can certainly disable pcscd when I don't
need it, but when I do need it, will I have to face high CPU usage?


Jeff Krebs

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 01-02-2008, 10:26 AM
"Tod Merley"
 
Default pcscd, sun java, 100% CPU usage

On Jan 1, 2008 9:51 PM, Jeff Krebs <jkrebs@tconl.com> wrote:
> Oddest issue with pcsc. I'm getting 100% CPU usage while running pcscd.
>
> Now to story...
>
> Finally got my CAC Card setup running and working. I'm able to do what
> I need to do with PKI certificates and such. Athena reader, Athena
> driver. Started with java-1.7.0-icedtea. Joy and happiness abounding
> except...
>
> IcedTea just wasn't doing it. CNN video wasn't working. Odds and ends
> borked or not functioning.
>
> Managed to get all SunJava 1.6.0r3 packages built and installed under
> Fedora 8. Even the jdbc and fonts. My machine passed the Java.com test
> and even updated the java applets (hadn't seen that before). Java works
> wonderful, everything seems to function very well. Except...
>
> Now, after removing IcedTea and installing Sun-Java, my CPU is at 100%.
> Top shows pcscd as #1, burning over 91% of the CPU. This is a P4 1.6
> Ghz, and I have 1.2 G of RAM. I can stop pcscd through the "Services"
> configuration interface (via /usr/sbin/system-config-services). The
> system CPU usage immediately drops to around 7%. Much weeping and
> gnashing of teeth...
>
> Now, the question. What's going on? Why does Java appear to cause a
> race condition in pcscd? I can certainly disable pcscd when I don't
> need it, but when I do need it, will I have to face high CPU usage?
>
>
> Jeff Krebs
>
> --
> fedora-list mailing list
> fedora-list@redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>

Hi Jeff Krebs!

I too do not understand what would make the smart card reader manager
go bonkers. Perhaps Sun's java makes it look for the CAC verification
module which perhaps it cannot find?

The question your e-mail made me ponder is "how can one find out"
"what's going on?". I have found some possible answers. Some I have
heard mentioned in this forum.

strace - ltrace - lsof ... :

http://en.wikipedia.org/wiki/Strace (also man strace)

http://en.wikipedia.org/wiki/Ltrace (also man ltrace)

http://en.wikipedia.org/wiki/Lsof_%28Unix%29 (also man lsof)

http://en.wikipedia.org/wiki/Gdb (also man gdb)

Looking from the Java end:

http://jamonapi.sourceforge.net/

Probably for the developer - The Linux Test Project:

http://ltp.sourceforge.net/

I have never gone so far into finding the actual problem as these
tools can take us. Hopefully someone who has will chime in.

I would love to hear what you do find and how you found it!

Good Hunting!

Tod

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 01-02-2008, 10:30 AM
"Tod Merley"
 
Default pcscd, sun java, 100% CPU usage

On Jan 1, 2008 9:51 PM, Jeff Krebs <jkrebs@tconl.com> wrote:
> Oddest issue with pcsc. I'm getting 100% CPU usage while running pcscd.
>
> Now to story...
>
> Finally got my CAC Card setup running and working. I'm able to do what
> I need to do with PKI certificates and such. Athena reader, Athena
> driver. Started with java-1.7.0-icedtea. Joy and happiness abounding
> except...
>
> IcedTea just wasn't doing it. CNN video wasn't working. Odds and ends
> borked or not functioning.
>
> Managed to get all SunJava 1.6.0r3 packages built and installed under
> Fedora 8. Even the jdbc and fonts. My machine passed the Java.com test
> and even updated the java applets (hadn't seen that before). Java works
> wonderful, everything seems to function very well. Except...
>
> Now, after removing IcedTea and installing Sun-Java, my CPU is at 100%.
> Top shows pcscd as #1, burning over 91% of the CPU. This is a P4 1.6
> Ghz, and I have 1.2 G of RAM. I can stop pcscd through the "Services"
> configuration interface (via /usr/sbin/system-config-services). The
> system CPU usage immediately drops to around 7%. Much weeping and
> gnashing of teeth...
>
> Now, the question. What's going on? Why does Java appear to cause a
> race condition in pcscd? I can certainly disable pcscd when I don't
> need it, but when I do need it, will I have to face high CPU usage?
>
>
> Jeff Krebs
>
> --
> fedora-list mailing list
> fedora-list@redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>

Hi again Jeff Krebs!

Just a thought (and a bit lazy of a hack) but you could nice pcscd (man nice).

Have Fun!

Tod

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 01-02-2008, 12:52 PM
Jeff Krebs
 
Default pcscd, sun java, 100% CPU usage

* Tod Merley (todbot88@gmail.com) wrote:
> On Jan 1, 2008 9:51 PM, Jeff Krebs <jkrebs@tconl.com> wrote:
> > Oddest issue with pcsc. I'm getting 100% CPU usage while running pcscd.
> >
> > Now to story...
> >
> > Finally got my CAC Card setup running and working. I'm able to do what
> > I need to do with PKI certificates and such. Athena reader, Athena
> > driver. Started with java-1.7.0-icedtea. Joy and happiness abounding
> > except...
> >
> > IcedTea just wasn't doing it. CNN video wasn't working. Odds and ends
> > borked or not functioning.
> >
> > Managed to get all SunJava 1.6.0r3 packages built and installed under
> > Fedora 8. Even the jdbc and fonts. My machine passed the Java.com test
> > and even updated the java applets (hadn't seen that before). Java works
> > wonderful, everything seems to function very well. Except...
> >
> > Now, after removing IcedTea and installing Sun-Java, my CPU is at 100%.
> > Top shows pcscd as #1, burning over 91% of the CPU. This is a P4 1.6
> > Ghz, and I have 1.2 G of RAM. I can stop pcscd through the "Services"
> > configuration interface (via /usr/sbin/system-config-services). The
> > system CPU usage immediately drops to around 7%. Much weeping and
> > gnashing of teeth...
> >
> > Now, the question. What's going on? Why does Java appear to cause a
> > race condition in pcscd? I can certainly disable pcscd when I don't
> > need it, but when I do need it, will I have to face high CPU usage?
> >
> >
> > Jeff Krebs
> >
> > --
> > fedora-list mailing list
> > fedora-list@redhat.com
> > To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> >
>
> Hi Jeff Krebs!
>
> I too do not understand what would make the smart card reader manager
> go bonkers. Perhaps Sun's java makes it look for the CAC verification
> module which perhaps it cannot find?
>
> The question your e-mail made me ponder is "how can one find out"
> "what's going on?". I have found some possible answers. Some I have
> heard mentioned in this forum.
>
> strace - ltrace - lsof ... :
>
> http://en.wikipedia.org/wiki/Strace (also man strace)
>
> http://en.wikipedia.org/wiki/Ltrace (also man ltrace)
>
> http://en.wikipedia.org/wiki/Lsof_%28Unix%29 (also man lsof)
>
> http://en.wikipedia.org/wiki/Gdb (also man gdb)
>
> Looking from the Java end:
>
> http://jamonapi.sourceforge.net/
>
> Probably for the developer - The Linux Test Project:
>
> http://ltp.sourceforge.net/
>
> I have never gone so far into finding the actual problem as these
> tools can take us. Hopefully someone who has will chime in.
>
> I would love to hear what you do find and how you found it!
>
> Good Hunting!
>
> Tod
>
> --
> fedora-list mailing list
> fedora-list@redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

I did find something after a bit of searching on-line:

https://bugzilla.redhat.com/show_bug.cgi?id=374291

I'm not sure that the issue is related to SunJava. The Fedora pcsc-lite
is currently at 1.3.3, and there have been five releases since then,
culminating in release 1.4.4.

On bugzilla, someone mentioned that 1.4.4 took care of the issue; I'll
roll my own pcsc-lite RPMs and see if that helps the issue.

Jeff Krebs

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 01-02-2008, 01:31 PM
Jeff Krebs
 
Default pcscd, sun java, 100% CPU usage

* Tod Merley (todbot88@gmail.com) wrote:
> On Jan 1, 2008 9:51 PM, Jeff Krebs <jkrebs@tconl.com> wrote:
> > Oddest issue with pcsc. I'm getting 100% CPU usage while running pcscd.
> >
> > Now to story...
> >
> > Finally got my CAC Card setup running and working. I'm able to do what
> > I need to do with PKI certificates and such. Athena reader, Athena
> > driver. Started with java-1.7.0-icedtea. Joy and happiness abounding
> > except...
> >
> > IcedTea just wasn't doing it. CNN video wasn't working. Odds and ends
> > borked or not functioning.
> >
> > Managed to get all SunJava 1.6.0r3 packages built and installed under
> > Fedora 8. Even the jdbc and fonts. My machine passed the Java.com test
> > and even updated the java applets (hadn't seen that before). Java works
> > wonderful, everything seems to function very well. Except...
> >
> > Now, after removing IcedTea and installing Sun-Java, my CPU is at 100%.
> > Top shows pcscd as #1, burning over 91% of the CPU. This is a P4 1.6
> > Ghz, and I have 1.2 G of RAM. I can stop pcscd through the "Services"
> > configuration interface (via /usr/sbin/system-config-services). The
> > system CPU usage immediately drops to around 7%. Much weeping and
> > gnashing of teeth...
> >
> > Now, the question. What's going on? Why does Java appear to cause a
> > race condition in pcscd? I can certainly disable pcscd when I don't
> > need it, but when I do need it, will I have to face high CPU usage?
> >
> >
> > Jeff Krebs
> >
> > --
> > fedora-list mailing list
> > fedora-list@redhat.com
> > To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> >
>
> Hi Jeff Krebs!
>
> I too do not understand what would make the smart card reader manager
> go bonkers. Perhaps Sun's java makes it look for the CAC verification
> module which perhaps it cannot find?
>
> The question your e-mail made me ponder is "how can one find out"
> "what's going on?". I have found some possible answers. Some I have
> heard mentioned in this forum.
>
> strace - ltrace - lsof ... :
>
> http://en.wikipedia.org/wiki/Strace (also man strace)
>
> http://en.wikipedia.org/wiki/Ltrace (also man ltrace)
>
> http://en.wikipedia.org/wiki/Lsof_%28Unix%29 (also man lsof)
>
> http://en.wikipedia.org/wiki/Gdb (also man gdb)
>
> Looking from the Java end:
>
> http://jamonapi.sourceforge.net/
>
> Probably for the developer - The Linux Test Project:
>
> http://ltp.sourceforge.net/
>
> I have never gone so far into finding the actual problem as these
> tools can take us. Hopefully someone who has will chime in.
>
> I would love to hear what you do find and how you found it!
>
> Good Hunting!
>
> Tod
>
> --
> fedora-list mailing list
> fedora-list@redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Thank you for the interesting insight and the list of all of the
development tools.

I rebuilt the rawhide pcsc .src.rpm (version 1.4.4, vice the 1.3.3
distro provide) and installed. Seems to do the trick. Bugzilla
indicated that others were having this issue as well. Hopefully we'll
see the update in FC7/F8 soon.

Jeff Krebs

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 01-02-2008, 05:03 PM
"Tod Merley"
 
Default pcscd, sun java, 100% CPU usage

On Jan 2, 2008 6:31 AM, Jeff Krebs <jkrebs@tconl.com> wrote:
> * Tod Merley (todbot88@gmail.com) wrote:
>
> > On Jan 1, 2008 9:51 PM, Jeff Krebs <jkrebs@tconl.com> wrote:
> > > Oddest issue with pcsc. I'm getting 100% CPU usage while running pcscd.
> > >
> > > Now to story...
> > >
> > > Finally got my CAC Card setup running and working. I'm able to do what
> > > I need to do with PKI certificates and such. Athena reader, Athena
> > > driver. Started with java-1.7.0-icedtea. Joy and happiness abounding
> > > except...
> > >
> > > IcedTea just wasn't doing it. CNN video wasn't working. Odds and ends
> > > borked or not functioning.
> > >
> > > Managed to get all SunJava 1.6.0r3 packages built and installed under
> > > Fedora 8. Even the jdbc and fonts. My machine passed the Java.com test
> > > and even updated the java applets (hadn't seen that before). Java works
> > > wonderful, everything seems to function very well. Except...
> > >
> > > Now, after removing IcedTea and installing Sun-Java, my CPU is at 100%.
> > > Top shows pcscd as #1, burning over 91% of the CPU. This is a P4 1.6
> > > Ghz, and I have 1.2 G of RAM. I can stop pcscd through the "Services"
> > > configuration interface (via /usr/sbin/system-config-services). The
> > > system CPU usage immediately drops to around 7%. Much weeping and
> > > gnashing of teeth...
> > >
> > > Now, the question. What's going on? Why does Java appear to cause a
> > > race condition in pcscd? I can certainly disable pcscd when I don't
> > > need it, but when I do need it, will I have to face high CPU usage?
> > >
> > >
> > > Jeff Krebs
> > >
> > > --
> > > fedora-list mailing list
> > > fedora-list@redhat.com
> > > To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> > >
> >
> > Hi Jeff Krebs!
> >
> > I too do not understand what would make the smart card reader manager
> > go bonkers. Perhaps Sun's java makes it look for the CAC verification
> > module which perhaps it cannot find?
> >
> > The question your e-mail made me ponder is "how can one find out"
> > "what's going on?". I have found some possible answers. Some I have
> > heard mentioned in this forum.
> >
> > strace - ltrace - lsof ... :
> >
> > http://en.wikipedia.org/wiki/Strace (also man strace)
> >
> > http://en.wikipedia.org/wiki/Ltrace (also man ltrace)
> >
> > http://en.wikipedia.org/wiki/Lsof_%28Unix%29 (also man lsof)
> >
> > http://en.wikipedia.org/wiki/Gdb (also man gdb)
> >
> > Looking from the Java end:
> >
> > http://jamonapi.sourceforge.net/
> >
> > Probably for the developer - The Linux Test Project:
> >
> > http://ltp.sourceforge.net/
> >
> > I have never gone so far into finding the actual problem as these
> > tools can take us. Hopefully someone who has will chime in.
> >
> > I would love to hear what you do find and how you found it!
> >
> > Good Hunting!
> >
> > Tod
> >
> > --
> > fedora-list mailing list
> > fedora-list@redhat.com
> > To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
> Thank you for the interesting insight and the list of all of the
> development tools.
>
> I rebuilt the rawhide pcsc .src.rpm (version 1.4.4, vice the 1.3.3
> distro provide) and installed. Seems to do the trick. Bugzilla
> indicated that others were having this issue as well. Hopefully we'll
> see the update in FC7/F8 soon.
>
>
> Jeff Krebs
>
> --
> fedora-list mailing list
> fedora-list@redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>

Hi Jeff Krebs!

I am very glad to hear that you found your fix and implemented it!
Google Rocks!

I have been wanting to find out about those tools since I heard that
they existed. Thanks for moving me to find them!

Have a lot of fun!

Tod

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 01-07-2008, 05:36 PM
Todd Denniston
 
Default pcscd, sun java, 100% CPU usage

Jeff Krebs wrote, On 01/02/2008 08:52 AM:

* Tod Merley (todbot88@gmail.com) wrote:

On Jan 1, 2008 9:51 PM, Jeff Krebs <jkrebs@tconl.com> wrote:

Oddest issue with pcsc. I'm getting 100% CPU usage while running pcscd.

Now to story...

Finally got my CAC Card setup running and working. I'm able to do what
I need to do with PKI certificates and such. Athena reader, Athena
driver. Started with java-1.7.0-icedtea. Joy and happiness abounding
except...

IcedTea just wasn't doing it. CNN video wasn't working. Odds and ends
borked or not functioning.

Managed to get all SunJava 1.6.0r3 packages built and installed under
Fedora 8. Even the jdbc and fonts. My machine passed the Java.com test
and even updated the java applets (hadn't seen that before). Java works
wonderful, everything seems to function very well. Except...

Now, after removing IcedTea and installing Sun-Java, my CPU is at 100%.
Top shows pcscd as #1, burning over 91% of the CPU. This is a P4 1.6
Ghz, and I have 1.2 G of RAM. I can stop pcscd through the "Services"
configuration interface (via /usr/sbin/system-config-services). The
system CPU usage immediately drops to around 7%. Much weeping and
gnashing of teeth...

Now, the question. What's going on? Why does Java appear to cause a
race condition in pcscd? I can certainly disable pcscd when I don't
need it, but when I do need it, will I have to face high CPU usage?


Jeff Krebs



Hi Jeff Krebs!

I too do not understand what would make the smart card reader manager
go bonkers. Perhaps Sun's java makes it look for the CAC verification
module which perhaps it cannot find?


<SNIP>


I have never gone so far into finding the actual problem as these
tools can take us. Hopefully someone who has will chime in.

I would love to hear what you do find and how you found it!

Good Hunting!

Tod


I did find something after a bit of searching on-line:

https://bugzilla.redhat.com/show_bug.cgi?id=374291

I'm not sure that the issue is related to SunJava. The Fedora pcsc-lite
is currently at 1.3.3, and there have been five releases since then,
culminating in release 1.4.4.


On bugzilla, someone mentioned that 1.4.4 took care of the issue; I'll
roll my own pcsc-lite RPMs and see if that helps the issue.


Jeff Krebs



On the system where I experienced it, the problem was that the
ifd-cyberjack.bundle was being loaded by pcscd even though the reader was a
CCID reader (SCR331 or GEMplus USB). once `rpm -e ifd-cyberjack` and `service
pcscd restart` were ran, all was well with the system.


I think it is like the two options available for syslog ... load just the ONE
you need/want, not both. Granted someone made ifd-egate a requirement for
pcscd, which is just WRONG because pcscd does not need THAT ifd handler.
pcscd only needs the _appropriate_ one for the hardware you have (I may be in
a rarefied environment but the current standard for reader hardware seems to
be ccid).


BTW comment to bug added.
--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 

Thread Tools




All times are GMT. The time now is 06:19 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org