Performance Analysis and Tuning â Part 1 - Red Hat Summit
Performance Analysis and Tuning â Part 1 - Red Hat Summit Performance Analysis and Tuning â Part 1 - Red Hat Summit
cgroups[root@dhcp1001950 ~]# forkmany 20MB 100procs &[root@dhcp1001950 ~]# top d 5top 12:24:13 up 1:36, 4 users, load average: 22.70, 5.32, 1.79Tasks: 315 total, 93 running, 222 sleeping, 0 stopped, 0 zombieCpu0 : 0.0%us, 0.2%sy, 0.0%ni, 99.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%stCpu1 : 0.0%us, 0.2%sy, 0.0%ni, 99.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%stCpu2 :100.0%us, 0.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%stCpu3 : 89.6%us, 10.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.2%hi, 0.2%si, 0.0%stCpu4 : 0.4%us, 0.6%sy, 0.0%ni, 98.8%id, 0.0%wa, 0.0%hi, 0.2%si, 0.0%stCpu5 : 0.4%us, 0.0%sy, 0.0%ni, 99.2%id, 0.0%wa, 0.0%hi, 0.4%si, 0.0%stCpu6 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%stCpu7 : 0.0%us, 0.0%sy, 0.0%ni, 99.8%id, 0.0%wa, 0.0%hi, 0.2%si, 0.0%stMem: 16469476k total, 1993064k used, 14476412k free,33740k buffersSwap: 2031608k total, 185404k used, 1846204k free, 459644k cached
Verify correct bindings# echo 0 > cpuset.mems# echo 0-3 > cpuset.cpus# numastatnode0 node1numa_hit 1648772 438778numa_miss 23459 2134520local_node 1648648 423162other_node 23583 2150136# /common/lwoodman/code/memory 4faulting took 1.616062stouching took 0.364937s# numastatnode0 node1numa_hit 2700423 439550numa_miss 23459 2134520local_node 2700299 423934other_node 23583 2150136
- Page 16 and 17: 2MB standard Hugepages# echo 2000 >
- Page 18 and 19: Transparent Hugepagesecho never > /
- Page 20 and 21: 32-bitMemory Zones64-bitUp to 64 GB
- Page 22 and 23: Per Node/Zone split LRU Paging Dyna
- Page 24 and 25: Typical System Building BlockMemory
- Page 26 and 27: Four NUMA node system,fully-connect
- Page 28 and 29: Per NUMA-Node ResourcesMemory zones
- Page 30 and 31: zone_reclaim_mode●●●●Contro
- Page 32 and 33: Visualize CPUs via lstopo(from hwlo
- Page 34 and 35: Sample remote access latencies4 soc
- Page 36 and 37: So, what's the NUMA problem?●●
- Page 38 and 39: numastat: compatibility mode# numas
- Page 40 and 41: numastat: per-node meminfo# numasta
- Page 42 and 43: numastat shows aligned guests# numa
- Page 44 and 45: How to manage NUMA manually●●
- Page 46 and 47: numad can help improve NUMA perform
- Page 48 and 49: numad aligns process memory and CPU
- Page 50 and 51: numad usage●●●●numad is int
- Page 52 and 53: To change utilization target● -u
- Page 54 and 55: To get pre-placement advice● -w :
- Page 56 and 57: numad “-w” shell script(the imp
- Page 58 and 59: numad “-w” shell script (advise
- Page 60 and 61: Multiguest Oracle OLTP WorkloadOrac
- Page 62 and 63: Summary / Questions●Red Hat Enter
- Page 64 and 65: Cgroup default mount points# cat /e
- Page 68 and 69: incorrect bindings!# echo 1 > cpuse
Verify correct bindings# echo 0 > cpuset.mems# echo 0-3 > cpuset.cpus# numastatnode0 node1numa_hit 1648772 438778numa_miss 23459 2134520local_node 1648648 423162other_node 23583 2150136# /common/lwoodman/code/memory 4faulting took 1.616062stouching took 0.364937s# numastatnode0 node1numa_hit 2700423 439550numa_miss 23459 2134520local_node 2700299 423934other_node 23583 2150136