hi all
im trying to run a multithreaded application on a dual core hyberthreaded machine, linux sees 4 processors on the machine
the problem is that when i run the program the cpu usage is limited to only 99.9%( checked it using top command), each CPU gives the process around 25%.
is there anyway to force linux to give more power of the cpus to the process ?
Comments
: im trying to run a multithreaded application on a dual core hyberthreaded machine, linux sees 4 processors on the machine
: the problem is that when i run the program the cpu usage is limited to only 99.9%( checked it using top command), each CPU gives the process around 25%.
: is there anyway to force linux to give more power of the cpus to the process ?
:
Are you sure that every CPU gives 25%?
Maybe a proccess cannot run on multiple cpus at the same time...
I raelly don't know...
you didn't actually say how many cpu's your have, but i would assume that a dual core cpu would show as 2 cpus (although physically one cpu), do hyperthreaded cpu's do the same thing ?
as far as i know the cpu usage show by top command is one figure for all cpu's in a machine (so you are effectively using 100% of available cpu)
however you can modify the priority of a process using the nice command (see the man page for proper usage) or you can check out the "Resource Usage And Limitation" section of the gnu's libc manual:
http://www.gnu.org/software/libc/manual/html_node/Resource-Usage-And-Limitation.html#Resource-Usage-And-Limitation
------
nugent