A volatile semiconductor memory includes a self-test controller detecting a defect of a memory cell, and an address storage storing a defective address indicating an address of a defective memory cell, and a refresh adjust circuit setting a refresh cycle of a memory cell designated by the defective address to be shorter than a refresh cycle of a normal memory cell.