The invention provides a multi-lever cache method based on historical upgrading and downgrading frequency. The multi-lever cache method based on the historical upgrading and downgrading frequency is based on historical hinting information of a data block, and the historical hinting information is one of the key points of a multi-lever cache
system. Through the hinting frequency, a hot data block can be identified effectively, the hot data block can be stored in the cache at a higher lever for a longer time, the data block
hit rate in the
system is increased, and the average
response time is reduced; according to the multi-lever cache method based on the historical upgrading and downgrading frequency, a traditional LRU stack is divided into two special queues, so that the hinting information has locality, mixing of the hot data block and a cool data block is avoided, and the use of
band width between the caches in all levers; the hot data block is identified effectively, the hot data block can be stored in the cache at the higher lever for a long time through an
algorithm, the downgrading and upgrading operation of the caches in all levers is reduced, and the
band width consumption between the caches is reduced further; the space consumption is small, and basis is provided for a better read-write property of the
system under different loads.