A cache adjustment method, device, equipment and computer readable storage medium

By collecting access feature data to adjust cache priority and capacity ratio, the problem of inefficient cache space usage in distributed storage systems is solved, dynamic adaptive control of the cache layer is realized, and hit rate and throughput performance are improved.

CN122285552APending Publication Date: 2026-06-26JINAN INSPUR DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
JINAN INSPUR DATA TECH CO LTD
Filing Date
2026-03-30
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

In distributed storage systems, the static configuration of multi-level cache layers and the single eviction algorithm lead to inefficient cache space usage, which cannot adapt to the uneven data access status of different nodes, affecting cache hit rate and read/write throughput performance.

Method used

By collecting access characteristic data from the client layer, object storage daemon layer, and device layer, cache priority, cache capacity ratio, and data residency time are adjusted according to access patterns to achieve multi-level cache collaborative control and dynamic adaptive strategies.

Benefits of technology

It improves cache hit rate and overall read/write throughput performance, reduces access latency, and has real-time mode drift detection and policy correction capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122285552A_ABST
    Figure CN122285552A_ABST
Patent Text Reader

Abstract

This invention discloses a cache adjustment method, apparatus, device, and computer-readable storage medium, comprising: collecting access characteristic data from the client layer, object storage daemon layer, and device layer respectively; determining the object access mode of the system based on the access characteristic data; and adjusting the cache priority of each access task, the cache capacity ratio between the client layer and the object storage daemon layer, and the data residence time in the cache layer according to the object access mode; wherein the cache layer includes the client layer and the object storage daemon layer. This invention improves cache hit rate and overall read / write throughput performance, and reduces access latency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of storage technology, and in particular to a cache adjustment method, apparatus, device, and computer-readable storage medium. Background Technology

[0002] Distributed storage typically employs a multi-level caching architecture to alleviate the access pressure on backend storage devices. However, in practice, these caching layers often use static configuration and uniform strategies, mostly employing a single eviction algorithm based on hit statistics or frequency characteristics for cache allocation. However, in a distributed environment, the data access status of different storage layers on different nodes is not consistent, resulting in complex loads and uneven data access. Therefore, using only a single eviction algorithm for cache allocation leads to inefficient use of cache space. Summary of the Invention

[0003] The purpose of this invention is to provide a cache adjustment method that improves cache hit rate and overall read / write throughput performance while reducing access latency; another purpose of this invention is to provide a cache adjustment device, apparatus, and computer-readable storage medium.

[0004] To solve the above-mentioned technical problems, the present invention provides the following technical solution: A cache tuning method includes: Access characteristic data were collected from the client layer, object storage daemon layer, and device layer, respectively. The system's object access mode is determined based on the access characteristic data. The cache priority of each access task, the cache capacity ratio between the client layer and the object storage daemon layer, and the data residence time in the cache layer are adjusted according to the object access mode; wherein, the cache layer includes the client layer and the object storage daemon layer.

[0005] In one specific embodiment of the present invention, access characteristic data of the client layer, object storage daemon layer, and device layer are collected respectively, and the object access mode of the system is determined based on each access characteristic data, including: The access frequency, number of requests, read / write ratio, request size, offset mode, and access time interval distribution of the client layer, the object storage daemon layer, and the device layer are collected respectively. The object access mode of the system is determined based on the distribution of access frequency, number of requests, read / write ratio, request size, offset mode, and access time interval.

[0006] In one specific embodiment of the present invention, the object access mode of the system is determined based on the distribution of access frequencies, request counts, read / write ratios, request sizes, offset patterns, and access time intervals, including: Based on the distribution of access frequency, number of requests, read / write ratio, request size, offset mode, and access time interval, the object access mode of the system is determined from read-intensive mode, write-intensive mode, random access mode, and sequential access mode; wherein, the offset mode includes unordered access offset and continuous access offset.

[0007] In one specific embodiment of the present invention, adjusting the cache priority of each access task according to the object access mode includes: Select access tasks that belong to the object access mode from among the access tasks, and set the cache priority of the selected access tasks to be higher than the cache priority of the unselected access tasks.

[0008] In one specific embodiment of the present invention, adjusting the cache capacity ratio between the client layer and the object storage daemon layer according to the object access mode includes: When the object access mode is write-intensive, write merging is performed, and the cache capacity ratio between the client layer and the object storage daemon layer is adjusted according to the write pressure of the object storage daemon layer.

