Resource management method and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorJunxiong GUAN
Life of this patent
Estimating the term…
Abstract
A resource management method of a first device, which includes: receiving a request message sent by a second device, where the request message is used to indicate the first device to allocate a memory to the second device, the request message carries a size of the memory. allocating a memory space from a memory of the first device based on the size of the memory carried in the request message; generating a virtual disk based on the memory space; and providing the virtual disk for the second device as a memory of the second device.
Claims14
A resource management method, comprising:
- receiving, by a first device, a request message sent by a second device, wherein the request message is used to indicate the first device to allocate a memory to the second device, the request message carries a size of the memory, and the first device and the second device communicate with each other based on a network protocol;
- allocating, by the first device, a memory space from a memory of the first device based on the size of the memory carried in the request message;
- generating, by the first device, a virtual disk based on the memory space;
- and
- providing, by the first device, the virtual disk to the second device as a memory of the second device.
A resource management method, comprising:
- sending, by a second device, a request message to a first device, wherein the request message is used to indicate the first device to allocate a memory to the second device, the request message carries a size of the memory, and the first device and the second device communicate with each other based on a network protocol;
- receiving, by the second device, a virtual disk reported by the first device, wherein the virtual disk is generated based on a memory space of the memory in the first device;
- and
- mapping, by the second device, the virtual disk to a virtual memory of the second device.
A first device for resource management, comprising:
- a memory storing instructions;
- and
- a processor coupled to the memory to execute the instructions to:
- receive a request message sent by a second device, wherein the request message is used to indicate the first device to allocate a memory to the second device, the request message carries a size of the memory, and the first device and the second device communicate with each other based on a network protocol;
- allocate a memory space from the memory of the first device based on the size of the memory carried in the request message;
- generate a virtual disk based on the memory space;
- and
- provide the virtual disk to the second device as a memory of the second device.
Dependencies are inferred from the claim text.