摘要:
The present invention relates to the field of operating system technologies, and discloses a method and an apparatus for accessing physical resources, to restrict access to physical resources of other Light OSs by a light system kernel Light OS in a multi-kernel operating system and ensure security of accessing physical resources among the Light OSs. The method includes: receiving, by secure firmware, a physical address corresponding to a physical resource to be accessed by a first Light OS; determining, by the secure firmware, whether the physical address corresponding to the physical resource to be accessed by the first Light OS is out of bounds; and if the access of the first Light OS is within bounds, sending an access continuity signal to the first Light OS; or if the access of the first Light OS is out of bounds, sending an access error signal to the first Light OS.
摘要:
The present invention discloses a method and an apparatus for determining a physical address, which relate to the field of computer technologies, may use a set associative TLB that supports multiple page sizes to obtain the physical address, and reduce power consumption. According to the present disclosure, a page size is obtained according to the higher-order N bits of a linear address, where N is greater than 0 and less than a quantity of bits of the linear address; an index number of a translation lookaside buffer TLB is obtained according to the page size; a mask is obtained according to the page size and a supported minimum page size; a label of the TLB is obtained according to the mask; the higher-order MAC1 bits of a physical address corresponding to the linear address are obtained by searching the TLB-according to the index number and the label; and the physical address is obtained according to the mask, the supported minimum page, and the higher-order MAC1 bits of the physical address. It is appropriate to use the present disclosure when a physical address is determined by using a linear address.
摘要:
A data caching method, a cache, and a computer system are provided. In the method, when a miss of an access request occurs and a cache needs to determine a to-be-replaced cache line, not only a historical access frequency of the cache line but also a type of a memory corresponding to the cache line needs to be considered. Therefore, a cache line corresponding to a DRAM type may be preferably replaced, which reduces a caching amount in the cache for data stored in a DRAM. The cache can increase a caching amount for data stored in an NVM, and for an access request for the data stored in the NVM, corresponding data can be found in the cache whenever possible, thereby reducing cases of reading data from the NVM, reducing a delay in reading data from the NVM, and effectively improving access efficiency.
摘要:
The present invention discloses a server connection method and system, and relates to the field of communications technologies, so that servers of a same specification are used to implement an optimal network, thereby reducing complexity of routing implementation. The method includes: providing ten servers, where each server includes five nodes, and the five nodes of each server are connected head-to-tail in series in a same connection manner; and connecting five nodes of any server in five of the ten servers to five nodes of each of the remaining five servers in a one-to-one correspondence manner, so as to form an optimal network of a Hoffman-Singleton graph.
摘要:
Provided are a memory management method, apparatus, and system, which can easily implement sharing of a memory resource. The method includes: sending, by a requesting node, first indication information, where the first indication information is used for indicating a length of memory required by the requesting node; receiving, by the requesting node, second indication information, where the second indication information is used for indicating first remote memory provided to the requesting node by a target contributing node in at least one contributing node that can provide remote memory; determining, by the requesting node from available virtual addresses, a first virtual address corresponding to the first remote memory; and when first data whose pointer is within a range of the first virtual address needs to be read/written, sending, by the requesting node, a first data read/write instruction for the first data, where the first data read/write instruction includes third indication information, and the third indication information is used for indicating storage space, for storing the first data, in the first remote memory.
摘要:
Embodiments of the present invention provide a cross-page prefetching method, apparatus, and system, which can improve a prefetching hit ratio of a prefetching device, and further improve efficiency of memory access. The method includes: receiving an indication message, sent by a cache, that a physical address is missing, where the indication message carries a mapped-to first physical address and contiguity information of a first physical page to which the first physical address belongs; acquiring a prefetching address according to the first physical address and a step size that is stored in a prefetching device; and if a page number of a physical page to which the prefetching address belongs is different from a page number of the first physical page, and it is determined, according to the contiguity information of the first physical page, that the first physical page is contiguous, prefetching data at the prefetching address.