[0009] In one specific embodiment of the present invention, adjusting the residence time of data in the cache layer according to the object access mode includes: When the object access mode is read-intensive, the residence time of hot data in the cache layer is increased, and pre-reading and multi-node caching of hot data are performed.

[0010] In one specific embodiment of the present invention, adjusting the residence time of data in the cache layer according to the object access mode includes: When the object access mode is a sequential access mode, the data to be accessed is pre-read to the object storage daemon layer, and the residence time of the pre-read data to be accessed in the object storage daemon layer is set to be less than a preset duration.

[0011] A cache adjustment device, comprising: The data acquisition module is used to collect access characteristic data from the client layer, object storage daemon layer, and device layer, respectively. The mode determination module is used to determine the object access mode of the system based on various access characteristic data. An adjustment module is used to adjust the cache priority of each access task, the cache capacity ratio between the client layer and the object storage daemon layer, and the data residence time in the cache layer according to the object access mode; wherein, the cache layer includes the client layer and the object storage daemon layer.

[0012] A cache adjustment device, comprising: Memory, used to store computer programs; A processor for implementing the cache adjustment method as described above when executing the computer program.

[0013] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the cache adjustment method described above.

[0014] The cache adjustment method provided by this invention includes: collecting access feature data from the client layer, the object storage daemon layer, and the device layer respectively; determining the object access mode of the system based on each access feature data; and adjusting the cache priority of each access task, the cache capacity ratio between the client layer and the object storage daemon layer, and the data residence time in the cache layer according to the object access mode; wherein the cache layer includes the client layer and the object storage daemon layer.

[0015] The beneficial effects of this invention lie in its ability to adjust the cache priority of each access task, the cache capacity ratio between the client layer and the object storage daemon layer, and the data residence time in the cache layer based on the object access mode. This enables access mode drift detection, dynamic cross-layer allocation of cache capacity ratios, and adaptive switching of cache strategies. The system can identify multiple access modes and adopt targeted strategies, achieving global cache coordination among the client layer, object storage daemon layer, and device layer. This improves cache hit rate and overall read / write throughput performance while reducing access latency. It also possesses strong dynamic adaptive capabilities, supporting real-time mode drift detection and strategy correction.

[0016] Accordingly, the present invention also provides a cache adjustment device, equipment, and computer-readable storage medium corresponding to the above-described cache adjustment method, which have the above-described technical effects, and will not be elaborated further here. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart illustrating the implementation of a cache adjustment method in an embodiment of the present invention. Figure 2 This is a flowchart illustrating another cache adjustment method in an embodiment of the present invention. Figure 3 This is a structural block diagram of a cache adjustment device according to an embodiment of the present invention; Figure 4 This is a structural block diagram of a cache adjustment device according to an embodiment of the present invention; Figure 5 This is a schematic diagram of the specific structure of a cache adjustment device provided in an embodiment of the present invention. Detailed Implementation

[0019] To enable those skilled in the art to better understand the present invention, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] See Figure 1 , Figure 1 This is a flowchart illustrating an implementation of a cache adjustment method according to an embodiment of the present invention. The method may include the following steps: S101: Collect access characteristic data from the client layer, object storage daemon layer, and device layer respectively.

[0021] Triggering conditions for cache adjustments can be preset. For example, the cache adjustment time interval can be preset, and adjustments will be performed when the preset time interval is reached. Cache adjustments can also be preset to occur when a new access task is received. When cache adjustments are required, access characteristic data is collected at the client layer, the Object Storage Daemon (OSD) layer, and the device layer. Access characteristic data can include access frequency, number of requests, read / write ratio, request size, offset pattern, and access time interval distribution.

[0022] S102: Determine the object access mode of the system based on the access characteristic data.

[0023] After collecting access characteristic data from the client layer, object storage daemon layer, and device layer, the system's object access mode is determined based on this data. Object access modes can include read-intensive mode, write-intensive mode, random access mode, and sequential access mode.

[0024] S103: Adjust the cache priority of each access task, the cache capacity ratio between the client layer and the object storage daemon layer, and the data residence time in the cache layer according to the object access mode.

[0025] The caching layer includes a client layer and an object storage daemon layer.

