Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / March 2004

Tip: Looking for answers? Try searching our database.

Cryptix Encryptor CPU utilization

Thread view: 
Casey - 04 Mar 2004 01:55 GMT
Im using the latest version of Cryptix with JDK 1.3.1_01. When ever I
encrypt a message with a key the cpu utilization spikes about 10%. Ive
tested this on Windows 2000 as well as Solaris 8. Is this normal?
Michael Amling - 04 Mar 2004 04:55 GMT
> Im using the latest version of Cryptix with JDK 1.3.1_01. When ever I
> encrypt a message with a key the cpu utilization spikes about 10%. Ive
> tested this on Windows 2000 as well as Solaris 8. Is this normal?

  For symmetric encryption using AES, expect less than a microsecond of
CPU time per byte. For public key encryption, it's much higher.

--Mike Amling
Casey - 04 Mar 2004 15:00 GMT
> > Im using the latest version of Cryptix with JDK 1.3.1_01. When ever I
> > encrypt a message with a key the cpu utilization spikes about 10%. Ive
[quoted text clipped - 4 lines]
>
> --Mike Amling

Is there any way to lower the CPU utilization? I would rather it take
a few hundred milliseconds more then to hog the CPU.
Roedy Green - 05 Mar 2004 07:33 GMT
>Is there any way to lower the CPU utilization? I would rather it take
>a few hundred milliseconds more then to hog the CPU.

Just lower the priority of the thread.  You will still get 100%
utilisation,but the encryption will get last kick at the cat.

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Pat Farrell - 06 Mar 2004 05:23 GMT
>>    For symmetric encryption using AES, expect less than a microsecond of
>> CPU time per byte. For public key encryption, it's much higher.
>
>Is there any way to lower the CPU utilization? I would rather it take
>a few hundred milliseconds more then to hog the CPU.

For symmetric, nice the thread.
For RSA, not a prayer, it is too expensive. The solution,
if you care, is to not use RSA.

Pat   http://www.pfarrell.com/prc/
Roedy Green - 05 Mar 2004 07:32 GMT
>Im using the latest version of Cryptix with JDK 1.3.1_01. When ever I
>encrypt a message with a key the cpu utilization spikes about 10%. Ive
>tested this on Windows 2000 as well as Solaris 8. Is this normal?

I would expect even higher 100% since encryption is a very cpu
intensive task.  With big enough buffers it should hit 100%.  This is
not terrible, it is not as though it is a high priority use of CPU
locking everything out.

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.