IP Library Granted Patent US 11,593,355
Granted Patent B2
US 11,593,355 · App. 16/998,318 · Granted Feb 28, 2023

Method, device and computer program product for processing metadata

Inventors: Ming Zhang (Beijing, CN); Shuo Lv (Beijing, CN)
Assignee: EMC IP Holding Company LLC
G06F16/2379G06F16/2358
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 11,593,355
App. No.
16/998,318
Granted
Feb 28, 2023
Kind
B2
Abstract

Techniques to process metadata involve: in response to receiving a modification transaction for metadata on a computing device, acquiring information related to a busyness degree of the computing device; and according to at least a determination that the busyness degree is greater than a threshold degree, modifying the metadata in a metadata storage apparatus of the computing device directly without generating a log related to the modification transaction in a log storage apparatus of the computing device. Accordingly, such techniques can achieve good processing performance irrespective of a busy state or non-busy state of a computing device. In particular, when the computing device is in a busy state, a newly triggered modification transaction can still be timely executed, thereby improving IOPS performance of the computing device in a busy state.

Claims (86)

1. A method of processing metadata, comprising:

in response to receiving a first modification transaction for metadata on a computing device, acquiring information related to a first busyness degree of the computing device;

performing a first determination operation that determines whether the first busyness degree is greater than a threshold degree; and

according to at least the first determination that the first busyness degree is greater than the threshold degree, modifying first metadata in a metadata storage apparatus of the computing device directly without generating a first log related to the first modification transaction in a log storage apparatus of the computing device;

wherein modifying the first metadata comprises:

acquiring a first modification record of the first metadata which indicates whether there is a further modification transaction for the first metadata having not been completed; and

according to a first determination that the first modification record indicates that there is no further modification transaction having not bee n completed, modifying the first metadata directly without generating the first log.

2. The method of claim 1 , further comprising, for a second modification transaction for second metadata:

according to a second determination that a second busyness degree is less than the threshold degree,

generating a second log related to the second modification transaction in the log storage apparatus; and

modifying the second metadata in the metadata storage apparatus.

3. The method of claim 1 , further comprising, for a second modification transaction for second metadata:

acquiring a second modification record of the second metadata which indicates whether there is a further modification transaction for the second metadata having not been completed;

according to a second determination that the second modification record indicates that there is a further modification transaction having not been completed,

generating a second log related to the second modification transaction in the log storage apparatus; and

modifying the second metadata in the metadata storage apparatus.

4. The method of claim 3 , further comprising:

determining an execution state of the first modification transaction; and

updating, based on the execution state, the first modification record of the first metadata.

5. The method of claim 1 , wherein acquiring the information related to the first busyness degree of the computing device comprises:

acquiring information indicating an occupancy state of storage resources of the log storage apparatus.

6. The method of claim 1 , further comprising:

in response to receiving a second modification transaction for metadata on the computing device, acquiring information related to a second busyness degree of the computing device;

performing a second determination operation that determines whether the second busyness degree is greater than the threshold degree; and

according to at least the second determination that the second busyness degree is not greater than the threshold degree, generating a log related to the second modification transaction in the log storage apparatus of the computing device and, after generating the log in the log storage apparatus, modifying second metadata in the metadata storage apparatus of the computing device.

7. The method of claim 6 wherein the first metadata in the metadata storage apparatus is modified by a host;

wherein the second metadata in the metadata storage apparatus is modified by a process that is different from the host; and

wherein the method further comprises:

after the first metadata is modified in the metadata storage apparatus, modifying, by the host, the first metadata in another metadata storage apparatus, and

after the second metadata is modified in the metadata storage apparatus, modifying, by a backend program, the second metadata in the other metadata storage apparatus.

8. An electronic device, comprising:

a processor; and

memory coupled to the processor and having instructions stored therein, the instructions, when executed by the processor, causing the device to perform acts comprising:

in response to receiving a first modification transaction for metadata on a computing device, acquiring information related to a first busyness degree of the computing device;

performing a first determination operation that determines whether the first busyness degree is greater than a threshold degree; and

according to at least the first determination that the first busyness degree is greater than the threshold degree, modifying first metadata in a metadata storage apparatus of the computing device directly without generating a first log related to the first modification transaction in a log storage apparatus of the computing device;

wherein modifying the first metadata comprises:

acquiring a first modification record of the first metadata which indicates whether there is a further modification transaction for the first metadata having not been completed; and

according to a first determination that the first modification record indicates that there is no further modification transaction having not been completed, modifying the first metadata directly without generating the first log.

9. The device of claim 8 , the acts further comprising, for a second modification transaction for second metadata:

according to a second determination that a second busyness degree is less than the threshold degree,

generating a second log related to the second modification transaction in the log storage apparatus; and

modifying second metadata in the metadata storage apparatus.

10. The device of claim 8 , the acts further comprising, for a second modification transaction for second metadata:

acquiring a second modification record of the second metadata which indicates whether there is a further modification transaction for the second metadata having not been completed;

according to a second determination that the second modification record indicates that there is a further modification transaction having not been completed,

generating a second log related to the second modification transaction in the log storage apparatus; and

modifying the second metadata in the metadata storage apparatus.

11. The device of claim 10 , the acts further comprising:

determining an execution state of the first modification transaction; and

updating, based on the execution state, the first modification record of the first metadata.

12. The device of claim 8 , wherein acquiring the information related to the first busyness degree of the computing device comprises:

acquiring information indicating an occupancy state of storage resources of the log storage apparatus.

13. The device of claim 8 , the acts further comprising:

in response to receiving a second modification transaction for metadata on the computing device, acquiring information related to a second busyness degree of the computing device;

