Performing Automatic FDO
This section describes how to perform automatic FDO. In this process, FDO sampling, analysis, and optimization are automatically completed to improve system performance.
- Run the following command to go to the A-FOT directory and perform automatic FDO:
1cd A-FOT && ./a-fot
If success is displayed, the compilation is successful.

In the command output, /tmp/20221126-084849/opt.log is the log file of automatic FDO, which can be used to check the feature enabling progress and locate faults.
- Search for and display all section information that contains the bolt string.
1readelf -a /usr/local/mysql-gcc/bin/mysqld | grep bolt
If the following information is displayed, the automatic FDO feature is enabled:

- Optional: Perform TPC-C tests to obtain performance data before and after the GCC CFGO feature is used. For details about the tests, see BenchMarkSQL Test Guide.The GCC CFGO feature improves the comprehensive TPC-C performance by 10%. Figure 1 shows the performance before and after the optimization.
Parent topic: Automatic FDO
