OS: FC17
All updates installed
/etc/cgconfig.conf
Code:
group users {
cpuset {
cpuset.cpus = 0;
}
}
/etc/cgrules.conf
Code:
*:skype cpuset users/
config loaded correctly
Code:
$
I'm looking for some reference documentation to explain what each of the settings are for each control group.
For example, there's cpuset.cpus, I think setting this to 0 means use all CPUs, setting it to 1 limits you to 1 core. And cpuset.shares, how is that configured exactly?
Surely there's a reference doc that simply explains each of the settings somewhere right? Anyone have a link?
Suppose I have a multi-threaded application (say ~40 threads) running on a multiprocessor system (say 8 cores) with Linux as the operating system where different threads are more essentially LWP (Light Weight Processes) being scheduled by the kernel.
What would be benefits/drawbacks of using the CPU affinity?
I tried googling it, but I cant find it. Im looking for:
1. number of threads in process X
2. total number of threads running currently
Hi Folks, I am trying to create a report where I have to grep the number of CPU cores from the following output:
HTML Code:
DEPENDENCY
master=
CORE
CID CPUSET
1 (8, 9, 10, 11, 12, 13, 14, 15) --> CPU=first number from the left
VCPU
VID PID CID
skiwi wrote:Just use -jn with n the number of real cores you have. Note also the difference between "threads" and "cores". Threads are different items in /proc/cpuinfo, for the number of cores look at the number of different 'core id's in /proc/cpuinfo.
I have a program running on a 32 core system using Intel TBB.
The problem I have is when I set the program to use 32 threads, the performance doesn't gain enough compared to 16 threads (only 50% boost). However, when I use:
taskset 0xFFFFFFFF ./foo
which would lock the process to 32 cores, the performance is much better.
I have the two following questions:
Why?
I was looking around on Wikipedia, and ran across the UltraSPARC T2 processor. This is a processor with 8 cores (8 physical processors) and 8 threads per core (64 logical processors!)
I'm aware of Intel's Hyper-Threading and other technologies, and I know collisions between the threads have the possibility of decreasing the processor's throughput.
I am trying run a total of 8 threads on 4 cores.
I bind the threads in sets of 2 to each of the core by setting the affinity.
0,1 -> core A
2,3 -> core B
4,5 -> core C
6,7 -> core D
I am able to poll the threads to check if they are running.