Sponsored Content
Special Forums Hardware Hyperthreaded virtual cores, different C-States? Post 302922388 by agentrnge on Friday 24th of October 2014 10:08:55 AM
Old 10-24-2014
Hyperthreaded virtual cores, different C-States?

turbostat reports C-states of all CPU cores, and includes entries for each hyper-threaded core as well. Often enough the two logical cores on a single physical core will list different C state percentages. Does that make any sense?

Is this reporting the c-states of the few duplicated parts that support hyperthreading, vs the actual computing units in the single physical core?

This isn't a turbostat specific question, that just happens to be the tool I used to display that info. Its more a question about hyperthreading in general.
Edit: CPU is an Intel 5820K hexacore if that matters. Its my first hyperthreaded CPU.

Last edited by agentrnge; 10-24-2014 at 11:21 AM..
 

8 More Discussions You Might Find Interesting

1. IP Networking

laymens terms for netstat states

Ok, I've read the manpages on netstat and it gives a good description of the state values such as CLOSE_WAIT, ESTABLISHED, SYN_RECEIVED, etc.. Can someone give me real world situations where you would get these states. LIke for example if I got SYN_RECEIVED what possible situations would be the... (1 Reply)
Discussion started by: eloquent99
1 Replies

2. Solaris

meaning of states in sun clusters

Hi Everybody, As I am new to Sun Clusters, Please help me what is "online but not monitored" state of resources and "online - service is online" in status message. Thank you. (1 Reply)
Discussion started by: mayahari
1 Replies

3. UNIX for Dummies Questions & Answers

Have to log out of a virtual terminal twice in order to exit virtual terminals

Not really a newbie, but I have a strange problem and I'm not sure how to further troubleshoot it. I have to log out of a virtual terminal by typing exit, then exit again as in: woodnt@toshiba-laptop ~ $ exit logout woodnt@toshiba-laptop ~ $ exit logout I DON'T have to do this when I'm... (1 Reply)
Discussion started by: Narnie
1 Replies

4. UNIX for Advanced & Expert Users

Unix process states

I am trying to write my own Unix compliant (SUSv4) OS - Just a hobby OS, nothing serious. While going through the standard, I couldn't find any explicit information on process states. What I could find was (excluding the real-time considerations)- From this it can be inferred that the... (2 Replies)
Discussion started by: tinkerbeast
2 Replies

5. Solaris

Change hostID of Solaris 10 virtual/guest machine installed by Virtual Box 4.1.12 on Windows-XP host

Trying to set or modify the randomly set hostID of a Solaris 10 virtual/guest machine that I installed on a Windows-XP host machine (using Virtual Box 4.1.12). I was able to set/modify the hostname of the Solaris 10 virtual/guest machine during installation as well as via the Virtual Box... (4 Replies)
Discussion started by: Matt_VB
4 Replies

6. Shell Programming and Scripting

Count no of netstat states

netstat | awk '/server/ {for(i=1;i<2;i++) {getline;print}' Output: ESTABLISHED ESTABLISHED ESTABLISHED ESTABLISHED ESTABLISHED TIME_WAIT TIME_WAIT From the above command I'm getting all the states. I want to count the states and write to a file, like "Count of ESTABLISHED... (6 Replies)
Discussion started by: Roozo
6 Replies

7. Shell Programming and Scripting

Ps command showing different states for same process

I am using HP-UX,KSH $ jobs -l + 19377 Running nohup ksh cat_Duplicate_Records_Removal.ksh </dev/null >/dev/null 2>&1 & $ ps -p 19377 -fl F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME COMD 401 S catmgr 19377 19491 ... (1 Reply)
Discussion started by: TomG
1 Replies

8. UNIX for Beginners Questions & Answers

Providing virtual machine priority in kvm based virtual machines

Hi All, Is there any way I can prioritize my VMs when there is resource crunch in host machine so that some VMs will be allocated more vcpu, more memory than other VMs in kvm/qemu hypervisor based virtual machines? Lets say in my cloud environment my Ubuntu 16 compute hosts are running some... (0 Replies)
Discussion started by: SanjayK
0 Replies
HWLOC-BIND(1)							       hwloc							     HWLOC-BIND(1)

