LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-10-2013, 05:26 PM   #1
yaximik
Member
 
Registered: Nov 2010
Posts: 90

Rep: Reputation: 0
CPU load


Hi,

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:

Code:
#! /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:

Code:
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
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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?
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:20 AM.

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