Abstract:
A lock management method and system, and a method and an apparatus for configuring a lock management system is provided. A corresponding level of a lock management system is set for each service execution node according to the number of service execution nodes included in a distributed system, the number of system instances on all service execution nodes, the number of handling processes on all the service execution nodes, and a delay of access of each service execution node to a central control node of the distributed system. At least one lock manager is allocated to each service execution node separately according to the level, which is corresponding to each service execution node, of the lock management system. A lock level context is configured for each lock manager, where the lock level context is used to determine an adjacent lock manager of each lock manager.
Abstract:
A storage space management method and apparatus, where the method and apparatus are applied to a non-volatile memory (NVM). In a feature set that includes M image features of M idle blocks in storage space of the NVM, an idle block whose image feature is highly similar to an image feature of data to be written into the NVM is determined such that the data is written into the idle block. In this way, wear and energy consumption problems are considered during storage space allocation, and a write operation of an idle block in storage space of an NVM can consume less energy, thereby extending a life span of the NVM and reducing write operation energy consumption.
Abstract:
A transaction processing method, an apparatus, and a computer system are provided. According to the method, after receiving a transaction processing request, status information of the transaction is recorded in a non-volatile memory, where the transaction processing request carries transaction data of a transaction, where the status information of the transaction includes a transaction status, a transaction identifier, and an address, and where the transaction status is an uncommitted state. The transaction data is written to the non-volatile memory according to the address. Then, the transaction status of the transaction is modified to a committed state according to the transaction identifier. Further, after writing the transaction data to an external memory of the computer system from the non-volatile memory, the transaction status of the transaction is modified to a backup state according to the transaction identifier. A transaction data processing speed can be increased in the foregoing manner.
Abstract:
A storage space management method and apparatus, where the method and apparatus are applied to a non-volatile memory (NVM). In a feature set that includes M image features of M idle blocks in storage space of the NVM, an idle block whose image feature is highly similar to an image feature of data to be written into the NVM is determined such that the data is written into the idle block. In this way, wear and energy consumption problems are considered during storage space allocation, and a write operation of an idle block in storage space of an NVM can consume less energy, thereby extending a life span of the NVM and reducing write operation energy consumption.
Abstract:
The present invention provides a method and a system for configuring a storage device in a hybrid storage environment. The method includes: acquiring a plurality of attribute parameters of each storage device; performing calculation according to the attribute parameters to obtain a priority of each storage device; acquiring a storage priority of each data object; and performing matching according to the storage priority of each data object and the priority of each storage device, so as to store each data object into a storage device with a priority corresponding to the storage priority of the data object. Accordingly, configuration of a plurality of storage devices and a plurality of data objects in a hybrid storage environment can be implemented, which avoids manual involvement, thereby reducing security risks, improving performance of the system, and reducing energy consumption of the system.
Abstract:
A transaction processing method, an apparatus, and a computer system are provided. According to the method, after receiving a transaction processing request, status information of the transaction is recorded in a non-volatile memory, where the transaction processing request carries transaction data of a transaction, where the status information of the transaction includes a transaction status, a transaction identifier, and an address, and where the transaction status is an uncommitted state. The transaction data is written to the non-volatile memory according to the address. Then, the transaction status of the transaction is modified to a committed state according to the transaction identifier. Further, after writing the transaction data to an external memory of the computer system from the non-volatile memory, the transaction status of the transaction is modified to a backup state according to the transaction identifier. A transaction data processing speed can be increased in the foregoing manner.
Abstract:
A lock management method and system, and a method and an apparatus for configuring a lock management system is provided. A corresponding level of a lock management system is set for each service execution node according to the number of service execution nodes included in a distributed system, the number of system instances on all service execution nodes, the number of handling processes on all the service execution nodes, and a delay of access of each service execution node to a central control node of the distributed system. At least one lock manager is allocated to each service execution node separately according to the level, which is corresponding to each service execution node, of the lock management system. A lock level context is configured for each lock manager, where the lock level context is used to determine an adjacent lock manager of each lock manager.
Abstract:
The present invention provides a method and a system for configuring a storage device in a hybrid storage environment. The method includes: acquiring a plurality of attribute parameters of each storage device; performing calculation according to the attribute parameters to obtain a priority of each storage device; acquiring a storage priority of each data object; and performing matching according to the storage priority of each data object and the priority of each storage device, so as to store each data object into a storage device with a priority corresponding to the storage priority of the data object. Accordingly, configuration of a plurality of storage devices and a plurality of data objects in a hybrid storage environment can be implemented, which avoids manual involvement, thereby reducing security risks, improving performance of the system, and reducing energy consumption of the system.