码迷,mamicode.com
首页 > 其他好文 > 详细

CPU

时间:2018-02-12 13:40:09      阅读:171      评论:0      收藏:0      [点我收藏+]

标签:data   sys   src   .com   inf   hardware   war   sock   one   

Before setting CPU affinities for device interrupts and application processes and threads it is important to get an accurate picture of CPU physical layout. On System x? this can be done be looking at the physical ID and core ID values of each processor entry in /proc/cpuinfo. CPU entries with the same physical ID are on the same CPU socket. CPU entries with the same physical ID and the same core ID are known as simultaneous multi threads (SMTs) also known as hardware threads on the same core.

Below is a diagrammatic representation of the CPU physical layout described from the information in /proc/cpuinfo for an IBM? HS22 blade. CPU 0 and 8 share a common 32kB instruction and data L1 cache and a 256kB L2 cache. CPU 0 and 1 share a common 8MB (16 way associative) L3 cache. CPU 0 and 4 share no common cache. In the system shown here the optimal (that is, for best latency and throughput) assignment of Low Latency Messaging and application threads to CPUs is (0,1,2,3) or (4,5,6,7) because they each have a dedicated L2 cache and a shared (on die) L3 cache.

This is just one example of microprocessor architecture, before tuning for your system you should understand the cache hierarchy as implemented by the microprocessor manufacturer for your particular system.

技术分享图片

 

CPU

标签:data   sys   src   .com   inf   hardware   war   sock   one   

原文地址:https://www.cnblogs.com/betajj-blog/p/8444101.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!