[0026] After determining the system's object access mode based on various access characteristic data, the cache priority of each access task, the cache capacity ratio between the client layer and the object storage daemon layer, and the data residence time in the cache layer are adjusted according to the object access mode. For example, when the object access mode is read-intensive, the cache priority for random access is set higher than that for sequential access. When the object access mode is sequential, the data residence time in the cache layer is set to a shorter duration.

[0027] As can be seen from the above technical solution, by introducing an object access mode classification mechanism and multi-level cache collaborative control, the system can adjust the cache priority of each access task, the cache capacity ratio between the client layer and the object storage daemon layer, and the data residence time in the cache layer according to the object access mode. This enables access mode drift detection, dynamic cross-layer allocation of cache capacity ratio, and adaptive switching of cache policies. The system can identify multiple access modes and adopt targeted strategies, achieving global cache coordination at the client layer, object storage daemon layer, and device layer. This improves cache hit rate and overall read / write throughput performance, and reduces access latency. It has strong dynamic adaptive capabilities and supports real-time mode drift detection and policy correction.

[0028] It should be noted that, based on the above embodiments, the present invention also provides corresponding improvements. In subsequent embodiments, steps identical or corresponding to those in the above embodiments can be referenced interchangeably, and their respective beneficial effects can also be referred to each other. These improvements will not be elaborated upon in the following improved embodiments.

[0029] See Figure 2 , Figure 2 This is a flowchart illustrating another cache adjustment method in an embodiment of the present invention. The method may include the following steps: S201: Collect access frequency, number of requests, read / write ratio, request size, offset mode, and access time interval distribution for the client layer, object storage daemon layer, and device layer respectively.

[0030] When cache adjustments are needed, the access frequency, number of requests, read / write ratio, request size, offset pattern, and access time interval distribution are collected at the client layer, object storage daemon layer, and device layer, respectively. Offset pattern can include unordered access offsets and continuous access offsets.

[0031] S202: Determine the object access mode of the system based on the distribution of access frequency, number of requests, read / write ratio, request size, offset mode, and access time interval.

[0032] After collecting access frequency, request count, read / write ratio, request size, offset mode, and access time interval distribution at the client layer, object storage daemon layer, and device layer, the system's object access mode is determined based on these parameters. By utilizing access characteristic data such as access frequency, request count, read / write ratio, request size, offset mode, and access time interval distribution, rapid and accurate access mode localization is achieved.

[0033] S203: Adjust the cache priority of each access task, the cache capacity ratio between the client layer and the object storage daemon layer, and the data residence time in the cache layer according to the object access mode.

[0034] The caching layer includes a client layer and an object storage daemon layer.

[0035] By classifying the access characteristics of data objects in real time and dynamically adjusting the cache allocation strategy in multi-level caches, the cache hit rate can be improved, write amplification can be reduced, and the overall input / output (I / O) performance of the system can be enhanced.

[0036] In one specific embodiment of the present invention, step S202 may include the following steps: Based on the distribution of access frequency, number of requests, read / write ratio, request size, offset mode, and access time interval, the object access mode of the system is determined from read-intensive mode, write-intensive mode, random access mode, and sequential access mode; among them, the offset mode includes unordered access offset and continuous access offset.

[0037] After collecting access frequency, request count, read / write ratio, request size, offset pattern, and access time interval distribution at the client layer, object storage daemon layer, and device layer, the system determines its object access mode from read-intensive, write-intensive, random access, and sequential access modes based on these parameters. Offset modes include unordered and continuous access offsets. By pre-setting read-intensive, write-intensive, random access, and sequential access modes, and after determining access characteristic data such as access frequency, request count, read / write ratio, request size, offset pattern, and access time interval distribution at each layer, the system searches for the corresponding access mode from these preset modes based on the access characteristic data. This improves access mode awareness performance, making it easier for the system to locate the correct object access mode from multiple access modes and implement targeted caching adjustment strategies.

[0038] It can be configured that when the read-write ratio is detected to be higher than the first preset ratio value (e.g., read-write ratio > 4:1), the accessed data content remains unchanged within a preset time period, and the write operation is a lightweight metadata update, the access mode is determined to be a read-intensive mode.

[0039] When the write-to-read ratio is detected to be higher than the second preset ratio (e.g., write-to-read ratio > 4:1), the write data block corresponding to the write request is smaller than the first preset value, and the data update time interval is smaller than the first preset time interval, the access mode is determined to be write-intensive mode. Write-intensive mode can tolerate a certain degree of latency consistency, but it is prone to write amplification and device wear.

