跳到主要內容

AIX 7.1 參數



壹、 CPU 參數

一、SMT

說明:smt 此功能可加強CPU的使用效能,此功能可設定CPU在同一時間可同時處理的程序數量。

使用時間:為增加CPU的使用效率,且欲使程式執行時,可在同一時間執行多個程序,則可開啟此功能。AIX預設是有開啟此功能,預設值為4。

使用方法:

1.使用AIX 系統指令:smtctl -m off|on -w reboot|now開啟或關閉smt機制,系統預設smt機制為啟用,SMT=4 選擇關閉smt時smt=1

2.可透過AIX 系統指令:smtctl -t 1|2|4 -w now 修改smt個數。

系統影響:使用這項技術可以較明顯的提高處理器的的實際利用率,進而表現出更強的運算性能,但是主要還是以AP的特性為主。

現況:證交所使用預設值:SMT 4。


二、Resource set

說明:使用'resource set' 可將兩個不同的工作量分隔成兩個類別,並提供每一個類別不同的CPU 子集合,則可以確定即使這兩個工作量仍競爭實體記憶體及I/O 頻寬,它們也絕不會彼此競爭CPU 資源。

使用時間:欲將系統的AP所使用的CPU資源與其他AP隔離,確保AP一直擁有所設定的CPU使用權。使用方法:

1.使用系統指令:mkrset -c 'thread id' 'rsetname' 來定義一個CPU set

2.使用系統指令:execrset 'rsetname' -e '欲執行的AP'來分配CPU set 給AP使用

3.使用系統指令:lsrset -v -n 'rsetname' 查詢已分配的CPU set

系統影響:當分配CPU set 給某AP使用時,系統內的其他程序便無法使用該CPU set 裡的資源. 故欲使用resource set時,應先確定AP所使用的CPU資源。

現況:證交所並未使用,因CPU調用時較無彈性。

三、vpm_fold_policy

說明:是將CPU進行folding動作,此為當系統不忙時,將用不到的CPU對收起,當需要時才再將開啟。(default :1 )

使用方法:

1. 使用系統指令:schedo –p –o vpm_fold_plilcy=0,停用folding功能。

系統影響:系統預設是開啟fold功能,系統調用使用CPU時,所需時間會較長。

現況:FIXGW LPAR為關閉此功能,當時如開啟該功能時,對於需要高速的反應的程式有較大影響。

貳、 NET 參數

一、tcp_nagle_limit

說明:此參數會將TCP運作時將Nagle此演算法關閉。

因Tcp在運作的過程中是會自動啟動一個演算法(Nagle), 此演算法主要目的為在網路流量較小的網路環境中,於網路中欲進行資料傳送時會先累積到一定的數量後,或是等待了一定的時間(一般的Nagle算法都是等待200ms),2者其中一項達成後才會往目的端發送。Nagle雖然解決了小封包問題,但也導致了較高的不可預測的延遲,同時會因此降低了封包的傳輸數量。Default值:65535

使用時機:欲增加網路傳輸數量時,可將此選項開啟。

使用方法:於欲關閉此Nagle演算法的執行下列指令:no –p -o tcp_nagle_limit=1

系統影響:開啟此功能後,於該網卡上的網路流量會較大。

現況:FIXGW tcp_nagle_limit=1

二、tcp_nodelayack

說明:此參數會使系統提示TCP發送一個立即確認信息給發送端,讓發送端立即開始傳送資料給接收端。如未開啟則會以最大每200ms才傳送一次確任信息封包。預設此參數為關閉。

使用時間:欲增加網路效能時,可將此選項開啟。

使用方法執行下列指令:no –p -o tcp_nodelayack=1

系統影響:開啟此功能後,於該系統上的網路流量會較大,但不影響系統,因現形網卡速度都至少有100M的速度,該用法是為了節約封包量在網路量,這在較慢的網路上功效較大。

三、sack

說明:TCP通信時,如果發送序列中間某個封包丟失,TCP會通過重傳最後確認的封包開始的後續封包,這樣原先已經正確傳輸的封包也可能重複發送,急劇降低了TCP性能。為改善這種情況,發展出SACK(Selective Acknowledgment, 選擇性確認)技術,使TCP只重新發送丟失的封包,不用發送後續所有的包,而且提供相應機制使接收方能告訴發送方哪些資料丟失,哪些資料重發了,哪些資料已經提前收到等。

使用時間:一、該服務傳輸主機皆需開啟,此功能才會有作用。

二、如在進行傳輸時丟失的封包較多時,建議可開啟,通常於主機有跨Site時碰到機率較高。

使用方法執行下列指令:no –p -o sack=1

系統影響:開啟此功能後,對於系統上掉封包後重新傳輸會加快。

現況:證交所並無開啟該功能。

http://www.net130.com/CMS/Pub/softlevel/softlevel_networkengineer/2006_09_12_86547.htm

四、tcp_recvspace

說明:tcp_recvspce可調整參數也會被TCP 通訊協定用於設定TCP 視窗大小,TCP 用其來限制將送到接收者的資料之位元組數,是為了確保接收者有足夠的空間來做資料的緩衝。

https://www.ibm.com/support/knowledgecenter/ssw_aix_53/com.ibm.aix.prftungd/doc/prftungd/tcp_recvspace_tunable.htm?cp=ssw_aix_53

