LinuxQuestions.org
Visit Jeremy's Blog.
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 04-18-2014, 01:00 AM   #1
aliga8er
LQ Newbie
 
Registered: Feb 2013
Posts: 17

Rep: Reputation: Disabled
How to check the scalability of a multi-threaded application in ubuntu


Hello

I am doing a study in which I wanted to check the scalability of a sofware in ubuntu 13.10. I wanted to ask you if there is a way in which I can check the scalability in ubuntu e.g. I can limit the number of processor cores for the software (e.g. check for core #1 then for core #2 and so on ( till the maximum processor core).

Awaiting for your response.
 
Old 04-18-2014, 01:44 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
The kernel accepts a maxcpus=? parameter to restrict how many "cores" it uses - whether hiperthread or "real" core, you have no control over.
Personally when testing like this I prefer to turn hiperthreading off in the BIOS (if you can), and then change the number of "cores" on eacch reboot. Then turn it on and try again. If you have cgroups active, you can better control which "core" you allow for testing based on the specific test process(es).
 
Old 04-18-2014, 02:10 AM   #3
aliga8er
LQ Newbie
 
Registered: Feb 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thank you for your reply. I understand how to turn off/on the hyperthreading part. But as for the the kernel, how to change the maxcpu in kernel? do I have to recompile it?

Awaiting for your response.
 
Old 04-18-2014, 02:34 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Just a kernel parm - add it to the "kernel" line in your boot-loader.

Have a look at this if you don't know how.

Last edited by syg00; 04-18-2014 at 02:37 AM. Reason: Added link
 
Old 04-18-2014, 03:17 AM   #5
aliga8er
LQ Newbie
 
Registered: Feb 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thank you, got it. Now, one more thing, I how can i measure cpu time (not cpu utilization) for a process and store it in a file.
 
  


Reply


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] Unable to debug multi-threaded application on gdb aliga8er Linux - Newbie 1 04-02-2014 06:37 AM
GTK multi-threaded application akhil1 Programming 2 01-20-2009 04:59 AM
apache: running multi-threaded or multi fork? Swakoo Linux - General 1 03-20-2008 08:18 AM
how to debug multi threaded application sibtay Programming 3 10-15-2004 01:02 PM
Multi-Threaded C pragti Programming 1 06-01-2004 11:50 AM


All times are GMT -5. The time now is 02:48 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration