Disk space allocation method and device
A technology of disk space and allocation method, applied in the field of electronics, can solve problems such as reduced disk allocation performance, and achieve the effect of ensuring centralized allocation and release, high read and write efficiency, and good space continuity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0045] Such as figure 2 As shown, the embodiment of the present invention provides a disk space allocation method, the disk space is divided into at least two regional spaces, specifically including the following implementation steps:
[0046] Step 201, dividing the logical block address (LBA) of the LUN into a plurality of LBA segments according to a set length;
[0047] In this embodiment, when performing logical block address segmentation, the corresponding segmentation granularity can be set according to actual requirements. In extreme cases, each LUN is counted as one segment.
[0048] Step 202, determine the overwriting frequency corresponding to each LBA segment;
[0049] The overwrite frequency is used to measure the frequency of the overwrite operation of each LBA segment, so in a specific implementation, the overwrite frequency corresponding to the LBA segment is the set time period for each LBA segment The corresponding number of write requests.
[0050] Step 20...
Embodiment 2
[0066] Combined with specific examples and accompanying drawings ( Figure 4 and Figure 5 Shown) a kind of disk space allocation method that the embodiment of the present invention proposes, make further detailed explanation, specifically include:
[0067] Step 501, dividing the LBA of the LUN space address into multiple LBA segments according to a fixed length, and counting the overwriting frequency A of each LBA segment in real time;
[0068] For a write request for each LBA address (the granularity is generally 4K or 8K), it is necessary to apply to the allocator for a grain of the corresponding size. The Allocator will first apply for an extent (typically 2M or 4M) from the pool, and then split the grain from the extent for allocation.
[0069] In this embodiment, Allocator internally divides free space into cold (COLD) and hot (HOT) two regions (such as Figure 4 As shown, that is, the first area space and the second area space in Embodiment 1), when each extent is ad...
Embodiment 3
[0075] Such as Figure 6 As shown, the embodiment of the present invention also provides a disk space allocation device, the disk space is divided into at least two regional spaces, the device includes:
[0076] A segmentation module 601, configured to divide the logical block address LBA of the LUN into a plurality of LBA segments according to a set length;
[0077] A calculation module 602, configured to determine an overwrite frequency corresponding to each LBA segment;
[0078] Optionally, the calculation module 602 is specifically configured to determine the overwriting frequency corresponding to each LBA segment according to the number of write requests corresponding to each LBA segment within a set time period.
[0079] The determination module 603 is configured to determine the first LBA segment where the overwrite operation is located when receiving a request for an overwrite operation to apply for a variable-length small disk space grain, and obtain the first LBA se...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com