[0040] When the offset mode is detected as disordered access offset, the proportion of requests whose data blocks corresponding to the access requests are smaller than the second preset value is higher than the third preset value, there is local hot data, and the access interval is irregular, the access mode is determined to be a random access mode.

[0041] When the access offset pattern is detected as continuous, the data block corresponding to the access request is larger than the third preset value, and the cache reuse rate is lower than the fourth preset ratio, the access mode is determined to be a sequential access mode. Sequential access mode has low cache reuse and low latency sensitivity. The third preset value is greater than the first preset value, and the third preset value is also greater than the second preset value.

[0042] By pre-setting the division conditions corresponding to each access mode, the access mode can be located by judging whether the access feature data meets the division conditions corresponding to the corresponding access mode, thus achieving fast and accurate location of the access mode.

[0043] In one specific embodiment of the present invention, adjusting the cache priority of each access task according to the object access mode may include the following steps: Select access tasks that belong to the object access mode from all access tasks, and set the cache priority of the selected access tasks to be higher than the cache priority of the unselected access tasks.

[0044] After determining the system's object access mode, access tasks belonging to the object access mode are selected from all access tasks in the system, and their cache priority is set higher than that of unselected access tasks. For example, when the object access mode is read-intensive, the cache priority for random access is set higher than that for sequential access. By setting a higher cache priority for access tasks belonging to the object access mode, adaptive switching of the caching strategy is achieved, improving the cache hit rate.

[0045] In one specific embodiment of the present invention, adjusting the cache capacity ratio between the client layer and the object storage daemon layer according to the object access mode may include the following steps: When the object access mode is write-intensive, write merging is performed, and the cache capacity ratio between the client layer and the object storage daemon layer is adjusted according to the write pressure of the object storage daemon layer.

[0046] After determining the system's object access mode, when the object access mode is write-intensive, write merging is performed, and the cache capacity ratio between the client layer and the object storage daemon layer is adjusted according to the write pressure of the object storage daemon layer. By merging writes and adjusting the cache capacity ratio between the client layer and the object storage daemon layer according to the write pressure of the object storage daemon layer, dynamically delaying flushing based on load and write amplification, and balancing write pressure in a tiered manner, the media lifetime is extended.

[0047] In one specific embodiment of the present invention, adjusting the residence time of data in the cache layer according to the object access mode includes: When the object access mode is read-intensive, increase the residence time of hot data in the cache layer, and perform pre-reading and multi-node caching of hot data.

[0048] When object access is read-intensive, increase the dwell time of hot data in the cache layer and implement read-ahead caching and multi-node caching of hot data. Cross-layer warming can also be enabled, reducing data read latency. By setting up multi-node caching of hot data, data reading segments can read data from the nearest corresponding node's cache layer. By increasing the dwell time of hot data in the cache layer, hot data is preferentially housed in the high-performance cache layer (client layer or object storage daemon layer), improving cache hit rate and data read efficiency.

[0049] In one specific embodiment of the present invention, adjusting the residence time of data in the cache layer according to the object access mode includes: When the object access mode is sequential access mode, the data to be accessed is pre-read to the object storage daemon layer, and the residence time of the pre-read data to be accessed in the object storage daemon layer is set to be less than the preset duration.

[0050] When the object access mode is sequential, the data to be accessed is prefetched to the object storage daemon layer, and the residence time of the prefetched data in the object storage daemon layer is set to be less than a preset duration. By prefetching the data to be accessed to the object storage daemon layer when the object access mode is determined to be sequential, data read latency is reduced. By setting the residence time of the prefetched data in the object storage daemon layer to be less than the preset duration, the long-term occupation of the object storage daemon layer by the prefetched data is avoided, further improving the cache hit rate.

[0051] It should be noted that the preset duration can be set and adjusted according to the actual situation. This embodiment of the invention does not limit this. For example, it can be set according to the actual data reading speed to ensure that all pre-read data can be accessed.

[0052] When the object access mode is random access, fine-grained block caching is used to dynamically identify hot spots (key-range hot zones), prefetching is disabled to prevent cache pollution, and a cold-hot partitioning strategy is used to improve the hit rate.

