Closed sollhui closed 1 year ago
Backgroup: When a file is recycled, there will be space fragments. An algorithm is needed to manage the fragments.
How to solve it: Refer to the Buddy algorithm of Linux memory management for fragment management. All numbers can be expressed with the power of two.
Can you briefly describe why this allocation method is used?
Look at description.
@luanshaotong All work finish
Backgroup: When a file is recycled, there will be space fragments. An algorithm is needed to manage the fragments.
How to solve it: Refer to the Buddy algorithm of Linux memory management for fragment management. All numbers can be expressed with the power of two.