Linux command – powertop
除了 turbostat – http://benjr.tw/99181 外還有 cpupower – http://benjr.tw/99146 可以來檢視 CPU 狀態外,還可以透過 powertop . 測試環境為 CentOS 7 x86_64 (虛擬機) [root@localhost ~]# yum install powertop [root@localhost ~]#...
View ArticleFio 效能測試
沒用過 Fio 的請先參考使用介紹 http://benjr.tw/34632 測試環境為 CentOS 7 x86_64 (虛擬機) 效能測試需求如下: Hard drive – /dev/sdb iodepth – 4 block size – 4k , 32k RW – 100% Read , 100% write 直接使用 Fio Job file (configuration)...
View ArticlePCI-E NVMe 硬碟速度
什麼是 PCI-E , NVMe 傳統機械讀寫磁頭式的硬碟速度不快,大約 70-80MBs (7200rpm) 左右,使用 SATA 介面就已經足夠. SATA – (20% overhead – 每八個位元的資料串上用十位元來加以編碼) Generation 1 (1.5 Gbit/s ,20% overhead) = 1.2 Gbit/s = 150 MByte/s Generation 2...
View ArticleCPU Affinity taskset (cpuset)
設定 IO IRQ(Interrupt) 與 CPU 每個 I/O 會有各自的 IRQ (中斷) 透過設定我們可以將個別的 IRQ 指定給特定的 CPU 來處理 ,先檢查對應的 IRQ 檔案 /proc/interrupts (每個 IRQ 對應到每個 I/O 裝置) # cat /proc/interrupts |grep -i eth 16: 35502 13732...
View ArticleLinux – Intel Memory Latency Checker
在 NUMA (Non-uniform memory access) 架構下,如何知道記憶體的存取效能如何,Intel 提供了 Memory Latency Checker 可以做檢查.下載點 https://software.intel.com/en-us/articles/intelr-memory-latency-checker#inpage-nav-9 測試環境為 CentOS7...
View ArticleLinux command – Processor Counter Monitor (PCM)
在 NUMA 架構下要如何監控 QPI / UPI 介面的狀態呢! 測試環境為 CentOS7 什麼是 NUMA ? 多核心的處理器最早是透過對稱多處理 SMP (Symmetric multiprocessing) 的方式,所有的 CPU 核心對於記憶體的存取是共用的,但是當 CPU...
View ArticleLinux file – /proc/interrupts , iomem , ioports
測試環境為 CentOS7 x86_64 (虛擬機, CPUx2) /proc/interrupts IRQ (Interrupt request) 是當週邊裝置需要資料的傳輸時會產生一個中斷請求給 CPU ,並請 CPU 停止工作並幫忙處理處理週邊資料的傳輸,每個 I/O 會有各自的 IRQ (中斷) ,對應的 IRQ 可以參考檔案 /proc/interrupts...
View ArticleLinux command – nice & ionice
程序的執行可以透過手動調整來提高或是降低其程序使用 CPU 與 I/O 的資源. CPU 排程,請參考 – https://access.redhat.com/documentation/zh-tw/red_hat_enterprise_linux/6/html/performance_tuning_guide/s-cpu-scheduler I/O 使用 Completely Fair...
View ArticleLinux command – ipmitool user
關於 IPMI 的基礎概念請參考 http://benjr.tw/11240 預設的 IPMI 只會有一個 administrator 使用者. [root@local ~]# ipmitool -I lanplus -H 172.16.0.172 -U admin -P admin user User Commands: summary [<channel number>] list...
View ArticleTCP/IP 常見封包
測試環境 CentOS7 x86_64 利用 tcpdump 來擷取 TCP/IP 常見封包,關於 tcpdump 請參考 http://benjr.tw/96904 TCP 3 way handshack 所謂的 TCP 三方交握(TCP 3-way handshake) 就是 Server 與 Client 間透過 3 次的溝通,才會進行資料的傳輸 這步驟如下 Client 用戶端向...
View ArticleNetwork – cksum (checksum) incorrect
最近學習使用 tcpdump – http://benjr.tw/96904 卻看到一堆 cksum (checksum) incorrect 的封包,這是怎麼一回事? 測試環境為 CentOS x86_64 (虛擬機) 04:12:03.916512 IP (tos 0x12,ECT(0), ttl 64, id 55822, offset 0, flags [DF], proto TCP...
View ArticleBOOTP & DHCP
BOOTP & DHCP 的差別是?? BOOTP 是 DHCP 的前身,目前 BOOTP 多用於系統尚未進入作業系統前,需要透過網路環境來獲取資源,如無磁碟主機的開機. 通常 BOOTP 客戶端會要求一個 boot image (file) 用來開機. BOOTP 客戶端沒有像是 DHCP 有租約時間的限制,. DHCP Client (Port 68 , 使用廣播封包...
View ArticleLinux / Windows – NTttcp
通常在 Linux 環境下會使用 iperf – http://benjr.tw/462 來當作測試網路效能工具,在 Windows 環境下 iperf 也有提供相對應的版本. 不過在 Microsoft 網站提到在 Azure 下建議使用 NTttcp 當作網路頻寬測試工具....
View ArticleWindows command – robocopy
測試環境為 Windows2012 R2 x86_64 (虛擬機) ServerA IP : 192.168.95.176 ServerB IP : 192.168.95.175 原本計劃使用 DFS-Replication (分散式檔案系統 Distributed File System) 複寫功能將 ServerA 的資料同步到 ServerB,但需要先架設好 AD (Active...
View ArticleSwitch (Powerconnect 5324) – VLAN & Trunk
要設定 Dell 1G Switch (型號 Powerconnect 5324) VLAN ,並透過 Trunk Port 與其他既存的 Switch 相連線. VLAN 透過 VLan 的功能能將一個實體的 switch 將他切割成多個 logical broadcast domain (所有的廣播封包 broadcast package 只會在此 doamin 中傳送). Trunk...
View ArticleSwitch – Block DHCP Broadcast
兩台 Switch 皆有 DHCP Server ,串接在一起就打架了,有什麼辦法可以串再一起又不會影響彼此的 DHCP ,一開始有想過設定 Vlan + Trunk 來隔開,後來找到另外一種更方便的方式 Switch ACL (Access Control List). 測試環境為 Edge-Core ES4650 (Power by Accton) Layer 3 Switch x 2. 兩台...
View ArticleAPC PDU – AP89XX
PDU (Power Distribution Unit) 機櫃式電源分配器. 我參考了使用手冊 MLAN-9F8QVU_R7_EN.pdf,該文件有 172 頁,整理一下怎麼快速入門使用它. 首先須將序列埠與網路先連接上. RJ-12 Serial Port Port(10) – 預設為 9600 bps, 8 data bits, no parity, 1 stop bit, 以及 no...
View ArticleApache – .htaccess
測試環境 CentOS 7 64bits 第一次使用到 Apache 的 .htaccess 應該是在設定 WordPress 固定網址設定 – http://benjr.tw/10918 先來看一下 Apache 設定檔 /etc/httpd/conf/httpd.conf 裡面就已經針對部分檔案設定了權限,如 .htaccess 與 .htpasswd 是不能透過網頁讀取的....
View ArticleConsole Switch – Digi PortServer
什麼是 Console Switch ,有些設備(通常是沒有 VGA 輸出的裝置,如 switch , Storage …)提供 Console 介面用以提供初次設定或是使用指令介面.但如果是實驗室或是大型機房,不可能找到這麼多電腦有 console (tty 或是 USB serial port) ,這時候可以透過 Console Switch ....
View ArticleSwitch – Block DHCP Server
公司測試環境常常有人不小心把 DHCP Server 連接到主要的 Switch 上,造成其他同事測試上的問題. 可以把非 DHCP Server 的埠,可以透過 Switch ACL (Access Control List) 功能來把 DHCP Server 使用的協定阻擋 ( Deny , Block) 起來即可. 測試環境為 Edge-Core ES4650 (Power by...
View Article