[0053] The system can also be configured to continuously monitor cache hit rate, I / O latency, and write amplification. If the performance of a certain access pattern degrades, the classification is re-evaluated. Mode drift detection is supported, and the strategy is dynamically adjusted when access patterns change, updating access patterns through sliding time window statistical features. By dynamically updating access patterns based on system status, the system exhibits strong dynamic adaptability, avoiding inefficient cache space usage caused by static configuration, and further improving cache hit rate.

[0054] Corresponding to the above method embodiments, the present invention also provides a cache adjustment device, and the cache adjustment device described below can be referred to in correspondence with the cache adjustment method described above.

[0055] See Figure 3 , Figure 3 This is a structural block diagram of a cache adjustment device according to an embodiment of the present invention. The device may include: Data acquisition module 31 is used to collect access characteristic data from the client layer, object storage daemon layer and device layer respectively; The mode determination module 32 is used to determine the object access mode of the system based on each access characteristic data. The adjustment module 33 is used to adjust the cache priority of each access task, the cache capacity ratio between the client layer and the object storage daemon layer, and the data residence time in the cache layer according to the object access mode; wherein, the cache layer includes the client layer and the object storage daemon layer.

[0056] As can be seen from the above technical solution, by introducing an object access mode classification mechanism and multi-level cache collaborative control, the system can adjust the cache priority of each access task, the cache capacity ratio between the client layer and the object storage daemon layer, and the data residence time in the cache layer according to the object access mode. This enables access mode drift detection, dynamic cross-layer allocation of cache capacity ratio, and adaptive switching of cache policies. The system can identify multiple access modes and adopt targeted strategies, achieving global cache coordination at the client layer, object storage daemon layer, and device layer. This improves cache hit rate and overall read / write throughput performance, and reduces access latency. It has strong dynamic adaptive capabilities and supports real-time mode drift detection and policy correction.

[0057] In one specific embodiment of the present invention, the data acquisition module 31 is specifically a module that collects the access frequency, request count, read / write ratio, request size, offset mode, and access time interval distribution of the client layer, object storage daemon layer, and device layer respectively. The mode determination module 32 is specifically a module that determines the object access mode of the system based on the access frequency, the number of requests, the read / write ratio, the request size, the offset mode, and the distribution of access time intervals.

[0058] In one specific embodiment of the present invention, the mode determination module 32 is specifically a module that determines the object access mode of the system from read-intensive mode, write-intensive mode, random access mode and sequential access mode based on each access frequency, each request count, each read-write ratio, each request size, each offset mode and each access time interval distribution; wherein, the offset mode includes unordered access offset and continuous access offset.

[0059] In one specific embodiment of the present invention, the adjustment module 33 is specifically a module that selects access tasks belonging to the object access mode from each access task and sets the cache priority of the selected access task to be higher than the cache priority of the unselected access tasks.

[0060] In one specific embodiment of the present invention, the adjustment module 33 is specifically a module that performs write merging when the object access mode is write-intensive mode, and adjusts the cache capacity ratio between the client layer and the object storage daemon layer according to the write pressure of the object storage daemon layer.

[0061] In one specific embodiment of the present invention, the adjustment module 33 is specifically a module that increases the residence time of hot data in the cache layer and performs pre-reading and multi-node caching of hot data when the object access mode is read-intensive mode.

[0062] In one specific embodiment of the present invention, the adjustment module 33 is specifically a module that, when the object access mode is a sequential access mode, pre-reads the data to be accessed to the object storage daemon layer and sets the residence time of the pre-read data to be accessed in the object storage daemon layer to be less than a preset duration.

[0063] For the method embodiments described above, see [link to relevant documentation]. Figure 4 , Figure 4 This is a schematic diagram of the cache adjustment device provided by the present invention, which may include: Memory 332 is used to store computer programs; The processor 322 is used to implement the cache adjustment method steps of the above method embodiments when executing a computer program.

[0064] For details, please refer to Figure 5 , Figure 5 This is a schematic diagram illustrating the specific structure of a cache adjustment device provided in this embodiment. The cache adjustment device can vary significantly depending on its configuration or performance. It may include a processor (central processing unit, CPU) 322 (e.g., one or more processors) and a memory 332. The memory 332 stores one or more computer programs 342 or data 344. The memory 332 can be temporary or persistent storage. The program stored in the memory 332 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the data processing device. Furthermore, the processor 322 may be configured to communicate with the memory 332 and execute the series of instruction operations stored in the memory 332 on the cache adjustment device 301.

