Cache management method and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsXianfu Zhang, Qiang Wang
Life of this patent
Estimating the term…
Loading patent…
AssigneeHuawei Technologies Co., Ltd.
InventorsXianfu Zhang, Qiang Wang
Estimating the term…
This application relates to a cache management method and apparatus, so as to improve cache efficiency and reduce waste of cache resources. The cache management method provided in this application includes: after receiving a to-be-processed command, determining a quantity of cache units needed by the to-be-processed command; if the quantity of cache units needed by the to-be-processed command is one, searching for, based on a cache unit pair first state table, a pair of cache units in which only one cache unit is idle, and allocating the idle cache unit in the pair of cache units to the to-be-processed command; and if the quantity of cache units needed by the to-be-processed command is two, searching for and allocating, based on a cache unit pair second state table in a clock cycle, a pair of cache units in which two cache units are both idle to the to-be-processed command.
A buffer management method, applied to a shared buffer management system, wherein the shared buffer management system has N buffer units with continuous addresses, the shared buffer management system maintains a buffer unit pair first state table and a buffer unit pair second state table, and the shared buffer management system divides the N continuous buffer units into pairs in order, wherein the buffer unit pair first state table is used to indicate whether only one buffer unit in each pair of buffer units is idle, and the buffer unit pair second state table is used to indicate whether two buffer units in each pair of buffer units are both idle, the method comprising:
A buffer management apparatus, wherein the apparatus is applied to a shared buffer management system and comprises:
A shared buffer management system, wherein the shared buffer management system comprises:
Dependencies are inferred from the claim text.