The RF system for the RF system for the SNS superconducting linac consists of a superconducting cavity, a klystron, and a low-level RF (LLRF) control system. For a proton linac like SNS, the field in each individual cavity needs to be controlled to meet an overall system requirement. The purpose of the LLRF control system is to maintain the RF cavity field to a desired magnitude and phase by controlling the klystron driver signal. The Lorentz force detuning causes the shift of the resonant frequency during the normal operation in the order of a few hundreds hertz. In order to compensate the Lorentz force detuning effects, the cavity is pretuned into the middle of the expected frequency shift caused by the Lorentz force detuning. Meanwhile to reduce the overshoot in the transient response, an error feedforward algorithm is proposed to get away a repetitive noised caused by the pulsed operation.