Abstract:
A method for indexing dirty data in a storage system page includes: obtaining a point quantity of storage points in the storage page and dirty data distribution information; creating a bitmap based on the point quantity and dirty data distribution information; creating an extended segment set based on the dirty data distribution information, and obtaining the number of current extended segments in the extended segment set; obtaining, according to the point quantity, a first storage cost for indexing dirty data using the bitmap in the target storage page; obtaining, according to the number of current extended segments and the segment capacity, a second storage cost for indexing dirty data using the extended segments in the target storage page; and determine, according to the first storage cost and the second storage cost, to index the dirty data in the target storage page by means of the bitmap or the extended segments.
Abstract:
A method for processing snapshots and a distributed block storage system, the method including: acquiring the number of read operations and the number of read/write operations for a data block in a distributed block storage system; on the basis of the number of read operations and the number of read/write operations, determining a target snapshot manner, wherein the target snapshot manner includes copying while writing or re-orienting while writing; on the basis of the target snapshot manner, performing a snapshot operation on the data block in the distributed block storage system.
Abstract:
Disclosed in the present disclosure is a data caching method and apparatus, the data caching method includes the following steps: receiving a data request message sent by a user terminal; if detecting that a cache apparatus does not include the target access data requested by the data request message, then sending the target access data in a storage apparatus to the user terminal; extracting parameter information of the target access data in the storage apparatus, and determining whether the parameter information matches a preset parameter condition; and, if the parameter information matches the preset parameter condition, then transmitting the target access data to the cache apparatus.
Abstract:
A method for calculating the number and moving direction of pedestrians is provided. in which feature points of a current frame image are extracted; the feature points of the current frame image are compared with those of a selected historical frame image, to obtain moving feature points of the current frame image; directional weighted counting is performed on the moving feature points of the current frame image to obtain the moving direction of the pedestrians; and edge points of pedestrian images are extracted from a foreground image of the current frame image, and performing joint weighted counting on the edge points of the pedestrian images and the moving feature points of the current frame image according to correction coefficients of locations of the respective points, to obtain the number of the pedestrians. A device for calculating the number and moving direction of pedestrians is also provided.
Abstract:
A method for calculating the number and moving direction of pedestrians is provided. in which feature points of a current frame image are extracted; the feature points of the current frame image are compared with those of a selected historical frame image, to obtain moving feature points of the current frame image; directional weighted counting is performed on the moving feature points of the current frame image to obtain the moving direction of the pedestrians; and edge points of pedestrian images are extracted from a foreground image of the current frame image, and performing joint weighted counting on the edge points of the pedestrian images and the moving feature points of the current frame image according to correction coefficients of locations of the respective points, to obtain the number of the pedestrians. A device for calculating the number and moving direction of pedestrians is also provided.