> When I used mpstat 1 30, it says the process is using only one cpu all
> the time. The same tool when ran on another sun server, its using all
> the 4 cpus. Will the system restricts usage of multiple cpus?
No.
Quote:> If so,
> is there any system parameter, which can be set, so that the
> application process can use multiple cpus.
There is no such system parameter. Unless something else[1] is
constraining the application to run on a specified number of CPUs then
the OS will run the application on as many CPUs as are available.
[1]"Something else"s include
The application is single threaded (so will only ever run on one CPU
at a time)
The application is written to produce only a maximum number of threads
Someone has bound the process to one CPU using pbind
Someone has defined processor sets using psrset and your application
is not allowed to run on a given processor set.
The latter two are not the default - by default the OS will attempt to
schedule as many threads arew created on as many CPUs as are online.
--
Tony