1. A computer system comprising: at least one primary memory; at least one secondary memory; at least one processor; a memory manager located in an operating system of the computer system that: determines memory health information of at least one unit of the at least one secondary memory; determines at least one characteristic of data to be stored; and selects a location to store the data in the primary memory or in the secondary memory based on the memory health information and the at least one characteristic of the data.