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 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:
Embodiments of the present invention provide a compatibility method and apparatus, which relate to the computer field, can support ABI compatibility of multiple operating systems and an existing ABI compatibility technology, and facilitate further extension of multiple ABI compatibility technologies. The compatibility method includes: if a first target program is a locally registered target program, creating a first process for the first target program; remapping the first target program to generate a remapping table, where the remapping table indicates a correspondence between the first target program and the remapped first target program; loading the remapped first target program into a local memory corresponding to the first process, so as to generate an image of the remapped first target program; reconstructing the image; and determining a redirection interface of the reconstructed image, so as to execute the first process.
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.