自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

講解AIX系統(tǒng)并行多線程知識(shí)

系統(tǒng) 其他OS
我們?cè)谖恼轮校瑫?huì)講解下AIX系統(tǒng)并行多線程的查詢和設(shè)置的知識(shí)。并行多線程 (Simultaneous Multi-threading,簡(jiǎn)稱 SMT) 是一種基于超標(biāo)量 (superscalar) 體系結(jié)構(gòu)處理器的技術(shù)。

今天,我們來(lái)學(xué)習(xí)AIX系統(tǒng)的知識(shí)。前環(huán)境的可用 CPU 資源以后,可以對(duì)AIX系統(tǒng)監(jiān)控的對(duì)象和方法進(jìn)行規(guī)劃。多數(shù)情況下,操作系統(tǒng)提供的命令輸出提供邏輯處理器 (Logical CPU) 的信息。

在 IBM eServer pSeries 服務(wù)器和 BladeCenter JS 刀片服務(wù)器中,邏輯處理器通常通過(guò)并行多線程技術(shù)實(shí)現(xiàn)。下文是對(duì)該技術(shù)在 AIX系統(tǒng)中應(yīng)用的介紹。

AIX系統(tǒng)并行多線程的查詢和設(shè)置

并行多線程 (Simultaneous Multi-threading,簡(jiǎn)稱 SMT) 是一種基于超標(biāo)量 (superscalar) 體系結(jié)構(gòu)處理器的技術(shù),允許多個(gè)獨(dú)立的線程在一個(gè)時(shí)鐘周期內(nèi)對(duì)多個(gè)功能處理單元 (Functional Unit) 發(fā)出指令。

通常情況下,AIX系統(tǒng)線程和功能處理單元的綁定是完全動(dòng)態(tài)的。使用這項(xiàng)技術(shù)可以較明顯的提高處理器的的實(shí)際利用率,進(jìn)而表現(xiàn)出更強(qiáng)的運(yùn)算性能。在 AIX 操作系統(tǒng)上,我們可以通過(guò) smtctl 命令來(lái)查詢和設(shè)置并行多線程的運(yùn)行狀態(tài)。

清單 5. 運(yùn)行 smtctl 查詢處理器對(duì) SMT 技術(shù)的支持和當(dāng)前的設(shè)置
 

  1. $ smtctl   
  2. This system is SMT capable.   
  3. SMT is currently enabled.   
  4. SMT boot mode is not set.   
  5. SMT threads are bound to the same physical processor.   
  6. proc0 has 2 SMT threads.   
  7. Bind processor 0 is bound with proc0   
  8. Bind processor 1 is bound with proc0   
  9. proc2 has 2 SMT threads.   
  10. Bind processor 2 is bound with proc2   
  11. Bind processor 3 is bound with proc2   
  12. proc4 has 2 SMT threads.   
  13. Bind processor 4 is bound with proc4   
  14. Bind processor 5 is bound with proc4   
  15. proc6 has 2 SMT threads.   
  16. Bind processor 6 is bound with proc6   
  17. Bind processor 7 is bound with proc6  

命令的結(jié)果說(shuō)明了當(dāng)前AIX系統(tǒng)支持 SMT 技術(shù),而且當(dāng)前正在使用。后面的多行輸出中詳細(xì)說(shuō)明了邏輯處理器和虛擬處理器之間的對(duì)應(yīng)關(guān)系。系統(tǒng)中有四個(gè)可用的虛擬處理器 (Virtual CPU),因?yàn)殚_(kāi)啟了 SMT (Simultaneous MultiThreading) 功能,可以識(shí)別出八個(gè)邏輯上的虛擬處理器 (Logical CPU)。

在缺省情況下,AIX系統(tǒng)中的 SMT 應(yīng)被使用以增強(qiáng)性能。當(dāng)用戶需要調(diào)整系統(tǒng)的 SMT 設(shè)置時(shí),同樣可以使用 smtctl 命令。具體參數(shù)請(qǐng)查閱命令說(shuō)明。在負(fù)載分區(qū)情況下,SMT 設(shè)置不允許被直接修改。

用戶需要對(duì)負(fù)載分區(qū)的宿主機(jī)修改 SMT 配置,這會(huì)對(duì)AIX系統(tǒng)中的所有負(fù)載分區(qū)生效。而在微分區(qū)環(huán)境下,用戶可以自主調(diào)整并行多線程的配置。

【編輯推薦】

  1. 講解如何來(lái)使用AIX svmon
  2. 怎樣靈活運(yùn)用AIX vmstat
  3. AIX操作系統(tǒng)知識(shí)講解
  4. 使用Unix scp 在主機(jī)之間復(fù)制文件
  5. AIX內(nèi)存調(diào)整命令簡(jiǎn)介
責(zé)任編輯:小霞
相關(guān)推薦

2010-04-30 10:19:34

Aix系統(tǒng)

2010-04-27 16:52:52

AIX操作系統(tǒng)

2010-04-22 16:01:48

Aix操作系統(tǒng)串口

2010-04-23 17:09:25

Aix文件系統(tǒng)

2010-04-23 16:51:44

Aix ACL

2010-05-05 17:07:47

AIX操作系統(tǒng)

2010-04-27 17:40:09

AIX系統(tǒng)

2010-04-23 12:35:17

2010-04-21 14:29:52

Unix 線程

2010-04-22 15:53:46

Aix操作系統(tǒng)設(shè)備

2010-04-23 14:12:37

Aix操作系統(tǒng)

2010-03-15 19:37:00

Java多線程同步

2010-04-30 10:04:01

Aix操作系統(tǒng)

2010-04-23 12:18:31

Aix操作系統(tǒng)

2012-11-12 09:26:06

.NET多線程

2010-04-22 14:45:31

Aix操作系統(tǒng)

2010-05-04 16:33:39

Unix系統(tǒng)

2010-05-05 15:02:39

Unix系統(tǒng)

2010-04-27 11:32:41

2010-04-26 10:03:17

點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)