METHOD, ELECTRONIC DEVICE AND COMPUTER PROGRAM PRODUCT FOR MANAGING FILE SYSTEM
There is provided method, electronic device and computer program product for managing a file system. The method for managing a file system comprises determining a target file folder with an access frequency exceeding a frequency threshold in the file system; determining, based on an attribute of the target file folder, a cause associated with access to the target file folder; and determining, based on the cause, a strategy associated with the access to the target file folder, to improve access efficiency of the file system.
1 . A method, comprising:
determining, by a system comprising a processor, a target file folder with an access frequency exceeding a frequency threshold in a file system being managed by the system;
determining, based on an attribute of the target file folder, a cause associated with access to the target file folder; and
determining, based on the cause, a strategy associated with the access to the target file folder, to improve access efficiency of the file system.
2 . The method of claim 1 , wherein the determining the target file folder comprises:
determining, from file folders in the file system, a sub-file folder with an access frequency exceeding the frequency threshold; and
determining the sub-file folder as the target file folder.
3 . The method of claim 1 , wherein the determining the cause comprises:
determining the attribute;
determining an attribute value of the attribute; and
applying the attribute value to a classifier that has been trained to determine the cause.
4 . The method of claim 3 , further comprising:
obtaining historical attribute values and historical types of the attributes of a plurality of training file folders; and
training the classifier based on the historical attribute values and the historical types.
5 . The method of claim 1 , wherein the determining the strategy comprises:
determining a set of candidate strategies for the target file folder;
determining a respective cause corresponding to each candidate strategy in the set of candidate strategies; and
determining, as the strategy, a candidate strategy in the set of candidate strategies, which corresponds to the respective cause matching the cause for the target file folder.
6 . The method of claim 1 , wherein the attribute comprises at least one of:
a first access imbalance by user for the target file folder, the first access imbalance by user indicating a first standard deviation of access rates of the target file folder by a plurality of users accessing the target file folder;
a second access imbalance by time for the target file folder, the second access imbalance by time indicating a second standard deviation of access rates of the target file folder in each of a plurality of time periods; and
a type of the target file folder, the type indicating whether the target file folder is a public target file folder or a private target file folder.
7 . The method of claim 1 , wherein the cause comprises at least one of:
a normal frequent access;
a greedy user;
an accidental greedy user; or
a time-concentrated frequent access.
8 . The method of claim 1 , wherein the strategy comprises at least one of:
restricting access to the target file folder by a user;
moving the target file folder from a source storage storing the target file folder to a destination storage, wherein an access speed to the destination storage exceeds a speed threshold; or
providing the cause to the user.
9 . A device, comprising:
at least one processing unit;
at least one memory coupled to the at least one processing unit and storing instructions executed by the at least one processing unit, wherein the instructions, when executed by the at least one processing unit, cause the device to perform acts comprising:
determining a target file folder with an access frequency exceeding a frequency threshold in the file system;
determining, based on an attribute of the target file folder, a cause associated with access to the target file folder; and
determining, based on the cause, a strategy associated with the access to the target file folder, to improve access efficiency of the file system.
10 . The device of claim 9 , wherein the determining the target file folder comprises:
determining, from file folders in the file system, a sub-file folder with access frequency exceeding the frequency threshold; and
determining the sub-file folder as the target file folder.
11 . The device of claim 9 , wherein the determining the cause comprises:
determining the attribute;
determining an attribute value of the attribute; and
applying the attribute value to a classifier trained to determine the cause.
12 . The device of claim 11 , wherein the acts further comprise:
obtaining historical attribute values and historical types of the attributes of a plurality of training file folders; and
training the classifier based on the historical attribute values and the historical types.
13 . The device of claim 9 , wherein determining the strategy comprises:
determining a set of candidate strategies for the target file folder;
determining a respective cause corresponding to each candidate strategy in the set of candidate strategies; and
determining, as the strategy, a candidate strategy in the set of candidate strategies that corresponds to the respective cause matching the cause for the target file folder.
14 . The device of claim 9 , wherein the attribute comprises at least one of:
a first access imbalance by user for the target file folder, the first access imbalance by user indicating a first standard deviation of access rates of the target file folder by a plurality of users accessing the target file folder;
a second access imbalance by time for the target file folder, the second access imbalance by time indicating a second standard deviation of access rates of the target file folder in each of a plurality of time periods; or
a type of the target file folder, the type indicating whether the target file folder is a public target file folder or a private target file folder.
15 . The device of claim 9 , wherein the cause comprises at least one of:
a normal frequent access;
a greedy user;
an accidental greedy user; or
a time-concentrated frequent access.
16 . The device of claim 9 , wherein the strategy comprises at least one of:
restricting access to the target file folder by a user;
moving the target file folder from a source storage storing the target file folder to a destination storage, an access speed to the destination storage exceeding a speed threshold; or
providing the cause to the user.
17 . A computer program product tangibly stored on a non-transitory computer-readable medium and including machine-executable instructions, the machine-executable instructions, when executed, causing a machine to perform operations, comprising:
determining a target file folder with an access frequency exceeding a frequency threshold in a file system;
based on an attribute of the target file folder, determining a cause associated with access to the target file folder; and
based on the cause, determining a strategy associated with the access to the target file folder, to improve access efficiency of the file system.
18 . The computer program product of claim 17 , wherein the operations further comprise:
obtaining historical attribute values and historical types of the attributes of a plurality of training file folders;
training a classifier based on the historical attribute values and the historical types, resulting in a trained classifier;
determining the attribute;
determining an attribute value of the attribute; and
applying the attribute value to the trained classifier to determine the cause.
19 . The computer program product of claim 17 , wherein the determining the strategy comprises:
determining candidate strategies for the target file folder;
determining respective causes corresponding to the candidate strategies; and
determining, as the strategy, a candidate strategy of the candidate strategies, which corresponds to a respective cause of the respective causes matching the cause for the target file folder.
20 . The computer program product of claim 17 , wherein the attribute comprises at least one of:
a first access imbalance by user for the target file folder, the first access imbalance by user indicating a first standard deviation of access rates of the target file folder by users accessing the target file folder;
a second access imbalance by time for the target file folder, the second access imbalance by time indicating a second standard deviation of access rates of the target file folder in each time period of time periods; and
a type of the target file folder, the type indicating whether the target file folder is a public target file folder or a private target file folder, and
wherein the cause comprises at least one of:
a normal frequent access;
a greedy user;
an accidental greedy user; or
a time-concentrated frequent access.