aspose file tools*
The moose likes Performance and the fly likes Performance improvement for AES Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Performance improvement for AES" Watch "Performance improvement for AES" New topic
Author

Performance improvement for AES

Pash Sonar
Greenhorn

Joined: Jul 15, 2003
Posts: 6
Hi Folks,

We are using AES 256 encryption algorithm but when we measure CPU utilization; we were stunned to find 100%.

Then I have tried with all available algorithms like AES 192, AES 128 and others.
Every algo has different CPU utilization like avg 65%, 63% resp.

Kindly note that the file I used for to encrypt is simple .xml file not more than 100 KB. It shows 100% for AES 256 for a period of execution only means till the file gets encrypted.

If we must have to use AES 256 only then is there any way to reduce that 100% to at least 70 or 80 % as 100% CPU utlization is not advisible.

Your tips are highly appreciated.

With best regards.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42600
    
  65
Why wouldn't you want utilization to be 100%? Anything less means that the encryption isn't done as quickly as it could be. I'm guessing you have other processes that you don't want to starve of CPU time, but the task scheduler should take care that other processes of the same priority keep running as well. If you have other Java tasks in the same JVM that have higher priority, consider running the encryption as its own thread; then you can fiddle around with the thread priority.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Performance improvement for AES