10-24-2014
Good question.
Virtual cores aren't real cores but Linux treats them as such to simplify its scheduler, to the point they appear in /proc/cpuinfo. As such, they sometimes get tallied in ways that don't make perfect sense.
I don't have a hyperthreaded core to compare with, but I suspect that exploring the structure inside /sys/ would reveal the true, more complex, grouping.
8 More Discussions You Might Find Interesting
1. IP Networking
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
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
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
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
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
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
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
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
LEARN ABOUT CENTOS
cpupower-set
CPUPOWER-SET(1) cpupower Manual CPUPOWER-SET(1)
NAME
cpupower-set - Set processor power related kernel or hardware configurations
SYNOPSIS
cpupower set [ -b VAL ] [ -s VAL ] [ -m VAL ]
DESCRIPTION
cpupower set sets kernel configurations or directly accesses hardware registers affecting processor power saving policies.
Some options are platform wide, some affect single cores. By default values are applied on all cores. How to modify single core configura-
tions is described in the cpupower(1) manpage in the --cpu option section. Whether an option affects the whole system or can be applied to
individual cores is described in the Options sections.
Use cpupower info to read out current settings and whether they are supported on the system at all.
Options
--perf-bias, -b
Sets a register on supported Intel processore which allows software to convey its policy for the relative importance of performance
versus energy savings to the processor.
The range of valid numbers is 0-15, where 0 is maximum performance and 15 is maximum energy efficiency.
The processor uses this information in model-specific ways when it must select trade-offs between performance and energy efficiency.
This policy hint does not supersede Processor Performance states (P-states) or CPU Idle power states (C-states), but allows software to
have influence where it would otherwise be unable to express a preference.
For example, this setting may tell the hardware how aggressively or conservatively to control frequency in the "turbo range" above the
explicitly OS-controlled P-state frequency range. It may also tell the hardware how aggressively it should enter the OS requested C-
states.
This option can be applied to individual cores only via the --cpu option, cpupower(1).
Setting the performance bias value on one CPU can modify the setting on related CPUs as well (for example all CPUs on one socket),
because of hardware restrictions. Use cpupower -c all info -b to verify.
This options needs the msr kernel driver (CONFIG_X86_MSR) loaded.
--sched-mc, -m [ VAL ]
--sched-smt, -s [ VAL ]
--sched-mc utilizes cores in one processor package/socket first before processes are scheduled to other processor packages/sockets.
--sched-smt utilizes thread siblings of one processor core first before processes are scheduled to other cores.
The impact on power consumption and performance (positiv or negativ) heavily depends on processor support for deep sleep states, fre-
quency scaling and frequency boost modes and their dependencies between other thread siblings and processor cores.
Taken over from kernel documentation:
Adjust the kernel's multi-core scheduler support.
Possible values are:
0 - No power saving load balance (default value)
1 - Fill one thread/core/package first for long running threads
2 - Also bias task wakeups to semi-idle cpu package for power savings
SEE ALSO
cpupower-info(1), cpupower-monitor(1), powertop(1)
AUTHORS
--perf-bias parts written by Len Brown <len.brown@intel.com>
Thomas Renninger <trenn@suse.de>
22/02/2011 CPUPOWER-SET(1)