Abstract:
A remote resource access method and a switching device are provided. According to the remote resource access method, when a computer system access the remote physical resource device, after obtaining a first access message, including a virtual address of a virtual resource device, from a computing node in the computer system, the switching device converts the first access message into a second access message based on a physical address of a physical resource device corresponding to the virtual address of the virtual resource device. Then, the switching device sends the second access message to the remote physical resource device corresponding to the physical address using a network, thereby implementing the data transmission between the local computer system and the remote physical resource device.
Abstract:
A resource processing method, an operating system, and a device are provided. The method is applied to a multi-core operating system, where the multi-core operating system includes a management operating system and multiple load operating systems that run on a host machine and includes a physical resource pool. According to the method, after selecting, in processor cores allocated to a first load operating system, a startup processor core that starts up the first load operating system, the management operating system instructs the startup processor core to read a mapping relationship that is from a virtual memory address to a physical memory address and that is required for executing a startup mirror of the first load operating system. Then, the management operating system instructs the startup processor core to execute the startup mirror pre-constructed for the first load operating system to start up the first load operating system.
Abstract:
A method and an apparatus for accessing a hardware resource are provided. The method includes configuring permission for one or more privileged instructions that are used for hardware access such that when the privileged instructions are used by a user mode application program, the application program can access a hardware resource without trapping into a kernel, and executing the privileged instructions that are encapsulated in the privileged application programming interface (API) that is called at the code level by the application program , and a privileged instruction for direct access to a hardware resource is set and encapsulated into an API, which is deployed in user space in order to reduce system overheads for accessing the hardware resource and improve processing efficiency.
Abstract:
A global memory sharing method includes counting, by the sub-operating system, a page replacement rate in a task scheduling period of a predetermined quantity of times, and a memory residence time ratio in a page replacement period; calculating, by the sub-operating system, a memory pressure index according to the page replacement rate and the memory residence time ratio; and if the memory pressure index is greater than a memory pressure threshold, sending, by the sub-operating system, an application to a global memory management service module. According to the forgoing method, in an architecture of multiple operating systems, each sub-operating system can complete much adaptive work, which reduces complexity of the global memory management service module and improves system performance. Meanwhile, a utilization rate of global memory may be improved, and the architecture of the multiple operating systems may have better extensibility.
Abstract:
A global memory sharing method includes counting, by the sub-operating system, a page replacement rate in a task scheduling period of a predetermined quantity of times, and a memory residence time ratio in a page replacement period; calculating, by the sub-operating system, a memory pressure index according to the page replacement rate and the memory residence time ratio; and if the memory pressure index is greater than a memory pressure threshold, sending, by the sub-operating system, an application to a global memory management service module. According to the forgoing method, in an architecture of multiple operating systems, each sub-operating system can complete much adaptive work, which reduces complexity of the global memory management service module and improves system performance. Meanwhile, a utilization rate of global memory may be improved, and the architecture of the multiple operating systems may have better extensibility.
Abstract:
Embodiments of the present application disclose a computer instruction processing method, a coprocessor, and a system. The computer instruction processing method includes: receiving, by a coprocessor, a first instruction set migrated by a central processing unit CPU; acquiring, according to the first instruction set that is applicable to the CPU for execution, a second instruction set for execution in the coprocessor; and executing binary codes in the second instruction set. In this way, the coprocessor that executes the second instruction set substitutes for the CPU that executes the first instruction set, CPU load is reduced, and usage of the coprocessor is improved.
Abstract:
A method and an apparatus for accessing a hardware resource are provided. The method includes configuring permission for one or more privileged instructions that are used for hardware access such that when the privileged instructions are used by a user mode application program, the application program can access a hardware resource without trapping into a kernel, and executing the privileged instructions that are encapsulated in the privileged application programming interface (API) that is called at the code level by the application program , and a privileged instruction for direct access to a hardware resource is set and encapsulated into an API, which is deployed in user space in order to reduce system overheads for accessing the hardware resource and improve processing efficiency.
Abstract:
A method and an apparatus for implementing device sharing, which are applied to a local system in a heterogeneous system that includes the local system and a peer system, where the peer system have a peripheral device. The method executed by the local system includes: acquiring identifier information of a peripheral device of the peer system; generating according to the acquired identifier information and according to a message format that can be locally identified, an operation request against the peripheral device managed by the peer system; and parsing out from the operation request, a request message including a parameter necessary to generate the operation request, and notifying the peer system of the request message. According to the method, the local system can access a peripheral device of the peer system, thereby implementing peripheral device sharing in the heterogeneous system.
Abstract:
Embodiments of the present application disclose a computer instruction processing method, a coprocessor, and a system. The computer instruction processing method includes: receiving, by a coprocessor, a first instruction set migrated by a central processing unit CPU; acquiring, according to the first instruction set that is applicable to the CPU for execution, a second instruction set for execution in the coprocessor; and executing binary codes in the second instruction set. In this way, the coprocessor that executes the second instruction set substitutes for the CPU that executes the first instruction set, CPU load is reduced, and usage of the coprocessor is improved.
Abstract:
A remote resource access method and a switching device are provided. According to the remote resource access method, when a computer system access the remote physical resource device, after obtaining a first access message, including a virtual address of a virtual resource device, from a computing node in the computer system, the switching device converts the first access message into a second access message based on a physical address of a physical resource device corresponding to the virtual address of the virtual resource device. Then, the switching device sends the second access message to the remote physical resource device corresponding to the physical address using a network, thereby implementing the data transmission between the local computer system and the remote physical resource device.