Resource caching method and device of distributed network and storage medium

By dividing the SSD into multiple memory blocks sorted by the spatial address size, and determining the storage space backward from the end position of the last storage when storing the resources, the problem of random writes of SSDs in the prior art is solved, and sequential writes of SSDs are realized, and the service life is improved.

CN119690321APending Publication Date: 2025-03-25BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD +1
0 Cites 0 Cited by

Patent Information

Application Number
CN202311236137.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-22
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

In the prior art, the service life of the SSD is reduced due to random writes to solid state drivers (SSDs).

Method used

By dividing the SSD into multiple memory blocks and sorting them according to the spatial address size, when storing the resource, the target storage space is determined backwards for storing the target resource, thereby realizing sequential writing.

Benefits of technology

It improves the service life of the SSD and avoids the damage to the SSD by random writes.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention relates to a resource caching method and device of a distributed network and a storage medium. The method comprises the following steps: under the condition that a resource caching request is received, determining a target resource requested to be cached by the resource caching request; a target storage space is determined backwards from the current storage position of the multiple storage blocks according to the sequence of the multiple storage blocks of the solid-state drive, the solid-state drive is divided into the multiple storage blocks according to the preset size, the multiple storage blocks are sorted according to the space address size, the current storage position is the end position of resources stored last time, and the target storage space is stored at the end position of the resources stored last time. The size of the target storage space is the same as the resource size of the target resource; caching the target resource to the target storage space; and determining the end position of the target storage space as a new current storage position. According to the method and the device, the technical problem that the service life of the SSD is shortened due to random writing of the SSD is solved.
Need to check novelty before this filing date? Find Prior Art