IP Library Granted Patent US 12,026,371
Granted Patent B2
US 12,026,371 · App. 17/907,796 · Granted Jul 2, 2024

Method, system, and device for writing compressed data to disk, and readable storage medium

Inventor: Guoqiang Qi (Jiangsu, CN)
Assignee: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
G06F3/0608G06F3/0659G06F3/0674
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,026,371
App. No.
17/907,796
Granted
Jul 2, 2024
Kind
B2
Abstract

A method, system, and device for writing compressed data to a disk, and a readable storage medium. The method includes: acquiring compressed data, and determining a length of the compressed data; storing the compressed data in a linked list, and adding the length of the compressed data to a linked list length, wherein the linked list length is a total length of all compressed data in the linked list; determining whether the linked list length exceeds a threshold value; and if YES, allocating an idle thread to merge all the compressed data in the linked list, and carrying out a write-to-disk operation on the merged compressed data.

Claims (37)

1. A method for writing compressed data to a disk, comprising:

acquiring compressed data and determining a length of the compressed data;

storing the compressed data in a linked list, and adding the length of the compressed data to a linked list length, wherein the linked list length is a total length of all compressed data in the linked list;

determining whether the linked list length exceeds a threshold value;

in response to the linked list length exceeding the threshold value, allocating an idle thread to merge all the compressed data in the linked list, and carrying out a write-to-disk operation on the compressed data after merging all the compressed data in the linked list:

deleting all the compressed data from the linked list, and setting the linked list length to zero; and

outputting prompting information that the write-to-disk operation for the compressed data is completed.

2. The method according to claim 1 , wherein in response to the linked list length not exceeding the threshold value, the method further comprises:

performing the step of acquiring the compressed data and determining the length of the compressed data.

3. The method according to claim 1 , wherein the compressed data is obtained by a compression card by compressing data.

4. The method according to claim 1 , wherein the compressed data is obtained by a compression program by compressing data.

5. The method according to claim 1 , wherein the length of the compressed data is a data length after compression.

6. A device for writing compressed data to a disk, comprising:

a memory, configured to store a computer program; and

a processor, configured to execute the computer program, and upon execution of the computer program, the processor is configured to:

acquire compressed data and determine a length of the compressed data;

store the compressed data in a linked list, and add the length of the compressed data to a linked list length, wherein the linked list length is a total length of all compressed data in the linked list;

determine whether the linked list length exceeds a threshold value;

in response to the linked list length exceeding the threshold value, allocate an idle thread to merge all the compressed data in the linked list, and carry out a write-to-disk operation on the compressed data after all the compressed data in the linked list is merged;

delete all the compressed data from the linked list, and set the linked list length to zero; and

output prompting information that the write-to-disk operation for the compressed data is completed.

7. The device for writing compressed data to a disk according to claim 6 , wherein the processor, upon execution of the computer program, is further configured to:

perform acquiring the compressed data and determine the length of the compressed data.

8. The device for writing compressed data to a disk according to claim 6 , wherein the compressed data is obtained by a compression card by compressing data.

9. The device for writing compressed data to a disk according to claim 6 , wherein the compressed data is obtained by a compression program by compressing data.

10. The device for writing compressed data to a disk according to claim 6 , wherein the length of the compressed data is a data length after compression.

11. A non-transitory computer-readable storage medium, storing a computer program executable by a processor, and upon execution by the processor, the computer program is configured to cause the processor to:

acquire compressed data and determine a length of the compressed data;

store the compressed data in a linked list, and add the length of the compressed data to a linked list length, wherein the linked list length is a total length of all compressed data in the linked list;

determine whether the linked list length exceeds a threshold value;

in response to the linked list length exceeding the threshold value, allocate an idle thread to merge all the compressed data in the linked list, and carry out a write-to-disk operation on the compressed data after all the compressed data in the linked list is merged;

delete all the compressed data from the linked list, and set the linked list length to zero; and

output prompting information that the write-to-disk operation for the compressed data is completed.

12. The non-transitory computer-readable storage medium according to claim 11 , wherein the computer program, upon execution by the processor, is further configured to cause the processor to:

perform acquiring the compressed data and determine the length of the compressed data.

13. The non-transitory computer-readable storage medium according to claim 11 , wherein the compressed data is obtained by a compression card by compressing data.

14. The non-transitory computer-readable storage medium according to claim 11 , wherein the compressed data is obtained by a compression program by compressing data.

Assignments (2)
LICENSE Recorded Jun 30, 2026
From: IEIT SYSTEMS CO., LTD
To: AIVRES SYSTEMS INC.
Reel/Frame 075857/0939 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 29, 2022
From: QI, GUOQIANG
To: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
Reel/Frame 060925/0610 →
Priority Claims (1)
CN 202010131190.6 · Feb 28, 2020 · national
Continuity (1)
Related Publication 20230221865A1 · Jul 13, 2023