[0065] The cache adjustment device 301 may also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input / output interfaces 358, and / or one or more operating systems 341.

[0066] The steps in the cache tuning method described above can be implemented by the structure of the cache tuning device.

[0067] Corresponding to the above method embodiments, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can perform the following steps: Access characteristic data are collected from the client layer, object storage daemon layer, and device layer respectively; the object access mode of the system is determined based on the access characteristic data; the cache priority of each access task, the cache capacity ratio between the client layer and the object storage daemon layer, and the data residence time in the cache layer are adjusted according to the object access mode; the cache layer includes the client layer and the object storage daemon layer.

[0068] The computer-readable storage medium may include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0069] For a description of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments; the present invention will not be described in detail here.

[0070] Corresponding to the above method embodiments, the present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the aforementioned cache adjustment method.

[0071] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatuses, devices, and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple; relevant parts can be referred to the method section.

[0072] This article uses specific examples to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the technical solutions and core ideas of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made to the present invention without departing from the principles of the present invention, and these improvements and modifications also fall within the protection scope of the present invention.

Claims

1. A cache adjustment method, characterized in that, include: Access characteristic data were collected from the client layer, object storage daemon layer, and device layer, respectively. The system's object access mode is determined based on the access characteristic data. The cache priority of each access task, the cache capacity ratio between the client layer and the object storage daemon layer, and the data residence time in the cache layer are adjusted according to the object access mode; wherein, the cache layer includes the client layer and the object storage daemon layer.

2. The cache adjustment method according to claim 1, characterized in that, Access characteristic data are collected from the client layer, object storage daemon layer, and device layer, respectively. Based on this access characteristic data, the system's object access mode is determined, including: The access frequency, number of requests, read / write ratio, request size, offset mode, and access time interval distribution of the client layer, the object storage daemon layer, and the device layer are collected respectively. The object access mode of the system is determined based on the distribution of access frequency, number of requests, read / write ratio, request size, offset mode, and access time interval.

3. The cache adjustment method according to claim 2, characterized in that, The system's object access pattern is determined based on the distribution of access frequency, request count, read / write ratio, request size, offset pattern, and access time interval, including: Based on the distribution of access frequency, number of requests, read / write ratio, request size, offset mode, and access time interval, the object access mode of the system is determined from read-intensive mode, write-intensive mode, random access mode, and sequential access mode; wherein, the offset mode includes unordered access offset and continuous access offset.

4. The cache adjustment method according to claim 3, characterized in that, Adjusting the cache priority of each access task according to the object access pattern includes: Select access tasks that belong to the object access mode from among the access tasks, and set the cache priority of the selected access tasks to be higher than the cache priority of the unselected access tasks.

5. The cache adjustment method according to claim 1, characterized in that, Adjusting the cache capacity ratio between the client layer and the object storage daemon layer according to the object access mode includes: When the object access mode is write-intensive, write merging is performed, and the cache capacity ratio between the client layer and the object storage daemon layer is adjusted according to the write pressure of the object storage daemon layer.

6. The cache adjustment method according to claim 1, characterized in that, Adjusting the data's residence time in the cache layer based on the object access pattern includes: When the object access mode is read-intensive, the residence time of hot data in the cache layer is increased, and pre-reading and multi-node caching of hot data are performed.

7. The cache adjustment method according to claim 1, characterized in that, Adjusting the data's residence time in the cache layer based on the object access pattern includes: When the object access mode is a sequential access mode, the data to be accessed is pre-read to the object storage daemon layer, and the residence time of the pre-read data to be accessed in the object storage daemon layer is set to be less than a preset duration.

8. A buffer adjustment device, characterized in that, include: The data acquisition module is used to collect access characteristic data from the client layer, object storage daemon layer, and device layer, respectively. The mode determination module is used to determine the object access mode of the system based on various access characteristic data. An adjustment module is used to adjust the cache priority of each access task, the cache capacity ratio between the client layer and the object storage daemon layer, and the data residence time in the cache layer according to the object access mode; wherein, the cache layer includes the client layer and the object storage daemon layer.

9. A cache adjustment device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the cache adjustment method as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the cache adjustment method as described in any one of claims 1 to 7.