IP Library Granted Patent US 11,659,032
Granted Patent B2
US 11,659,032 · App. 16/881,429 · Granted May 23, 2023

Methods, electronic devices, and computer program products for accessing a file

Inventors: Chaojun Zhao (Chengdu, CN); Changxu Jiang (Chengdu, CN); Jianfei Yang (Chengdu, CN); Xiaoyu Ren (Du Jiangyan, CN)
Assignee: EMC IP Holding Company LLC
H04L67/1097G06F18/214H04L63/102H04L63/108H04L63/20H04L67/01
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,659,032
App. No.
16/881,429
Granted
May 23, 2023
Kind
B2
Abstract

Techniques for accessing a file involve determining whether a client requests a permission for a target file, the permission allowing the client to cache data associated with the target file. The techniques further involve in response to determining that the client requests the permission, obtaining pattern information related to an access pattern in which the client accesses the target file. The techniques further involve determining availability of the permission to the client by applying the pattern information to a decision model, the decision model being trained based on training pattern information and training permission information. The techniques further involve providing, to the client, an indication on the availability. Accordingly, access conflicts can be reduced, so that the performance of the client and server can be improved.

Claims (74)

1. A method of accessing a file, comprising:

determining whether a client requests a permission for a target file, responsive to receipt of an open request for the target file from the client, the permission allowing the client to cache data associated with the target file;

in response to determining that the client requests the permission, obtaining pattern information from the open request received from the client, wherein the pattern information is related to an access pattern in which the client accesses the target file and includes a time when the client requests the permission, wherein the time the client requests the permission comprises a year, month, and day when the open request was sent from the client, and wherein determining that the client requests the permission for the target file comprises determining that the open request received from the client includes a request from the client for the permission;

determining availability of the permission to the client by applying the pattern information to a decision model, the decision model being trained based on training pattern information and training permission information;

providing, to the client, an indication on the availability;

determining event information associated with providing of the availability, the event information indicating at least one of maintenance of the permission, disabling of the permission and access to the target file;

determining, for the decision model, a feedback corresponding to the availability, based on the event information, at least in part by:

determining as the feedback a reward in response to a period of time during which the permission is maintained,

wherein the reward has a first value in the event that a break in the permission happens before the period of time during which the permission is maintained reaches an average permission duration,

wherein the reward has a second value in the event that a break in the permission happens after the period of time during which the permission is maintained reaches the average permission duration,

wherein the first value is less than the second value,

wherein the reward has a third value in the event that a break in the permission happens after a period of time during which the permission is maintained reaches a multiple of the average permission duration, and

wherein the third value is greater than the second value; and

updating the decision model with the feedback corresponding to the availability.

2. The method of claim 1 , wherein obtaining the pattern information comprises:

determining whether the target file is being accessed or is to be accessed by a further client;

in response to determining that the target file is being accessed or is to be accessed by the further client, determining that the permission has a first permission level; and

in response to determining that no further client is accessing or is to access the target file, determining that the permission has a second permission level higher than the first permission level.

3. The method of claim 2 , wherein the first permission level corresponds to a shared permission, and the second permission level corresponds to an exclusive permission.

4. The method of claim 2 , wherein obtaining the pattern information further comprises obtaining:

an operation to be performed on the target file by the client, and

an identification of the client.

5. The method of claim 1 , wherein the availability indicates that the client is refused to be granted the permission, and wherein determining the feedback corresponding to the availability comprises:

in response to the event information indicating that the target file is not accessed by a further client during a period of time, determining that the feedback corresponding to the availability is a negative feedback.

6. The method of claim 1 , wherein the availability indicates that the client is allowed to be granted the permission, and wherein determining the feedback corresponding to the availability comprises:

in response to the event information indicating that the permission is maintained during a period of time, determining that the feedback corresponding to the availability is a positive feedback; and

in response to the event information indicating that the permission is disabled during the client accessing the target file, determining that the feedback corresponding to the availability is a negative feedback.

7. The method of claim 6 , wherein amounts of the positive feedback and the negative feedback depend on at least one of a type of the permission and duration of the permission.

8. The method of claim 1 , wherein the decision model is a model based on reinforcement learning.

9. An electronic device, comprising:

a processor; and

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

determining whether a client requests a permission for a target file, responsive to receipt of an open request for the target file from the client, the permission allowing the client to cache data associated with the target file;

in response to determining that the client requests the permission, obtaining pattern information from the open request received from the client, wherein the pattern information is related to an access pattern in which the client accesses the target file and includes a time when the client requests the permission, wherein the time the client requests the permission comprises a year, month, and day when the open request was sent from the client, and wherein determining that the client requests the permission for the target file comprises determining that the open request received from the client includes a request from the client for the permission;

determining availability of the permission to the client by applying the pattern information to a decision model, the decision model being trained based on training pattern information and training permission information;

providing, to the client, an indication on the availability;

determining event information associated with providing of the availability, the event information indicating at least one of maintenance of the permission, disabling of the permission and access to the target file;

determining, for the decision model, a feedback corresponding to the availability, based on the event information, at least in part by:

determining as the feedback a reward in response to a period of time during which the permission is maintained,

wherein the reward has a first value in the event that a break in the permission happens before the period of time during which the permission is maintained reaches an average permission duration,

wherein the reward has a second value in the event that a break in the permission happens after the period of time during which the permission is maintained reaches the average permission duration,

wherein the first value is less than the second value,

wherein the reward has a third value in the event that a break in the permission happens after a period of time during which the permission is maintained reaches a multiple of the average permission duration, and

wherein the third value is greater than the second value; and

updating the decision model with the feedback corresponding to the availability.

10. The device of claim 9 , wherein obtaining the pattern information comprises:

