Full usage of CPU


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Full usage of CPU
# 1  
Old 06-25-2003
Full usage of CPU

Hello all,

I have a sunfire 280R with 2 750 MHz CPU and 2 Gig of RAM. But when I compile things it does not seem to be using all of it's resources thus the compile take forever. At most it seem to be only using at most 10% of CPU and 5% of swap sapce. I have tried to renice the pid of the compile, but it still does not seem to do anything. Does anyone know what I can do to tune/increase CPU usage? THANKS all
# 2  
Old 06-26-2003
You may want to use sar, vmstat, top, or some other utility to determine what the bottleneck is on your system. My guess would be you are waiting on I/O to disk. You could increase your CPU usage slightly by using faster disks, although I doubt it is going to change your situation much. I don't do a lot of compiling but I am guessing it is a fairly I/O bound process and is probably bound to 1 CPU which means you will most likely never use both CPUs anywhere near 100% while compiling. If you don't have anything else running on the system, the CPU's are so much faster then anything else that unless you are doing some heavy crunching, the CPU will always be waiting for disk, memory, etc.
# 3  
Old 06-26-2003
Same trouble

Hi ,
I am facing a similar problem on the same configuration.
In my case the problem is the cpu usage does show 97 - 99 % usage and also there is no i/o wait, when i fire multiple processes.
but i don't get the performance.

Basically i m running a application which generates small files.I need to generate around 170 files per minute. If run just one process one file takes 5 secs to generate. When i run say 10 process it shows 40 secs to 200 secs for certain files and also the average time is around 4 secs per file.

Is it that i m overrunning the process or do i need to set some kernel parameters.Please help.

Zing
# 4  
Old 06-26-2003
Generating files is an expensive process and it's not a process that is cpu bound. Using ten disk drives would be more useful that 10 cpu's.

Also how many files in the directory. Creating file number 1001 in a directory costs a lot more than creating file number 2. Keep the ratio of files per directory as low as possible.

Look at the mounting options on the filesystem. Metadata is typically synced rather aggressively. There may be a way to give up reliability to get performance. For example with a vxfs file system on hp-ux you could set minchache=tmpcache.
# 5  
Old 06-26-2003
Thanks TioTony,

I was using top to look at the cpu usage. I have also used sar, vmstat and prstat -a to look at things. All show the same thing, the CPU and swap sapce is not being used. There is nothing else major running on the system. I have 10,000 RPM disks. Let me add one thing to this, the home directory is mount from another machine. To my understanding this should not be an issue. Any input thanks.
# 6  
Old 06-27-2003
Are you compiling to the home directory or using any files in it during the compilation process? What was the waiting for I/O percentage with the utilities you used. What is the load average? 10K disks are fast but no disk (even a RAM disk) is likely to be as fast as your CPU. I still have the feeling your bottleneck is I/O. If you are reading/writing to the home directory, you may want to consider moving the files local, compiling, and then moving the resulting files to the home directory. This may help utilize the CPUs better. If your load average is high, then you may want to shut down non-essential programs, at least while you are compiling.
# 7  
Old 06-27-2003
Also check out the stats on the system serving out those home directories since it looks like you are using them when compiling. You may find your problem there.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

CPU usage

Hi all, I'm using python and psutil a library to get system informations like cpu usage (percent) for a given process. My question is if I have the value in % of the cpu usage how I could get the cpu usage in cycle number I mean not in percent? Thanks a lot D. (5 Replies)
Discussion started by: Dedalus
5 Replies

2. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

3. Shell Programming and Scripting

Perl how to make the 2nd CPU full?

Hi Buddies, my pc has two CPU, so CPU1 and CPU2. I have a perl "a.pl", when i "./a.pl", i can see the CPU1 is full or CPU2 is full, mean only one is full, another one is idle. Wonderring what shall i do in order to let both CPU to process this a.pl.:( Thanks (1 Reply)
Discussion started by: jimmy_y
1 Replies

4. Solaris

Multi CPU Solaris system shows 100% CPU usage.

Hello Friends, On one of my Solaris 10 box, CPU usage shows 100% using "sar", "vmstat". However, it has 4 CPUs and prstat and glance are not showing enough processes to justify high CPU utilization. ========================================================================= $ prstat -a ... (4 Replies)
Discussion started by: mahive
4 Replies

5. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

6. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

7. Programming

Cpu usage

Hi all, When I have a below while loop in my code (This observation is same for C and Perl) i= 0; while(1) { i++; } for above the CPU uses goes beyond 49% on hp-ux machine, why cpu usage increase at this level for just a simple while loop? and if I have a single print statement... (2 Replies)
Discussion started by: zing_foru
2 Replies

8. Programming

CPU usage and memory usage

Please tell me solaris functions/api for getting following information 1- Function that tells how much memory used by current process 2- Function that tells how much memory used by all running processes 3- Function that tells how much CPU is used by current process 4- Function that tells how... (1 Reply)
Discussion started by: mansoorulhaq
1 Replies

9. UNIX for Dummies Questions & Answers

cpu usage

when i got the cpu usage values of the all process running in my sytem i see that 140% of the cpu is used. (using ps aux command) i have a 4 cpu system. can we say that averagely 35% of each cpu is used? and if i want to speak more precisely, how can i find out that, which cpu is used at... (4 Replies)
Discussion started by: gfhgfnhhn
4 Replies

10. Programming

Monitor CPU usage and Memory Usage

how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries through a c program or java program i want to store that data into database so i can show it graphically thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies
Login or Register to Ask a Question