Method, electronic device, and computer program product for managing file system

US11663165B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11663165-B2
Application numberUS-202017077010-A
CountryUS
Kind codeB2
Filing dateOct 22, 2020
Priority dateSep 29, 2020
Publication dateMay 30, 2023
Grant dateMay 30, 2023

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A method, an electronic device, and a computer program product for managing a file system are provided. For example, the method comprises causing multiple data blocks to be written to a storage space of the file system, the size of each of the multiple data blocks being not lower than a threshold size, and creating at least one space fragment in the storage space, the size of each of the at least one space fragment not exceeding the threshold size. Therefore, this solution can quickly and efficiently age a file system.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for managing a file system comprising: causing multiple data blocks to be written to a storage space of the file system, a size of each of the multiple data blocks being greater than or equal to a threshold size; and causing creation of space fragments in the storage space, the size of each of the space fragments not exceeding the threshold size, the space fragments comprising discontinuous spaces in the storage space; wherein the space fragments are created based on: repeatedly compressing a plurality of given written data blocks to a target size not exceeding the threshold size so that data cannot be further written to the created plurality of space fragments thereby aging the file system for performing a test of the aged file system through a plurality of test cases, wherein each of the repeated compressing is performed at a different compression rate; wherein the created plurality of space fragments do not comprise compressed data blocks; and wherein repeatedly compressing given written data blocks comprises: compressing a first data block of the multiple data blocks at a first compression rate to obtain a first compressed data block; writing the first compressed data block to a first subspace in the storage space; removing the first compressed data block from the first subspace; compressing the first compressed data block at a second compression rate to obtain a second compressed data block, the first compression rate being less than the second compression rate; and writing the second compressed data block to the first subspace to create a first space fragment. 2. The method according to claim 1 , further comprising: writing a second data block of the multiple data blocks to a second subspace in the storage space; compressing a third data block of the multiple data blocks at a third compression rate to obtain a third compressed data block; and writing the third compressed data block to a third subspace in the storage space, the size of the second data block being greater than that of the third data block, and the second subspace and the third subspace being not adjacent. 3. The method according to claim 2 , further comprising: removing the second data block from the second subspace; compressing the third compressed data block at a fourth compression rate to obtain a fourth compressed data block, the fourth compression rate being less than the third compression rate; and writing the fourth compressed data block to the second subspace. 4. The method according to claim 3 , further comprising: causing the third compressed data block to be removed from the third subspace. 5. The method according to claim 1 , further comprising: determining the performance of the file system after the space fragments are created, the performance including at least one of: a response time of the file system; an average bandwidth for the file system to read/write data; the number of read and write operations performed by the file system per second; and a failure rate of the file system. 6. An electronic device for managing a file system comprising: at least one processing unit; and at least one memory which is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, wherein the instructions, when executed by the at least one processing unit, cause the electronic device to perform actions comprising: causing multiple data blocks to be written to a storage space of the file system, a size of each of the multiple data blocks being greater than or equal to a threshold size; and causing creation of space fragments in the storage space, the size of each of the space fragments not exceeding the threshold size, the space fragments comprising discontinuous spaces in the storage space; wherein the space fragments are created based on: repeatedly compressing a plurality of given written data blocks to a target size not exceeding the threshold size so that data cannot be further written to the created plurality of space fragments thereby aging the file system for performing a test of the aged file system through a plurality of test cases, wherein each of the repeated compressing is performed at a different compression rate; wherein the created plurality of space fragments do not comprise compressed data blocks; and wherein repeatedly compressing given written data blocks comprises: compressing a first data block of the multiple data blocks at a first compression rate to obtain a first compressed data block; writing the first compressed data block to a first subspace in the storage space; removing the first compressed data block from the first subspace; compressing the first compressed data block at a second compression rate to obtain a second compressed data block, the first compression rate being less than the second compression rate; and writing the second compressed data block to the first subspace to create a first space fragment. 7. The electronic device according to claim 6 , wherein the size of each of the multiple data blocks is a preset size. 8. The electronic device according to claim 6 , further comprising: writing a second data block of the multiple data blocks to a second subspace in the storage space; compressing a third data block of the multiple data blocks at a third compression rate to obtain a third compressed data block; and writing the third compressed data block to a third subspace in the storage space, the size of the second data block being greater than that of the third data block, and the second subspace and the third subspace being not adjacent. 9. The electronic device according to claim 8 , further comprising: removing the second data block from the second subspace; compressing the third compressed data block at a fourth compression rate to obtain a fourth compressed data block, the fourth compression rate being less than the third compression rate; and writing the fourth compressed data block to the second subspace. 10. The electronic device according to claim 9 , further comprising: causing the third compressed data block to be removed from the third subspace. 11. The electronic device according to claim 6 , further comprising: determining the performance of the file system after the space fragments are created, the performance including at least one of: a response time of the file system; an average bandwidth for the file system to read/write data; the number of read and write operations performed by the file system per second; and a failure rate of the file system. 12. A computer program product tangibly stored in a non-transitory computer-readable medium and including machine-executable instructions for managing a file system, wherein the machine-executable instructions, when executed, cause a machine to perform steps of: causing multiple data blocks to be written to a storage space of the file system, a size of each of the multiple data blocks being greater than or equal to a threshold size; and causing creation of space fragments in the storage space, the size of each of the space fragments not exceeding the threshold size, the space fragments comprising discontinuous spaces in the storage space; wherein the space fragments are created based on: repeatedly compressing a plurality of given written data blocks to a target size not exceeding the threshold size so that data cannot be further written to the created plurality of space fragments thereby aging the file system for performing a test of the aged file system through a plurality of test cases, wherein each of the repeated compressing is performed at a different com

Assignees

Inventors

Classifications

  • Improving or facilitating administration, e.g. storage management · CPC title

  • using compression, e.g. sparse files · CPC title

  • Management of blocks · CPC title

  • Single storage device · CPC title

  • based on file chunks · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11663165B2 cover?
A method, an electronic device, and a computer program product for managing a file system are provided. For example, the method comprises causing multiple data blocks to be written to a storage space of the file system, the size of each of the multiple data blocks being not lower than a threshold size, and creating at least one space fragment in the storage space, the size of each of the at lea…
Who is the assignee on this patent?
Emc Ip Holding Co Llc
What technology area does this patent fall under?
Primary CPC classification G06F16/1744. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue May 30 2023 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).