使用時間:如發現單一網段進行傳輸時,如發現有大量網路封包的重傳時,由此可試著將該網段的網卡該值的數值調小。

數值調整參考如下:

為了獲得最佳效能,下表根據配接卡類型和MTU 大小,顯示建議的可調整值的大小:



裝置
速度
MTU 大小
tcp_sendspace
tcp_recvspace
sb_max1
rfc1323
乙太網路
100 M 位元
1500
16384
16384
65536
0
乙太網路
Gigabit
1500
131072
65536
131072
0


使用方法執行下列指令:chdev en2 –a tcp_recvspace=16384

現況:二資傳三資的主備傳檔線路該網卡值有調小至16384(三資設定即可,VLAN 19),default為:262144。

五、sb_max

說明:sb_max為tcp 和udp socket可使用的最大的buffer的大小。

使用時間:系統記憶體充足,且為在進行網路傳輸時增加傳輸速度時,不會該值過小而造成限制,可將該值調大,系統default為:1048576

使用方法執行下列指令:no –p –o sb_max=8388608

現況:證交所皆調至8388608。

參、 Mem 參數

一、kernel_heap_psize

說明:Specifies the default page size to use for the kernel heap

Values:

Default: 0

Range: 0, 4096, 65536, 16777216

Type: Bosboot

Unit: bytes

Tuning:

This is an advisory setting. Support for 64K pagesis provided by POWER5+ and later machines and used when vmm_mpsize_support is also enabled. 16M pages, provided by POWER4 and later machines, should only be used for the kernel heap under high performance environments. A value of 0 indicates that the kernel will use the preferred default value of 64K, if that page size is supported, else 4K pages.

現況:kernel_heap_psize:4096

二、vmm_mpsize_support

說明:This tunable specifies the operating system's multiple page size support for the extra page sizes provided by POWER5+ and later machines.(psmd 服務的開關)

Values:

Default: -1

Range: -1 - 3

Type: Bosboot

Unit: numeric

Tuning:

This tunable has no effect on support for 4K and large (16M) page sizes and on machines that do not support multiple page sizes. A value of 0 specifies 4K and explicitly requested large (16M) page sizes are supported. A value of 1 specifies 4K, 64K and explicitly requested 16M and 16G page sizes are supported but no dynamic variable page size support. A value of 2 is similarto 1 with dynamic variable page size support up to 64K. A value of 3is similar to 2 with dynamic variable page size support up to 16M.A value of -1 indicates the operating system will choose an optimal page size policy based on hardware and software configuration.

現況:vmm_mpsize_support:0

三、kernel_psize

說明:Specifies the page size backing the kernel segment

Values:

Default: 0

Range: 0, 4096, 65536, 16777216

Type: Bosboot

Unit: bytes

Tuning:

This setting is only valid on Power4 and later. A value of0 indicates the kernel will determine the best page size.When the kernel segment is backed with 16M pages roughly 240MB additional pinned memory will be consumed, but performance is increased.

現況:無異動。(因vmm_mpsize_support:0,此時AIX只提供4k及16M記憶體,而上述紅字說明為何會現況kernel會使用到16M區塊的記憶體並總共使用256M的記憶體,但

留言

這個網誌中的熱門文章

How to boot with old kernel version in RHEL7 ?

Environment Red Hat Enterprise Linux 7 [ALL] Issue System installed with latest kernel version, but need to boot with old one. How to change the default boot entry for kernel in RHEL 7 ? Resolution By default, the key for the GRUB_DEFAULT directive in the /etc/default/grub file is the word saved. This instructs GRUB 2 to load the kernel specified by the saved_entry directive in the GRUB 2 environment file, located at /boot/grub2/grubenv. One can set another GRUB record to be the default, using the grub2-set-default command, which will update the GRUB 2 environment file. By default, the saved_entry value is set to the name of latest installed kernel of package type kernel. This is defined in /etc/sysconfig/kernel by the UPDATEDEFAULT and DEFAULTKERNEL directives. The file can be viewed by the root user as follows: $ cat /etc/sysconfig/kernel # UPDATEDEFAULT specifies if new-kernel-pkg should make # new kernels the default UPDATEDEFAULT=yes # DEFAULTKERNEL specifies the default kerne...

AIX clone update procedure

確認是否有mirror lsvg -l rootvg 解mirror Unmirrorvg rootvg hdisk1 將hdisk1退出rootvg Reducevg rootvg hdisk1 確認hdisk1已退出rootvg lspv 檢查開機磁碟 bootlist -m normal -o  rootvg clone alt_disk_copy -d hdisk1 檢查開機磁碟,此時開機磁碟將變到hdisk1 bootlist -m normal -o  將開機碟改回hdisk0 bootlist -m normal hdisk0 升級 install_all_updates -s /usr/sys/inst.images 重啟系統 cd /tmp/ & nohup shutdown -Fr &&  如升級運作正常,刪除舊的rootvg資料 alt_rootvg_op -X altinst_rootvg lspv 如升級運行不正常,使用clone的rootvg開啟 bootlist -m normal -o hdisk1 bootlist -m normal -o  重啟系統 cd /tmp/ &  nohup shutdown -Fr && 刪除異常rootvg資料 lspv alt_rootvg_op -X old_rootvg