Unix/Linux Go Back    


Hardware Device drivers, hardware compatibility issues, motherboards, disk drives, graphics cards and other hardware related topics.

Hyperthreaded virtual cores, different C-States?

Hardware


Closed    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 10-26-2014
Peasant's Unix or Linux Image
Peasant Peasant is offline Forum Advisor  
Registered User
 
Join Date: Mar 2011
Last Activity: 21 January 2017, 2:06 PM EST
Posts: 1,016
Thanks: 27
Thanked 283 Times in 253 Posts
In my case 'the fix' was to put whole-core constraint on most utilized ldoms (databases) and keep the VCPUs count inside core boundary.

For instance, t5-2 sparc has 256 available VCPU (threads), which translates into 32 cores or 2 sockets 16 core each. For best performance one should give VCPU resources multiples of 8.
Be sure to reboot the hypervisor after such major changes.

Regarding HPVM (now vpars and Integrity VM) i would recommend using VPAR since they are configured only is such manner(dedicated cores for virtual machines and hypervisor).

Integrity VM can suffer from such 'misconfiguration' as well since it (can) share cores.

Nice blog about it, a bit old but good.
https://blogs.oracle.com/jsavit/entr...ore_allocation
Sponsored Links
    #9  
Old Unix and Linux 10-30-2014
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 1 February 2016, 3:35 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,673
Thanks: 8
Thanked 587 Times in 560 Posts
Often cache is just reloaded from the lower, slower layers on the new core, and eventually snooped empty on the old core when the data is modified. This means that while a different core may be available at an instant, it is better to wait a bit for the old core, which may not be 100% busy in the longer term. Of course, some caches cache keyed on virtual addresses, not physical ones, and may be flushed when other processes use the core. For them, dispatching multiple threads of the same process in succession reduces cache flushing. So, while you have asked for concurrent threads, that might actually be made less true in the fine by the system.

Hyperthreading is only for same-process threads, as they share the same virtual space. It is a nice way to increase use of CPU resources, with some added delay when threads' needs collide. It is an interesting alternate direction to the trend in modern CPU design to do speculative operations that are 50% or more a waste of the resource, but speed the critical thread. I find it reminiscent of the old Honeywell-800, where the CPU ran instructions of up to 8 threads more or less in rotation. (If you loaded the accumulator, it did not 'hunt', so many programmers used the accumulator as a register to hog the CPU and speed their thread.) I used to fix this stuff, before it crawled inside a chip!
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Count no of netstat states Roozo Shell Programming and Scripting 6 07-31-2014 02:56 AM
Change hostID of Solaris 10 virtual/guest machine installed by Virtual Box 4.1.12 on Windows-XP host Matt_VB Solaris 4 04-29-2012 12:56 PM
Unix process states tinkerbeast UNIX for Advanced & Expert Users 2 02-22-2012 06:15 AM
Have to log out of a virtual terminal twice in order to exit virtual terminals Narnie UNIX for Dummies Questions & Answers 1 02-24-2010 02:48 AM
laymens terms for netstat states eloquent99 IP Networking 1 03-10-2003 11:02 AM



All times are GMT -4. The time now is 11:46 PM.