STORAGE DEVICE INCLUDING NONVOLATILE SEMICONDUCTOR MEMORIES WITH DIFFERENT CHARACTERISTICS, METHOD FOR CONTROLLING STORAGE DEVICE, AND COMPUTER-READABLE NONVOLATILE STORAGE MEDIUM FOR STORING PROGRAM
According to one embodiment, a storage device includes a storage, first data in which a sequence number indicating a write-completion order is associated with each erase unit area included in areas of the storage, second data indicating a relationship between each write interval and each write destination, a selection module which obtains the erase unit area corresponding to a logical address of target data to be written, calculates a write interval of the target data from a difference between the sequence number at an occurrence time of writing and the sequence number corresponding to the erase unit area of the first data, and selects the write destination corresponding to the write interval of the target data, and a write module which writes the target data to the selected write destination, and changes the sequence number when writing is completed for one erase unit area.