03-11-2014
OK your application doesnt know how to take advantage of multi-threading, but that should not be an issue on a multi-core... Even One thread appl. can make usage of more than 1 cpu... not that you will have 2 cpu dedicated, but your application may pass from one to another depending of the load and so should gain on context switching...
So I believe its more a question of tuning... but for that youwould have to know what you application is doing and where it is stuck...
10 More Discussions You Might Find Interesting
1. Solaris
Hi..,
my dout is a solaris server is having 16 cpu's.
in tht one cpu running some error process, accupaying more space.
I wanna down tht particular CPU only with out interrupting the other 15
CPU's. how can i do this. is there any command for this ?? (5 Replies)
Discussion started by: b.janardhanguru
5 Replies
2. UNIX for Dummies Questions & Answers
hi,
i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Discussion started by: pankajd
3 Replies
3. Solaris
Hello Friends,
On one of my Solaris 10 box, CPU usage shows 100% using "sar", "vmstat". However, it has 4 CPUs and prstat and glance are not showing enough processes to justify high CPU utilization.
=========================================================================
$ prstat -a
... (4 Replies)
Discussion started by: mahive
4 Replies
4. Solaris
Can anyone tell me difference between cpu-shares vs cpu-cap in solaris & how FSS will work with cpu-caps ? (9 Replies)
Discussion started by: fugitive
9 Replies
5. Solaris
I have a sun fire v480r server. it has 2 cpu. One of cpu have become faulty. Now i want to run server on a single cpu. My service provider says it cant be done, you have to replace the motherboard. Can it be done? If so do some settings need to be changed in solaris. I have search for documentation... (6 Replies)
Discussion started by: krabu
6 Replies
6. Shell Programming and Scripting
I wrote a very simple script that matches combinations of alphabetic characters (1-5). I want to use it to test CPU speeds of different hardware/platforms. The problem is that on multi-core/processor systems, only one CPU is being utilized to execute the script. Is there a way to change that?... (16 Replies)
Discussion started by: ph0enix
16 Replies
7. Solaris
Hi All,
What is the difference between CPU CHIP and CUP ID on SUN/ Oracle M5000 servers..
Thanks in advance (3 Replies)
Discussion started by: kumarmani
3 Replies
8. Red Hat
please help on this issue.
I take care of a production enterprise application , it is a java process quite complex that is a middleware application.
The process runs 24 hours a day. Usage cpu is 60% as mean value all day.
The process have some burst of cpu usage at 100% usage in the afternoon.... (0 Replies)
Discussion started by: berborfi
0 Replies
9. AIX
Hi All,
It may be a n00b question, but i really want to know , How Entitled Capacity is less and Used CPU is more when there is no Free CPU is available in the managed system.
I have 5LPARs in a MS with Dual VIO.
Managed System CPU details
Available: 0.20
Assigned to partitions: 15.80... (11 Replies)
Discussion started by: Thala
11 Replies
10. UNIX for Beginners Questions & Answers
I read that Entitlement CPU should be set to max 75% compare to Virtual CPU. May I know the reason.
I have set the Entitlement CPU = Virtual CPU on AIX . It works fine .
Can you help to understand. (1 Reply)
Discussion started by: gabhanes
1 Replies
LEARN ABOUT NETBSD
cpuset_set
CPUSET(3) BSD Library Functions Manual CPUSET(3)
NAME
cpuset_create, cpuset_destroy, cpuset_zero, cpuset_set, cpuset_clr, cpuset_isset, cpuset_size -- dynamic CPU sets
SYNOPSIS
#include <sched.h>
cpuset_t *
cpuset_create(void);
void
cpuset_destroy(cpuset_t *set);
void
cpuset_zero(cpuset_t *set);
int
cpuset_set(cpuid_t cpu, cpuset_t *set);
int
cpuset_clr(cpuid_t cpu, cpuset_t *set);
int
cpuset_isset(cpuid_t cpu, const cpuset_t *set);
size_t
cpuset_size(const cpuset_t *set);
DESCRIPTION
This section describes the functions used to create, set, use and destroy the dynamic CPU sets.
This API can be used with the POSIX threads, see pthread(3) and affinity(3).
The ID of the primary CPU in the system is 0.
FUNCTIONS
cpuset_create()
Allocates and initializes a clean CPU-set. Returns the pointer to the CPU-set, or NULL on failure.
cpuset_destroy(set)
Destroy the CPU-set specified by set.
cpuset_zero(set)
Makes the CPU-set specified by set clean, that is, memory is initialized to zero bytes, and none of the CPUs set.
cpuset_set(cpu, set)
Sets the CPU specified by cpu in set. Returns zero on success, and -1 if cpu is invalid.
cpuset_clr(cpu, set)
Clears the CPU specified by cpu in the CPU-set set. Returns zero on success, and -1 if cpu is invalid.
cpuset_isset(cpu, set)
Checks if CPU specified by cpu is set in the CPU-set set. Returns the positive number if set, zero if not set, and -1 if cpu is
invalid.
cpuset_size(set)
Returns the size in bytes of CPU-set specified by set.
SEE ALSO
affinity(3), pset(3), sched(3), schedctl(8), kcpuset(9)
HISTORY
The dynamic CPU sets appeared in NetBSD 5.0.
BSD
November 2, 2011 BSD