Cache hit ratio determination method, apparatus, device, and readable storage medium
The invention discloses a cache hit rate determination method. The method comprises the following steps: receiving a read request, determining a target storage engine corresponding to the read request, and updating the read request times of the target storage engine; if the read request hits the SSD...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a cache hit rate determination method. The method comprises the following steps: receiving a read request, determining a target storage engine corresponding to the read request, and updating the read request times of the target storage engine; if the read request hits the SSD cache of the target storage engine, updating the number of read hits of the target storage engine;periodically writing the number of read requests and the number of read hits into the statistical list; upon receiving a recent hit ratio calculation request from the target storage engine, the numberof read requests and the number of read hits recorded in the count list are read to calculate the recent hit ratio of the target storage engine. The short-term hit ratio of the target storage enginecan be calculated. The calculated near-term hit ratio is helpful to analyze the storage state of the near-term target storage engine in order to improve the storage system of the distributed storage system. The invention also d |
---|