NAME
hwloc-bind - Launch a command that is bound to specific processors and/or memory. SYNOPSIS
hwloc-bind [options] <location1> [<location2> [...] ] [--] <command> ... OPTIONS
See below for a description of valid <location> formats. --cpubind Use following arguments for CPU binding (default). --membind Use following arguments for memory binding. If --mempolicy is not also given, the default policy is bind. --mempolicy <policy> Change the memory binding policy. The available policies are default, firsttouch, bind, interleave replicate and nexttouch. This option is only meaningful when an actual binding is also given with --membind. If --membind is given without --mempolicy, the default policy is bind. --get Report the current bindings. When combined with --membind, report the memory binding instead of CPU binding. --get-last-cpu-location Report the last processors where the process ran. Note that the result may already be outdated when reported since the operating system may move the process to other processors at any time according to the binding. This option cannot be combined with --mem- bind. --single Bind on a single CPU to prevent migration. --strict Require strict binding. --get Retrieve the current process binding --pid <pid> Operate on pid <pid> -p --physical take OS/physical indexes instead of logical indexes -l --logical take logical indexes instead of physical/OS indexes (default) --taskset Display CPU set strings in the format recognized by the taskset command-line program instead of hwloc-specific CPU set string format. This option has no impact on the format of input CPU set strings, both formats are always accepted. -v Verbose output. --version Report version and exit. DESCRIPTION
hwloc-bind execs an executable (with optional command line arguments) that is bound to the specified location (or list of locations). Upon successful execution, hwloc-bind simply sets bindings and then execs the executable over itself. NOTE: It is highly recommended that you read the hwloc(7) overview page before reading this man page. Most of the concepts described in hwloc(7) directly apply to the hwloc-bind utility. EXAMPLES
hwloc-bind's operation is best described through several examples. More details about how locations are specified on the hwloc-bind com- mand line are described in hwloc(7). To run the echo command on the first logical processor of the second socket: hwloc-bind socket:1.pu:0 -- echo hello which is exactly equivalent to hwloc-bind socket:1.pu:0 echo hello To bind the "echo" command to the first core of the second socket and the second core of the first socket: hwloc-bind socket:1.core:0 socket:0.core:1 echo hello Note that binding the "echo" command to multiple processors is probably meaningless (because "echo" is likely implemented as a single- threaded application); these examples just serve to show what hwloc-bind can do. To run on the first three sockets on the second and third nodes: hwloc-bind node:1-2.socket:0:3 echo hello which is also equivalent to: hwloc-bind node:1-2.socket:0-2 echo hello Note that if you attempt to bind to objects that do not exist, hwloc-bind will not warn unless -v was specified. To run on processor with physical index 2 in socket with physical index 1: hwloc-bind --physical socket:1.core:2 echo hello To run on odd cores within even sockets: hwloc-bind socket:even.core:odd echo hello To run on the first socket, except on its second and fifth cores: hwloc-bind socket:0 ~socket:0.core:1 ~socket:0.core:4 echo hello To run anywhere except on the first socket: hwloc-bind all ~socket:0 echo hello To run on a core near the network interface named eth0: hwloc-bind os=eth0 echo hello To run on a core near the PCI device whose bus ID is 0000:01:02.0: hwloc-bind pci=0000:01:02.0 echo hello To bind memory on second memory node and run on first node (when supported by the OS): hwloc-bind --cpubind node:1 --membind node:0 echo hello The --get option can report current bindings. This example shows nesting hwloc-bind invocations to set a binding and then report it: hwloc-bind node:1.socket:2 hwloc-bind --get On one of the hwloc developer's machines, this example reports "0x00004444,0x44000000". The mask reported on your machine may be differ- ent. Locations may also be specified as a hex bit mask (typically generated by hwloc-calc). For example: hwloc-bind 0x00004444,0x44000000 echo hello hwloc-bind `hwloc-calc node:1.socket:2` echo hello Memory binding may also be reported: hwloc-bind --membind node:1 --mempolicy interleave -- hwloc-bind --get --membind This returns a string describing the memory binding, such as "0x000000f0 (interleave)". Note that if the system does not contain any NUMA nodes, the reported string will indicate that the process is bound to the entire system memory (e.g., "0xf...f"). RETURN VALUE
Upon successful execution, hwloc-bind execs the command over itself. The return value is therefore whatever the return value of the com- mand is. hwloc-bind will return nonzero if any kind of error occurs, such as (but not limited to): failure to parse the command line, failure to retrieve process bindings, or lack of a command to execute. SEE ALSO
hwloc(7), lstopo(1), hwloc-calc(1), hwloc-distrib(1) 1.4.1 Feb 27, 2012 HWLOC-BIND(1)
All times are GMT -4. The time now is 01:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy