File storage method, electronic device and computer program product

By acquiring user preferences and evaluating the storage cost and access performance of multi-level storage devices, and automatically selecting storage solutions, it solves the problem that users have difficulty specifying storage devices and improves the storage experience.

CN112882998BActive Publication Date: 2024-11-08EMC IP HLDG CO LLC
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN201911202144.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-29
Publication Date
2024-11-08
Estimated Expiration
2039-11-29

AI Technical Summary

Technical Problem

When users store large amounts of files or data, it is difficult for users to effectively specify different types of storage devices, resulting in poor storage experience.

Method used

By acquiring the user's preference for multi-level storage devices, determining the evaluation results of candidate storage schemes based on storage cost and access performance, and selecting the target storage scheme from them, the location selection of storage files is automated.

Benefits of technology

It reduces the operating burden of users, provides a storage solution more in line with user preferences, and improves the storage experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112882998B_ABST
    Figure CN112882998B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to a file storage method, an electronic device, and a computer program product. The method includes: obtaining a user's preference for storing a file set in a multi-level storage device, each level of storage device in the multi-level storage device being associated with a different storage cost or a different access performance; determining evaluation results for a plurality of candidate storage schemes based on the preference and the storage cost and access performance associated with the multi-level storage device, the candidate storage scheme indicating the storage location of the files in the file set in the multi-level storage device; and determining a target storage scheme for storing the file set from the plurality of candidate storage schemes based on the evaluation results. Embodiments of the present disclosure can automatically provide a user with a storage scheme that meets the user's preferences.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computers, and more particularly, to a file storage method, an electronic device, and a computer program product. Background Art

[0002] In recent years, with the development of computer technology, various types of storage devices have been developed. Different types of storage devices may have different access performance or different storage costs. For example, solid-state drives have higher access performance than mechanical hard drives, but they also bring greater storage costs. Storage service providers can use different types of storage devices to provide users with personalized storage services. Users can choose different types of storage devices that meet storage requirements for files or data of different importance levels. However, users often need to store a large amount of files or data, and the user's artificial specification of the type of storage device used to store files brings a bad experience to users. Summary of the invention

[0003] An embodiment of the present disclosure provides a solution for file storage.

[0004] According to a first aspect of the present disclosure, a file storage method is proposed. The method includes: obtaining a user's preference for storing a file set in a multi-level storage device, each level of storage device in the multi-level storage device is associated with a different storage cost or a different access performance; based on the preference and the storage cost and access performance associated with the multi-level storage device, determining an evaluation result for a plurality of candidate storage schemes, the candidate storage schemes indicating the storage location of the files in the file set in the multi-level storage device; and based on the evaluation result, determining a target storage scheme for storing the file set from the plurality of candidate storage schemes.

[0005] According to a second aspect of the present disclosure, an electronic device is provided. The electronic device includes: at least one processing unit; at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, cause the device to perform an action, the action including: obtaining a user's preference for storing a file set in a multi-level storage device, each level of storage device in the multi-level storage device being associated with a different storage cost or a different access performance; based on the preference and the storage cost and access performance associated with the multi-level storage device, determining evaluation results for a plurality of candidate storage schemes, the candidate storage schemes indicating the storage location of files in the file set in the multi-level storage device; and based on the evaluation results, determining a target storage scheme for storing the file set from the plurality of candidate storage schemes.

[0006] In a third aspect of the present disclosure, a computer program product is provided. The computer program product is stored in a non-transitory computer storage medium and includes machine executable instructions, which, when executed in a device, cause the device to perform any step of the method described in the first aspect of the present disclosure.

[0007] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the present disclosure, nor is it intended to limit the scope of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present disclosure.

[0009] Figure 1 A schematic diagram illustrating an environment in which embodiments of the present disclosure may be implemented;

[0010] Figure 2 A flowchart illustrating a process of file storage according to an embodiment of the present disclosure is shown;

[0011] Figure 3 A flowchart illustrating a process of determining preferences according to an embodiment of the present disclosure is shown;

[0012] Figure 4 A flowchart illustrating a process of determining an evaluation result according to an embodiment of the present disclosure; and

[0013] Figure 5 A schematic block diagram of an example device that may be used to implement embodiments of the present disclosure is illustrated. DETAILED DESCRIPTION

