LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to check the scalability of a multi-threaded application in ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-check-the-scalability-of-a-multi-threaded-application-in-ubuntu-4175502136/)

aliga8er 04-18-2014 12:00 AM

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.

syg00 04-18-2014 12:44 AM

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).

aliga8er 04-18-2014 01:10 AM

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.

syg00 04-18-2014 01:34 AM

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.

aliga8er 04-18-2014 02:17 AM

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.


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