performing a second determination operation that determines whether the second busyness degree is greater than the threshold degree; and

according to at least the second determination that the second busyness degree is not greater than the threshold degree, generating a log related to the second modification transaction in the log storage apparatus of the computing device and, after generating the log in the log storage apparatus, modifying second metadata in the metadata storage apparatus of the computing device.

14. The device of claim 13 wherein the first metadata in the metadata storage apparatus is modified by a host;

wherein the second metadata in the metadata storage apparatus is modified by a process that is different from the host; and

wherein the acts further comprise:

after the first metadata is modified in the metadata storage apparatus, modifying, by the host, the first metadata in another metadata storage apparatus, and

after the second metadata is modified in the metadata storage apparatus, modifying, by a backend program, the second metadata in the other metadata storage apparatus.

15. A computer program product tangibly stored on a non-transitory computer-readable medium and comprising computer-executable instructions, the computer-executable instructions when executed causing a device to:

in response to receiving a first modification transaction for metadata on a computing device, acquire information related to first busyness degree of the computing device; and

according to at least the first determination that the first busyness degree is greater than the threshold degree, modify first metadata in a metadata storage apparatus of the computing device directly without generating a first log related to the first modification transaction in a log storage apparatus of the computing device;

wherein the computer-executable instructions, when executed to cause the device to modify the first metadata, causes the device to:

acquire a first modification record of the first metadata which indicates whether there is a further modification transaction for the first metadata having not been completed; and

according to a first determination that the first modification record indicates that there is no further modification transaction having not been completed, modify the first metadata directly without generating the first log.

16. The computer program product of claim 15 , wherein the computer-executable instructions when executed further cause the device to, for a second modification transaction for second metadata:

according to a determination that a second busyness degree is less than the threshold degree,

generate a second log related to the second modification transaction in the log storage apparatus; and

modify the second metadata in the metadata storage apparatus.

17. The computer program product of claim 15 , wherein the computer-executable instructions when executed further cause the device to, for a second modification transaction for second metadata:

acquire a second modification record of the second metadata which indicates whether there is a further modification transaction for the second metadata having not been completed;

according to a second determination that the second modification record indicates that there is a further modification transaction having not been completed,

generate a second log related to the second modification transaction in the log storage apparatus; and

modify the second metadata in the metadata storage apparatus.

18. The computer program product of claim 17 , wherein the computer-executable instructions when executed further cause the device to:

determine an execution state of the first modification transaction; and

update, based on the execution state, the first modification record of the first metadata.

19. The computer program product of claim 15 , wherein the computer-executable instructions, when executed to cause the device to acquire the information related to the first busyness degree, causes the device to:

acquire information indicating an occupancy state of storage resources of the log storage apparatus.

20. The computer program product of claim 15 , wherein the computer-executable instructions when executed further cause the device to:

in response to receiving a second modification transaction for metadata on the computing device, acquire information related to a second busyness degree of the computing device;

perform a second determination operation that determines whether the second busyness degree is greater than the threshold degree; and

according to at least the second determination that the second busyness degree is not greater than the threshold degree, generate a log related to the second modification transaction in the log storage apparatus of the computing device and, after generating the log in the log storage apparatus, modify second metadata in the metadata storage apparatus of the computing device.

Assignments (9)
RELEASE OF SECURITY INTEREST IN PATENTS PREVIOUSLY RECORDED AT REEL/FRAME (054475/0523) Recorded Jun 10, 2022
From: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A., AS NOTES COLLATERAL AGENT
To: EMC IP HOLDING COMPANY LLC; DELL PRODUCTS L.P.
Reel/Frame 060332/0664 →
RELEASE OF SECURITY INTEREST IN PATENTS PREVIOUSLY RECORDED AT REEL/FRAME (054475/0434) Recorded Jun 10, 2022
From: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A., AS NOTES COLLATERAL AGENT
To: EMC IP HOLDING COMPANY LLC; DELL PRODUCTS L.P.
Reel/Frame 060332/0740 →
RELEASE OF SECURITY INTEREST IN PATENTS PREVIOUSLY RECORDED AT REEL/FRAME (054475/0609) Recorded Jun 10, 2022
From: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A., AS NOTES COLLATERAL AGENT
To: EMC IP HOLDING COMPANY LLC; DELL PRODUCTS L.P.
Reel/Frame 062021/0570 →
RELEASE OF SECURITY INTEREST AT REEL 054591 FRAME 0471 Recorded Nov 2, 2021
From: CREDIT SUISSE AG, CAYMAN ISLANDS BRANCH
To: DELL PRODUCTS L.P.; EMC IP HOLDING COMPANY LLC
Reel/Frame 058001/0463 →
SECURITY INTEREST Recorded Nov 18, 2020
From: EMC IP HOLDING COMPANY LLC; DELL PRODUCTS L.P.
To: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A., AS COLLATERAL AGENT
Reel/Frame 054475/0609 →
SECURITY INTEREST Recorded Nov 18, 2020
From: EMC IP HOLDING COMPANY LLC; DELL PRODUCTS L.P.
To: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 054475/0434 →
SECURITY INTEREST Recorded Nov 18, 2020
From: EMC IP HOLDING COMPANY LLC; DELL PRODUCTS L.P.
To: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 054475/0523 →
SECURITY AGREEMENT Recorded Nov 13, 2020
From: EMC IP HOLDING COMPANY LLC; DELL PRODUCTS L.P.
To: CREDIT SUISSE AG, CAYMAN ISLANDS BRANCH
Reel/Frame 054591/0471 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 21, 2020
From: ZHANG, MING; LV, SHUO
To: EMC IP HOLDING COMPANY LLC
Reel/Frame 054124/0222 →