determining whether the target file is being accessed or to be accessed by a further client;

in response to determining that the target file is being accessed or to be accessed by the further client, determining that the permission has a first permission level; and

in response to determining that no further client is accessing or to access the target file, determining that the permission has a second permission level higher than the first permission level.

11. The device of claim 10 , wherein the first permission level corresponds to a shared permission, and the second permission level corresponds to an exclusive permission.

12. The device of claim 10 , wherein obtaining the pattern information further comprises obtaining:

an operation to be performed on the target file by the client, and

an identification of the client.

13. The device of claim 9 , wherein the availability indicates that the client is refused to be granted the permission, and wherein determining the feedback corresponding to the availability comprises:

in response to the event information indicating that the target file is not accessed by a further client during a period of time, determining that the feedback corresponding to the availability is a negative feedback.

14. The device of claim 9 , wherein the availability indicates that the client is allowed to be granted the permission, and wherein determining the feedback corresponding to the availability comprises:

in response to the event information indicating that the permission is maintained during a period of time, determining that the feedback corresponding to the availability is a positive feedback; and

in response to the event information indicating that the permission is disabled during the client accessing the target file, determining that the feedback corresponding to the availability is a negative feedback.

15. The device of claim 14 , wherein amounts of the positive feedback and the negative feedback depend on at least one of a type of the permission and duration of the permission.

16. The device of claim 9 , wherein the decision model is a model based on reinforcement learning.

17. A computer program product having a non-transitory computer readable medium which stores a set of instructions to access a file; the set of instructions, when carried out by computerized circuitry, causing the computerized circuitry to perform a method of:

determining whether a client requests a permission for a target file, responsive to receipt of an open request for the target file from the client, the permission allowing the client to cache data associated with the target file;

in response to determining that the client requests the permission, obtaining pattern information from the open request received from the client, wherein the pattern information is related to an access pattern in which the client accesses the target file and includes a time when the client requests the permission, wherein the time the client requests the permission comprises a year, month, and day when the open request was sent from the client, and wherein determining that the client requests the permission for the target file comprises determining that the open request received from the client includes a request from the client for the permission;

determining availability of the permission to the client by applying the pattern information to a decision model, the decision model being trained based on training pattern information and training permission information;

providing, to the client, an indication on the availability;

determining event information associated with providing of the availability, the event information indicating at least one of maintenance of the permission, disabling of the permission and access to the target file;

determining, for the decision model, a feedback corresponding to the availability, based on the event information, at least in part by:

determining as the feedback a reward in response to a period of time during which the permission is maintained,

wherein the reward has a first value in the event that a break in the permission happens before the period of time during which the permission is maintained reaches an average permission duration,

wherein the reward has a second value in the event that a break in the permission happens after the period of time during which the permission is maintained reaches the average permission duration,

wherein the first value is less than the second value,

wherein the reward has a third value in the event that a break in the permission happens after a period of time during which the permission is maintained reaches a multiple of the average permission duration, and

wherein the third value is greater than the second value; and

updating the decision model with the feedback corresponding to the availability.

Assignments (9)
RELEASE OF SECURITY INTEREST IN PATENTS PREVIOUSLY RECORDED AT REEL/FRAME (053574/0221) Recorded Jun 10, 2022
From: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A., AS NOTES COLLATERAL AGENT
To: DELL PRODUCTS L.P.; EMC IP HOLDING COMPANY LLC
Reel/Frame 060333/0001 →
RELEASE OF SECURITY INTEREST IN PATENTS PREVIOUSLY RECORDED AT REEL/FRAME (053578/0183) Recorded Jun 10, 2022
From: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A., AS NOTES COLLATERAL AGENT
To: DELL PRODUCTS L.P.; EMC IP HOLDING COMPANY LLC
Reel/Frame 060332/0864 →
RELEASE OF SECURITY INTEREST IN PATENTS PREVIOUSLY RECORDED AT REEL/FRAME (053573/0535) Recorded Jun 10, 2022
From: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A., AS NOTES COLLATERAL AGENT
To: DELL PRODUCTS L.P.; EMC IP HOLDING COMPANY LLC
Reel/Frame 060333/0106 →
RELEASE OF SECURITY INTEREST AT REEL 053531 FRAME 0108 Recorded Nov 2, 2021
From: CREDIT SUISSE AG, CAYMAN ISLANDS BRANCH
To: DELL PRODUCTS L.P.; EMC IP HOLDING COMPANY LLC
Reel/Frame 058001/0371 →
SECURITY INTEREST Recorded Aug 21, 2020
From: DELL PRODUCTS L.P.; EMC IP HOLDING COMPANY LLC
To: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 053578/0183 →
SECURITY INTEREST Recorded Aug 21, 2020
From: DELL PRODUCTS L.P.; EMC IP HOLDING COMPANY LLC
To: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 053573/0535 →
SECURITY INTEREST Recorded Aug 21, 2020
From: DELL PRODUCTS L.P.; EMC IP HOLDING COMPANY LLC
To: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 053574/0221 →
SECURITY AGREEMENT Recorded Aug 18, 2020
From: DELL PRODUCTS L.P.; EMC IP HOLDING COMPANY LLC
To: CREDIT SUISSE AG, CAYMAN ISLANDS BRANCH
Reel/Frame 053531/0108 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 17, 2020
From: ZHAO, CHAOJUN; JIANG, CHANGXU; YANG, JIANFEI; REN, XIAOYU
To: EMC IP HOLDING COMPANY LLC
Reel/Frame 052965/0244 →
Priority Claims (1)
CN 201911002078.6 · Oct 21, 2019 · national
Continuity (1)
Related Publication 20210120004A1 · Apr 22, 2021