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:
This application discloses a transaction processing method and a device that may be used in the field of network technologies. The method includes: A transmitting device determines a first order flag for a generated first transaction based on service logic of an application, and obtains order auxiliary information of the first transaction. The order flag indicates a dependency relationship (for example, forward dependency and backward blocking) between different transactions. This application does not depend on an operation type of a transaction. A transaction order between transactions may be set, and the receiving device ensures an execution order of each transaction based on an order flag, provided that a transaction relationship is fully expressed. The transaction order is flexibly defined, to meet the requirements of different scenarios and improve processing performance.
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 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.