[0014] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0015] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0016] In recent years, with the development of computer technology, various types of storage devices have been developed. Different types of storage devices may have different access performance or different storage costs. For example, solid-state drives have higher access performance than mechanical hard drives, but they also bring higher storage costs. Storage service providers can use different types of storage devices to provide users with personalized storage services. Different types of storage devices can also be called multi-level storage devices.

[0017] In a scenario based on multi-level storage devices, users can select different types of storage devices for files or data of different importance levels. For example, for files of higher importance levels, users may want to use storage devices with higher access performance to store them. On the contrary, for some rarely accessed data, users may want to reduce the storage cost of these data. However, users often need to store a large number of files or data, and it is difficult for users to effectively specify the type of storage device used to store each file.

[0018] According to an embodiment of the present disclosure, a file storage solution is provided. In the solution, first, a user's preference for storing a file set in a multi-level storage device can be obtained. Each level of storage device in the multi-level storage device has a different storage cost or a different access performance. Subsequently, the preferences and the storage cost and access performance associated with the multi-level storage device can be used to determine an evaluation result for multiple candidate storage solutions. The candidate storage solution can indicate the storage location of the files in the file set in the multi-level storage device. By analyzing the evaluation results, a target storage solution for storing the file set can be determined from multiple candidate storage solutions. Based on this approach, the embodiment of the present disclosure can automatically determine a storage solution that meets the user's preferences based on the user's preferences, thereby reducing the user's operational burden.

[0019] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.

[0020] Figure 1 1 is a schematic diagram of an example environment 100 in which various embodiments of the present disclosure can be implemented. Figure 1As shown, the environment 100 may include a computing device 130 and a multi-level storage device 140 coupled to the computing device 130. The multi-level storage device 140 may include storage device groups 150-1, 150-2 to 150-N (individually or collectively referred to as storage device groups 150) of different levels consisting of storage devices of the same type. The storage devices in each storage device group 150 may have different storage costs or different access performances. For example, the storage device group 150-1 may include storage devices with the highest storage cost and the lowest access latency, while the storage device group 150-N may include storage devices with the lowest storage cost and the highest access latency.

[0021] The computing device 130 may receive a file set 120 that needs to be stored in the multi-level storage device 140. The file set 120 may include one or more files or data blocks to be stored. The computing device 130 may also receive the user's 110 preference 115 on how to store the file set 120 from the user 110, and determine which storage device group 150 in the multi-level storage device 140 the files in the file set 120 should be stored in according to the preference 115. The process of determining the storage solution based on the preference 115 will be described in detail below.

[0022] The following will refer to Figures 2 to 4 To describe the process of storage management according to an embodiment of the present disclosure. Figure 2 FIG. 2 is a flowchart of a process 200 for storing files according to some embodiments of the present disclosure. The process 200 may be performed by, for example, Figure 1 The computing device 130 shown in FIG. 1 is implemented as shown in FIG.

[0023] At block 202, computing device 130 obtains user 110's preference 115 regarding storing file set 120 in multi-tier storage device 140, wherein each tier of storage device in multi-tier storage device 140 is associated with a different storage cost or a different access performance. In some embodiments, preference 115 may indicate whether user 110 is more concerned with storage cost or access performance.

[0024] In some embodiments, computing device 130 may obtain preferences based on input from user 110. Specifically, Figure 3 A flowchart of a process for determining preferences according to an embodiment of the present disclosure is shown.

[0025] like Figure 3As shown, in box 302, the computing device 130 may receive input from the user 110 regarding the preference 115. In some embodiments, the computing device 130 may, for example, provide the user 110 with an interface for inputting the preference 115. For example, the computing device 130 may provide the user 110 with a drag bar control for inputting the preference. By receiving the drag operation of the user 110 on the slider in the drag bar control, the computing device 130 may determine the user 110's preference 115 for storage cost and access performance. In another example, the user 110 may also directly input the preference values ​​for storage cost and access performance to the computing device 130, respectively. For example, the user 110 may input a preference value of 80 for storage cost and a preference value of 20 for access performance, thereby indicating that the user 110 attaches more importance to storage cost. It should be understood that the example input understood above is only illustrative, and the user 110's preference 115 for storage may also be received in any other appropriate manner, and the present disclosure is not intended to be limited to this.

