Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-10-2013, 05:26 PM   #1
Registered: Nov 2010
Posts: 87

Rep: Reputation: 0
CPU load


I noticed a strange difference in the way CPU is loaded on my 64bit RHEL58 box. I needed to process several files with one program called FastQC, which is a Java applet/application and allows multithreaded use by specifying number of threads. The box has two physical quad core CPUs with hyperthreading, so 16 cores are visible to OS and are reported as separate cores. The box has 96 GB of memory.
Anyway, as the file names are long, to save typing I created a small script:

#! /bin/bash
fastqc -t 10 file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
When the script launched, all ten files are opened for processing at once, but "top" shows that CPU load is about 20-23%, which was surprising for 10 threads, so I killed the run.
Then I simply copied the command line and pasted it at the promt:

yaximik$ fastqc -t 10 file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
Again, all 10 files were opend for processing, but the CPU load jumped to 80% and the job was finished much faster.

Can anyone exmplain the differences?
Old 02-11-2013, 02:23 AM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Offhand, it's hard to say. Is it possible that fastqc has some initial, I/O bound work to do that is not stressing the CPU. I'd suggest using something like vmstat to check how system resources are being used.

Also, when you're in top, did you check and see that 10 threads were actually being utilized?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] High CPU load, but low CPU usage (high idle CPU) baffy Linux - Newbie 5 03-13-2013 09:24 AM
AMD CPU Generating Way More System Load Than Intel Xeon CPU? kresyzig Programming 1 10-11-2010 09:35 AM
cpu utilization and cpu load soltanloo Linux - General 1 06-07-2009 02:19 AM
Generate alert with "CPU load average" "CPU utilization" viky Linux - Hardware 3 07-25-2007 04:24 AM
strange cpu load mindcry Linux - Software 4 08-06-2004 11:57 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration