Described above, in the present embodiment, as for the writing pulse having a shorter run insufficient to sample, the optical detection signal based on the writing signal is ignored, the optical detection signal obtained by the writing signal i.e. the writing pulse having an effective longer run in the beam power control (servo) system is sampled.