gpcheckperf is a Greenplum support utility designed to help identify possible system-level issues with a Greenplum database cluster.
This article discusses how to run gpcheckperf for disk and network performance test.
The gpcheckperf utility starts a session on the specified hosts and can run the following performance tests:
Network performance (netperf) test
Here is the configuration for this example:
Master = mdw1-1 mdw1-2 mdw1-3 mdw1-4 Segment 1 = sdw1-1 sdw1-2 sdw1-3 sdw1-4 Segment 2 = sdw2-1 sdw2-2 sdw2-3 sdw2-4 Segment 3 = sdw3-1 sdw3-2 sdw3-3 sdw3-4
Create a hostfile for each subnet:
cat host_file_nic_1 mdw1-1 sdw1-1 sdw2-1 sdw3-1 cat host_file_nic_2 mdw1-2 sdw1-2 sdw2-2 sdw3-2 cat host_file_nic_3 mdw1-3 sdw1-3 sdw2-3 sdw3-3 cat host_file_nic_4 mdw1-4 sdw1-4 sdw2-4 sdw3-4
Execute the test issue using the below command:
gpcheckperf -f host_file_nic_1 -r N -d /tmp > host_file_nic_1.out gpcheckperf -f host_file_nic_2 -r N -d /tmp > host_file_nic_2.out gpcheckperf -f host_file_nic_3 -r N -d /tmp > host_file_nic_3.out gpcheckperf -f host_file_nic_4 -r N -d /tmp > host_file_nic_4.out
Run on specified nics:
gpcheckperf -h sdw1-2 -h sdw4-2 -r N -d /tmp >sdw1-2andsdw4-2.out gpcheckperf -h sdw1-3 -h sdw4-3 -r N -d /tmp > sdw1-3andsdw4-3.out
Disk I/O test and memory bandwidth test
Note- Do not include the master host in this test.
gpcheckperf -f host_file_nic_1 -r ds -D -d /data/gpdb_p1 -d /data/gpdb_p2 -d /data/gpdb_p3 -d /data/gpdb_p4 -d /data/gpdb_m1 -d /data/gpdb_m2 -d /data/gpdb_m3 -d /data/gpdb_m4
You only need to run this test once with a host file that includes all segment host members.
Pivotal Greenplum Database (GPDB) all versions