Solved

CPU Bottleneck

Posted on 1998-09-29
5
403 Views
Last Modified: 2010-04-21
I have a process that, when it runs, it consumes 90 percent of the CPU.  
There aren't problems by memory neither by disk in the machine.  
I believe that this process would run quicker if I'm able to solve the bottleneck that takes place.  
Do you think that adding one more CPU the problem is solved?
0
Comment
Question by:eracero
  • 3
5 Comments
 
LVL 3

Accepted Solution

by:
arunm earned 50 total points
ID: 2007153
No adding one more CPU will not solve your problem unless your application can support multiple threads. Not likely unless the application is specifically written to support this. You could by adding another CPU, shift this process to one cpu, leaving the other for your other applications. But this solution will not make your current process any faster.
Investigating why the application is so processor intensive is the best solution. Can you debug it?
0
 
LVL 84

Expert Comment

by:ozo
ID: 2007154
or profile it to see which operations are taking the most time?
0
 
LVL 3

Expert Comment

by:braveheart
ID: 2007155
Using a lot of CPU is not necessarily a bad thing, unless your application or the entire system is running too slowly. If you have plenty of memory and the rest of the machine is normally idle, then any process which uses very little disk I/O ought to use a high percentage of CPU. It probably means that the scheduler is doing the job it is supposed to do. Otherwise your program would be hanging around doing nothing for no good reason.
0
 
LVL 3

Expert Comment

by:arunm
ID: 2007156
Any luck finding the bottleneck eracero?

0
 
LVL 3

Expert Comment

by:arunm
ID: 2007157
Still no luck eracero?

0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AIX  NFS  question 1 136
Unix, date minus 1, 2 or 3 days (last working day) 11 52
Generate FIPS 140-2 Public Key on Unix 5 74
Remote Change Dates on AIX Automation 7 60
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

806 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question