[0026] In box 304, the computing device 130 can determine a first weight associated with storage cost and a second weight associated with access performance based on the input as an indication of preference 115. In some embodiments, after obtaining the input of user 110, the computing device 130 can further determine the normalized weights associated with storage cost and access performance. For example, the computing device 130 can determine the respective weights based on the position of the slider in the drag bar control. In another example, the computing device 130 can calculate the corresponding weight based on the preference value input by user 110. For example, in an example where the preference value for storage cost is 80 and the preference value for storage performance is 20, the first weight associated with storage cost can be determined to be 0.8, and the second weight can be determined to be 0.2.

[0027] Continue to refer Figure 2 In block 204, the computing device 130 determines evaluation results for a plurality of candidate storage solutions based on the preferences 115 and the storage costs and access performance associated with the multi-level storage device 140, wherein the candidate storage solutions indicate storage locations of the files in the file set 120 in the multi-level storage device 140. In some embodiments, the candidate storage solutions may include all or part of all possible solutions consisting of different storage locations (i.e., which level of storage device the files in the file set 120 are stored in) in the multi-level storage device 140.

[0028] In some embodiments, preference 115 may include an indication of a first storage location of a first file in file set 120 by user 110. For example, user 110 may specify a specific storage location for some files in file set 120. In some embodiments, computing device 130 may determine a plurality of candidate storage solutions based on the first storage location, so that each candidate storage solution indicates that the first file will be stored in the first storage location. Based on this approach, embodiments of the present disclosure support users to set storage locations for specific files on the basis of automatically providing storage solutions.

[0029] In some embodiments, when the preference 115 includes a first weight associated with storage cost and a second weight associated with access performance, the computing device 130 may determine the evaluation result by considering both the first weight and the second weight. Figure 4 A flowchart of a process for determining an evaluation result according to an embodiment of the present disclosure is shown.

[0030] like Figure 4 As shown, at block 402 , the computing device 130 may determine a first evaluation result associated with a plurality of candidate storage solutions based on a storage cost associated with the multi-tier storage device 140 .

[0031] continue Figure 1 For example, each candidate storage solution will specify which storage device group 150 each file in the file set 120 should be stored in. The computing device 130 can determine the storage cost of each file based on the size of each file in the file set 120 and the storage cost (e.g., price per unit size) of the corresponding storage device group 150. The computing device 130 can determine the total storage cost based on the cost of each file, and use the total storage cost as the first evaluation result. It should be understood that the first evaluation result may only be a possible price for storing the file set 120 according to the storage solution.

[0032] At block 404, computing device 130 may determine a second evaluation result associated with the plurality of candidate storage solutions based on access performance associated with multi-level storage device 140. In some embodiments, computing device 130 may determine the second evaluation result using access latency of file set 120 stored in multi-level storage device 140.

[0033] In some embodiments, computing device 130 may determine the access latency of files in file set 120 based on the access performance associated with each level of storage devices in the multi-level storage devices. For example, computing device 130 may determine the access latency of each file based on the size of each file in file set 120 and the access performance of the corresponding storage device group 150.

[0034] In some embodiments, the computing device 130 may also determine the probability of a file being accessed based on at least one of the last modification time, size, type, and location of the file. In some embodiments, the computing device 130 may calculate the probability based on the above factors using a function-based calculation method, for example, the probability may be determined as a function of the above factors based on function fitting of historical data. Generally speaking, for example, the closer the last modification time, the greater the probability that the file is accessed.

[0035] In some embodiments, the computing device 130 may also construct a model between the above factors and probabilities by machine learning, and use the trained model to determine the probability of each file being accessed. It should be understood that the probability of a file being accessed may also be determined based on other appropriate methods, and the present disclosure is not intended to limit this.

[0036] In some embodiments, the computing device 130 then determines a second evaluation result based on the access delay and the probability. Specifically, the second evaluation result can be determined as the sum of the products of the access delay of each file in the file set 120 and the corresponding access probability. Through such a calculation method, the second evaluation result can indicate the delay of the files in the file set 120 being accessed.

[0037] In block 406, the computing device 130 may determine the evaluation result by applying the first weight and the second weight to the first evaluation result and the second evaluation result, respectively. The computing device 130 may determine the evaluation result by calculating the weighted sum of the first evaluation result and the second evaluation result. The evaluation result determined in this way can not only comprehensively reflect the storage cost and the access performance, but also reflect the user's preference for the two.

