A carbon dioxide (CO2) Differential Absorption Lidar (DIAL) for accurate CO2 concentration measurement requires a frequency locking system to achieve high frequency locking precision and stability. We describe the frequency locking system utilizing Frequency Modulation (FM), Phase Sensitive Detection (PSD), and Proportional Integration Derivative (PID) feedback servo loop, and report the optimization of the sensitivity of the system for the feed back loop based on the characteristics of a variable path-length CO2 gas cell. The CO2 gas cell is characterized with HITRAN database (2004). The method can be applied for any other frequency locking systems referring to gas absorption line