主权项 |
1. A method for facilitating data storage of a server based on information stored in a data card, wherein the server includes a processor and a memory file system, the method being performed by the processor, the method comprising:
detecting a data card connected with the server; obtaining a configuration file corresponding to a type of operating system of the server from a plurality of configuration files stored in the data card, wherein each configuration file corresponds to a type of operating system; allocating memory space from the memory file system as a cache, based upon first information included in the configuration file, wherein the first information indicates a size of the memory space; formatting the memory space into a partition whose type is compatible with the type of the operating system of the server; mounting a storage device based upon second information included in the configuration file, wherein the second information includes ID of the storage device; recording a first mapping relationship between an address of the partition and the storage device; moving hot spot data from the data card to the partition, the hot spot data being data of which an access frequency exceeds a set threshold; recording a second mapping relation between an address of the hot spot data in the data card and an address of the hot spot data in the partition; receiving a read request, which includes the address of the hot spot data in the data card; and obtaining the hot spot data from the address in the partition, based upon the address in the data card and the second mapping relation. |