[0038] Continue to refer Figure 2 In block 206, the computing device 130 determines a target storage solution for storing the file set 120 from a plurality of candidate storage solutions based on the evaluation result. In some embodiments, the computing device 130 may select a storage solution with an evaluation result value lower than a predetermined threshold as the target storage solution. Alternatively, the computing device 130 may select a storage solution with a lowest evaluation result value as the target storage solution.

[0039] In some embodiments, the computing device 130 can select multiple candidate storage solutions by means of integer programming, without selecting all possible solutions as candidate solutions. The computing device 130 can then determine the target storage solution based on the evaluation results from a smaller number of candidate storage solutions. Based on this approach, the embodiments of the present disclosure can further reduce the computational overhead of the computing device 130. The detailed principles of integer programming will not be described in detail here.

[0040] In some embodiments, the preference 115 may also include a first constraint of the user 110 for the total storage cost. It should be understood that the computing device 130 may determine the first constraint from the input of the user 110 for the preference 115. In this example, before calculating the evaluation result of the candidate storage solution, the computing device 130 may determine whether the total storage cost corresponding to the candidate storage solution satisfies the first constraint. The computing device 130 may only consider the candidate storage solutions that satisfy the first constraint, and select, for example, the solution with the lowest evaluation result value as the target storage solution.

[0041] In some embodiments, the preference 115 may also include a second constraint of the user 110 for total access performance. It should be understood that the computing device 130 may determine the second constraint from the user 110's input for the preference 115. In this example, before calculating the evaluation result of the candidate storage solution, the computing device 130 may determine whether the total access performance (e.g., represented by access latency) corresponding to the candidate storage solution satisfies the second constraint. The computing device 130 may only consider the candidate storage solutions that satisfy the second constraint, and select, for example, the solution with the lowest evaluation result value as the target storage solution.

[0042] In some embodiments, the process 200 may further include storing the file set 120 in the multi-level storage device 140 based on the target storage scheme. Specifically, after determining the target storage scheme, the computing device 130 may add a label indicating the corresponding storage location to the file in the file set based on the target storage scheme. For example, the file to be stored in the storage device group 150-1 may be labeled "1". Subsequently, based on the label, the computing device 130 may generate a storage rule for each file in the file set 120, and store the files in the file set 120 in the corresponding storage device group 150 of the multi-level storage device 140 based on the storage rule. For example, the computing device 130 may check the label of each file, and store the file in the corresponding storage device group 150 according to the relationship between the label and the storage device group 150 in the multi-level storage device 140. In this way, the embodiments of the present disclosure can be better compatible with a storage system that determines the storage location of each file based on a storage rule input by a user, thereby improving the usability of the solution of the present disclosure.

[0043] It can be seen that, through the scheme described above, the embodiments of the present disclosure can automatically formulate a storage scheme that meets the user's preferences based on the user's general preferences. Based on this approach, the burden of the user for formulating a storage scheme for a file set is reduced, and by evaluating the candidate schemes, a storage scheme that better meets the user's preferences can be provided to the user.

[0044] Figure 5A schematic block diagram of an example device 500 that can be used to implement an embodiment of the present disclosure is shown. For example, a computing device 130 according to an embodiment of the present disclosure can be implemented by the device 500. As shown, the device 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 502 or computer program instructions loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0045] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0046] The various processes and processing described above, such as process 200, may be performed by processing unit 501. For example, in some embodiments, process 200 may be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by CPU 501, one or more actions of process 200 described above may be performed.

[0047] The present disclosure may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.

[0048] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0049] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0050] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0051] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0052] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0053] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0054] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0055] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A file storage method, include: For a file set, obtaining a user's preference for storing the file set in a multi-level storage device, each level of storage device in the multi-level storage device being associated with a different storage cost or a different access performance, wherein the preference includes a preference associated with the storage cost and the access performance for storing the file set; Determining evaluation results for a plurality of candidate storage solutions based on the preferences and storage costs and access performance associated with the multi-level storage device, the candidate storage solutions indicating storage locations of files in the file set in the multi-level storage device; as well as Based on the evaluation result, determining a target storage solution for storing the file set from the multiple candidate storage solutions, The preference further includes an indication by the user of a first storage location of a first file in the file set, and the method further includes: Based on the first storage location, determining the plurality of candidate storage solutions, wherein each candidate storage solution of the plurality of candidate storage solutions indicates that the first file is to be stored in the first storage location, Wherein obtaining the preference comprises: receiving input from the user regarding the preferences; and Based on the input, determining a first weight associated with storage cost and a second weight associated with access performance, and Determining the evaluation result includes: Determining first evaluation results associated with the plurality of candidate storage solutions based on storage costs associated with the multi-level storage device; Determining second evaluation results associated with the plurality of candidate storage solutions based on access performance associated with the multi-level storage device; and The evaluation result is determined by applying the first weight and the second weight to the first evaluation result and the second evaluation result, respectively.

2. The method according to claim 1, wherein determining the second evaluation result evaluation result include: Determining access latency of files in the file set based on access performance associated with each level of storage devices in the multi-level storage devices; determining a probability that the file is accessed based on at least one of a last modification time, a size, a type, and a location of the file; as well as The second evaluation result is determined based on the access delay and the probability.

3. The method according to claim 1, wherein the preferences include a first constraint of the user on total storage cost, wherein determining the target storage solution include: The target storage solution is selected from the plurality of candidate storage solutions such that the total storage cost associated with the target storage solution satisfies the first constraint.

4. The method according to claim 1, wherein the preference includes a second constraint of the user for overall access performance, wherein determining the target storage solution include: The target storage solution is selected from the plurality of candidate storage solutions such that the total access performance associated with the target storage solution satisfies the second constraint.

5. The method according to claim 1, further comprising: include: Based on the target storage solution, adding tags indicating corresponding storage locations to the files in the file set; as well as Based on the tags, the file set is stored in the multi-level storage device.

6. An electronic device, include: at least one processing unit; at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the apparatus to perform actions comprising: For a file set, obtaining a user's preference for storing the file set in a multi-level storage device, each level of storage device in the multi-level storage device being associated with a different storage cost or a different access performance, wherein the preference includes a preference associated with the storage cost and the access performance for storing the file set; Determining evaluation results for a plurality of candidate storage solutions based on the preferences and storage costs and access performance associated with the multi-level storage device, the candidate storage solutions indicating storage locations of files in the file set in the multi-level storage device; and Based on the evaluation result, determining a target storage solution for storing the file set from the multiple candidate storage solutions, The preference further includes an indication by the user of a first storage location of a first file in the file set, and the action further includes: Based on the first storage location, determining the plurality of candidate storage solutions, wherein each candidate storage solution of the plurality of candidate storage solutions indicates that the first file is to be stored in the first storage location, Wherein obtaining the preference comprises: receiving input from the user regarding the preferences; and Based on the input, determining a first weight associated with storage cost and a second weight associated with access performance, and Determining the evaluation result includes: Determining first evaluation results associated with the plurality of candidate storage solutions based on storage costs associated with the multi-level storage device; Determining second evaluation results associated with the plurality of candidate storage solutions based on access performance associated with the multi-level storage device; and The evaluation result is determined by applying the first weight and the second weight to the first evaluation result and the second evaluation result, respectively.

7. The electronic device according to claim 6, wherein the second evaluation result is determined include: Determining access latency of files in the file set based on access performance associated with each level of storage devices in the multi-level storage devices; determining a probability that the file is accessed based on at least one of a last modification time, a size, a type, and a location of the file; as well as The second evaluation result is determined based on the access delay and the probability.

8. The electronic device of claim 6, wherein the preferences include a first constraint of the user on total storage cost, wherein determining the target storage solution include: The target storage solution is selected from the plurality of candidate storage solutions such that the total storage cost associated with the target storage solution satisfies the first constraint.

9. The electronic device according to claim 6, wherein the preference includes a second constraint of the user for overall access performance, wherein determining the target storage scheme include: The target storage solution is selected from the plurality of candidate storage solutions such that the total access performance associated with the target storage solution satisfies the second constraint.

10. The electronic device according to claim 6, wherein the action further include: Based on the target storage solution, adding tags indicating corresponding storage locations to the files in the file set; as well as Based on the tags, the file set is stored in the multi-level storage device.

11. A computer program product stored in a non-transitory computer storage medium and comprising machine executable instructions which, when executed in a device, cause the device to perform the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Grading storage method for system

    CN102508789A

  • Method and system for establishing virtual desktop

    CN106648637A

  • Storage management method and equipment

    CN107870916A

  • File storage method and device

    CN108228803A

  • Data migration method and device

    CN108595108A