CN103678143B - File memory method, device and electronic equipment - Google Patents
File memory method, device and electronic equipment Download PDFInfo
- Publication number
- CN103678143B CN103678143B CN201210361303.7A CN201210361303A CN103678143B CN 103678143 B CN103678143 B CN 103678143B CN 201210361303 A CN201210361303 A CN 201210361303A CN 103678143 B CN103678143 B CN 103678143B
- Authority
- CN
- China
- Prior art keywords
- file
- stored
- larger
- storage
- size
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000015654 memory Effects 0.000 title claims abstract description 62
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000006870 function Effects 0.000 description 4
- 208000000044 Amnesia Diseases 0.000 description 2
- 208000026139 Memory disease Diseases 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006984 memory degeneration Effects 0.000 description 2
- 208000023060 memory loss Diseases 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A kind of file memory method of the application offer, device and electronic equipment.One of which file memory method is applied to an electronic equipment, and the electronic equipment has multiple storage mediums, the method includes:File storage request is received, file to be stored is obtained;According to the file to be stored information, the storage medium corresponding with the file to be stored is selected;The file to be stored is stored in the storage medium, wherein the storage medium stores the storage performance that the storage performance of the file to be stored stores the file to be stored better than other storage mediums.That is file can be stored in corresponding storage medium by the application, optimize storage performance.
Description
Technical Field
The present disclosure relates to the field of file processing technologies, and in particular, to a file storage method and apparatus, and an electronic device.
Background
With the advance of technology, different kinds of storage media, such as Disk media, SSD (Solid State Disk), cloud storage, and the like, are currently on the market. When a user stores a certain file, the file is stored in a storage medium at will.
However, different storage media have different storage capabilities for different files. Therefore, a file storage method is urgently needed, which can store files in respective corresponding storage media, and the storage performance of the storage media for storing the files is superior to that of other storage media.
Disclosure of Invention
The technical problem to be solved by the present application is to provide a file storage method, which is used for storing files in respective corresponding storage media, and the storage performance of the storage media storing the files is superior to that of other storage media.
The application also provides a file storage device and electronic equipment, which are used for ensuring the realization and application of the method in practice.
According to an aspect of the present application, there is provided a file storage method applied to an electronic device, where the electronic device has a plurality of storage media, the method including:
receiving a file storage request, and acquiring a file to be stored;
selecting the storage medium corresponding to the file to be stored according to the information of the file to be stored;
and storing the file to be stored in the storage medium, wherein the storage performance of the storage medium for storing the file to be stored is superior to that of other storage media for storing the file to be stored.
Preferably, selecting the storage medium corresponding to the file to be stored according to the information of the file to be stored includes:
selecting a magnetic disk as a storage medium of the file to be stored when the file size of the file to be stored is larger than the preset file size;
and selecting a flash memory as a storage medium of the file to be stored under the condition that the file size of the file information to be stored is not larger than the preset file size.
Preferably, selecting the storage medium corresponding to the file to be stored according to the information of the file to be stored includes:
selecting a magnetic disk as a storage medium of the file to be stored under the condition that the file size is larger than the preset file size and the file reading operation times are larger than the first operation times;
selecting a magnetic disk as a storage medium of the file to be stored under the condition that the file size is larger than the preset file size and the file writing operation times are larger than the second operation times;
selecting a flash memory as a storage medium of the file to be stored under the condition that the file size is not larger than the preset file size and the file reading operation times are larger than the first operation times;
and selecting a flash memory as a storage medium of the file to be stored under the condition that the file size is not larger than the preset file size and the file writing operation times are larger than the second operation times.
Preferably, the storing the file to be stored in the storage medium comprises:
the file information to be stored is that the file size is not larger than the preset file size, and the file reading operation times are larger than the first operation times, the file to be stored is stored in a storage block with the storage life longer than the preset life in the flash memory;
and under the condition that the file size of the file to be stored is not larger than the preset file size and the file writing operation times are larger than the second operation times, storing the file to be stored in a storage block with the storage life being shorter than the preset life in the flash memory.
Preferably, selecting the storage medium corresponding to the file to be stored according to the information of the file to be stored includes:
and under the condition that the type of the file to be stored is a multimedia type or a document type, selecting storage media except a magnetic disk and a flash memory.
According to another aspect of the present application, there is also provided a file storage apparatus applied to an electronic device, the electronic device having a plurality of storage media, the apparatus including:
the receiving module is used for receiving a file storage request and acquiring a file to be stored;
the selection module is used for selecting the storage medium corresponding to the file to be stored according to the information of the file to be stored;
and the memory is used for storing the file to be stored in the storage medium, wherein the storage performance of the storage medium for storing the file to be stored is superior to that of other storage media for storing the file to be stored.
Preferably, the selection module is specifically configured to select a magnetic disk as the storage medium of the file to be stored when the file size of the file to be stored is larger than a preset file size, and to select a flash memory as the storage medium of the file to be stored when the file size of the file to be stored is not larger than the preset file size.
Preferably, the selecting module is specifically configured to select a magnetic disk as the storage medium of the file to be stored when the file information to be stored is that the file size is larger than a preset file size and the file reading operation frequency is larger than a first operation frequency,
and a storage medium for selecting a magnetic disk as the file to be stored when the file to be stored is the file with the size larger than the preset file size and the file writing operation times is larger than the second operation times,
and a flash memory is selected as a storage medium of the file to be stored when the file information to be stored is that the file size is not larger than the preset file size and the file reading operation times are larger than the first operation times,
and the flash memory is selected as the storage medium of the file to be stored under the condition that the file size of the file to be stored is not larger than the preset file size and the file writing operation times are larger than the second operation times.
Preferably, the memory is specifically configured to store the file to be stored in a storage block of which the storage life is longer than a preset life in the flash memory when the file size of the file to be stored is not larger than the preset file size and the file read operation frequency is larger than the first operation frequency, and to store the file to be stored in a storage block of which the storage life is shorter than the preset life in the flash memory when the file size of the file to be stored is not larger than the preset file size and the file write operation frequency is larger than the second operation frequency.
Preferably, the selection module is specifically configured to select a storage medium other than a magnetic disk and a flash memory when the type of the file to be stored is a multimedia type or a document type.
According to still another aspect of the present application, there is also provided an electronic device having a plurality of storage media, including the above file storage apparatus.
In the application, after a file storage request is received, a storage medium corresponding to a file to be stored can be selected according to information of the file to be stored, and the file to be stored is stored in the storage medium, wherein the storage performance of the storage medium for storing the file to be stored is superior to that of other storage media for storing the file to be stored. That is to say, the file storage method and the file storage device can store files in the storage media corresponding to the files respectively, and optimize storage performance.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a flowchart of a file storage method provided herein;
fig. 2 is a schematic structural diagram of a file storage device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The application is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
Referring to fig. 1, which shows a flowchart of a file storage method provided in the present application, applied to an electronic device having a plurality of storage media, the file storage method may include the following steps:
step 101: and receiving a file storage request and acquiring a file to be stored.
In this embodiment, the file storage request may be pre-bound in the "paste" option, and when the user clicks the "paste" option, it indicates that the user needs to perform a storage operation on the file, and the file storage request is sent to the background operating system of the electronic device. The background operating system can acquire the file to be stored according to the file name carried in the file storage request.
Step 102: and selecting the storage medium corresponding to the file to be stored according to the information of the file to be stored.
When the file information to be stored is different, different types of storage media can be selected. In this embodiment, the stored file information may be a file size, a number of file read operations, a number of file write operations, a file type, and the like. The file size refers to the number of bytes included in the file to be stored; the file reading operation times refer to the times that a user has performed reading operation on a file to be stored; the number of times of writing the file refers to the number of times that the user has performed writing operation on the file to be stored.
The file size, the file reading operation times and the file writing operation times in the file information to be stored can be obtained through a counter, and if the file to be stored is obtained by a user once, the counter adds 1 to the recorded numerical value. The file type may be determined by parsing the name suffix of the file to be stored, and if the name suffix is rmvb, the file type is a multimedia type.
In the present embodiment, it is specifically described what type of storage medium is selected for the difference in file information to be stored.
One kind of situation
When the file information to be stored is the file size, the specific selection mode is as follows: when the file information to be stored is that the file size is larger than the preset file size, the number of bytes included in the file to be stored is large, the file to be stored is a large file, and at the moment, a magnetic disk is selected as a storage medium of the file to be stored; and under the condition that the file size of the file to be stored is not larger than the preset file size, the number of bytes included in the file to be stored is low, the file to be stored is a small file, and at the moment, a flash memory is selected as a storage medium of the file to be stored.
When the file information to be stored is the file size larger than the preset file size, the disk is selected as the storage medium of the file to be stored, because the disk can utilize the rotation mechanism of the disk to read and access the file when the file in the disk is read and accessed, the jitter of the magnetic head can be reduced, and the I/O (Input/Output) performance of the electronic device can be increased. If the file size is not larger than the preset file size, the magnetic disk is selected as the file to be stored, the jitter of the magnetic head is increased, and the I/O performance of the electronic equipment is reduced.
The preset file size can be preset by an operator, and certainly, the preset file size can also be dynamically set by the electronic device according to the stored file type and the counted existing file sizes of different types of files in the actual operation process.
Another situation
When the file information to be stored is the combination of the file size and the file reading operation times and the combination of the file size and the file writing operation times, the specific selection mode is as follows:
selecting a magnetic disk as a storage medium of the file to be stored under the condition that the file size of the file to be stored is larger than the preset file size and the file reading operation times are larger than the first operation times; and selecting a magnetic disk as a storage medium of the file to be stored under the condition that the file size of the file to be stored is larger than the preset file size and the file writing operation times are larger than the second operation times.
Selecting a flash memory as a storage medium of the file to be stored under the condition that the file size of the file information to be stored is not larger than the preset file size and the file reading operation times are larger than the first operation times; and selecting a flash memory as a storage medium of the file to be stored under the condition that the file size of the file information to be stored is not larger than the preset file size and the file writing operation times are larger than the second operation times.
When the file size of the electronic equipment is larger than the preset file size, the magnetic disk is selected as a storage medium, the file can be read and accessed by utilizing a rotation mechanism of the magnetic disk, the jitter of a magnetic head can be reduced, and the I/O performance of the electronic equipment is improved. If the file size is not larger than the preset file size, the magnetic disk is selected as the file to be stored, the jitter of the magnetic head is increased, and the I/O performance of the electronic equipment is reduced.
In this embodiment, the first operation frequency and the second operation frequency may be preset by an operator, or may be dynamically set by the electronic device according to the stored file type and the counted access amount of different types of files during the actual operation process.
In another case
When the file information to be stored is a file type, the specific selection mode is as follows: and under the condition that the type of the file to be stored is a multimedia type or a document type, selecting storage media except a magnetic disk and a flash memory.
Storage media other than magnetic disks and flash memories may include cloud disks, also referred to as network hard disks. The network hard disk is used as a network storage tool, the additional storage space of the electronic equipment is increased, and the network hard disk has a backup function, so that files to be stored in a multimedia type or a document type are stored in the network hard disk, the files to be stored can be automatically backed up, and the storage space of the electronic equipment can be saved.
Step 103: and storing the file to be stored in the storage medium, wherein the storage performance of the storage medium for storing the file to be stored is superior to that of other storage media for storing the file to be stored.
In this embodiment, the flash memory includes a plurality of memory blocks. When the information of the files to be stored is different, the files to be stored are stored in the flash memories differently.
For example, when the file size of the file to be stored is not larger than the preset file size and the number of file read operations is larger than the first number of operations, the file to be stored is stored in a storage block of which the storage life is longer than the preset life in the flash memory.
Further, when the file size of the file to be stored is not larger than the preset file size and the number of file write operations is larger than the second number of operations, the file to be stored is stored in a storage block of which the storage life is shorter than the preset life in the flash memory.
The storage life refers to the time when the storage block is used, and the storage life is counted and sequenced by a controller of the flash memory. And the storage blocks with the service lives longer than the preset service life are used for a longer time. And the memory blocks with the memory life shorter than the preset life are the memory blocks with shorter used time.
It should be noted that: the electronic device stores the file to be stored in the storage block with the storage life longer than the preset life so as to avoid increasing the erasing times of the storage block, increasing the flash memory loss and damaging the storage block and further damaging the flash memory under the condition that the reading and writing times of the file to be stored are increased.
The preset service life can be preset by an operator, and certainly, the preset service life can also be dynamically set by the electronic equipment according to the type of the stored file in the actual operation process. The preset life can ensure that the erasing times of the selected storage block are less than the erasing times of other storage blocks.
By applying the technical scheme, after a file storage request is received, a storage medium corresponding to the file to be stored can be selected according to the information of the file to be stored, and the file to be stored is stored in the storage medium, wherein the storage performance of the storage medium for storing the file to be stored is superior to that of other storage media for storing the file to be stored. That is to say, the file storage method and the file storage device can store files in the storage media corresponding to the files respectively, and optimize storage performance.
In addition to the foregoing method embodiments, the present application further provides a file storage apparatus applied to an electronic device, where the electronic device has a plurality of storage media, and a schematic structural diagram of the file storage apparatus shown in fig. 2 may include: a receiving module 11, a selecting module 12 and a memory 13. Wherein,
the receiving module 11 is configured to receive a file storage request and obtain a file to be stored.
In this embodiment, the file storage request may be pre-bound in the "paste" option, and when the user clicks the "paste" option, indicating that the user needs to perform a storage operation on the file, the file storage request is sent to the receiving module 11 of the electronic device. The receiving module 11 may obtain the file to be stored according to the file name carried in the file storage request.
And the selecting module 12 is configured to select the storage medium corresponding to the file to be stored according to the information of the file to be stored.
And the memory 13 is used for storing the file to be stored in the storage medium, wherein the storage performance of the storage medium for storing the file to be stored is superior to that of other storage media for storing the file to be stored.
When the file information to be stored is different, different types of storage media can be selected. In this embodiment, the stored file information may be a file size, a number of file read operations, a number of file write operations, a file type, and the like. The file size refers to the number of times that the file to be stored is acquired by the user.
The file size, the file reading operation times and the file writing operation times in the file information to be stored can be obtained through a counter, and if the file to be stored is obtained by a user once, the counter adds 1 to the recorded numerical value. The file type may be determined by parsing the name suffix of the file to be stored, and if the name suffix is rmvb, the file type is a multimedia type. The following description is made in the case of file information to be stored and storage medium selection.
One kind of situation
The selection module 12 is specifically configured to select a magnetic disk as a storage medium of the file to be stored when the file size of the file to be stored is larger than a preset file size, and select a flash memory as the storage medium of the file to be stored when the file size of the file to be stored is not larger than the preset file size.
When the file information to be stored is the file size larger than the preset file size, the selection module 12 selects the disk as the storage medium of the file to be stored, because when the file in the disk is read and accessed, the disk can use its own rotation mechanism to perform the read and access of the file, which can reduce the jitter of the magnetic head and increase the I/O (Input/Output ) performance of the electronic device. If the file size is not larger than the preset file size, the magnetic disk is selected as the file to be stored, the jitter of the magnetic head is increased, and the I/O performance of the electronic equipment is reduced.
The preset file size can be preset by an operator, and certainly, the preset file size can also be dynamically set by the electronic device according to the stored file type and the counted existing file sizes of different types of files in the actual operation process.
Another situation
The selecting module 12 is specifically configured to select a magnetic disk as the storage medium of the file to be stored when the file size of the file to be stored is larger than a preset file size and the number of file read operations is larger than a first number of operations,
and a storage medium for selecting a magnetic disk as the file to be stored when the file to be stored is the file with the size larger than the preset file size and the file writing operation times is larger than the second operation times,
and a flash memory is selected as a storage medium of the file to be stored when the file information to be stored is that the file size is not larger than the preset file size and the file reading operation times are larger than the first operation times,
and the flash memory is selected as the storage medium of the file to be stored under the condition that the file size of the file to be stored is not larger than the preset file size and the file writing operation times are larger than the second operation times.
When the file size is larger than the preset file size, the selection module 12 selects the magnetic disk as a storage medium, and can utilize a rotation mechanism of the magnetic disk to read and access the file, so that the jitter of a magnetic head can be reduced, and the I/O performance of the electronic device can be improved. If the file size is not larger than the preset file size, the magnetic disk is selected as the file to be stored, the jitter of the magnetic head is increased, and the I/O performance of the electronic equipment is reduced.
In this embodiment, the first operation frequency and the second operation frequency may be preset by an operator, or may be dynamically set by the electronic device according to the stored file type and the counted access amount of different types of files during the actual operation process.
The memory 13 is specifically configured to store the file to be stored in the storage block with the storage life longer than the preset life in the flash memory when the file to be stored information is the file size not larger than the preset file size and the file read operation frequency is larger than the first operation frequency, and to store the file to be stored in the storage block with the storage life shorter than the preset life in the flash memory when the file to be stored information is the file size not larger than the preset file size and the file write operation frequency is larger than the second operation frequency.
The storage life refers to the time when the storage block is used, and the storage life is counted and sequenced by a controller of the flash memory. And the storage blocks with the service lives longer than the preset service life are used for a longer time. And the memory blocks with the memory life shorter than the preset life are the memory blocks with shorter used time.
It should be noted that: the electronic device stores the file to be stored in the storage block with the storage life longer than the preset life so as to avoid increasing the erasing times of the storage block, increasing the flash memory loss and damaging the storage block and further damaging the flash memory under the condition that the reading and writing times of the file to be stored are increased.
In another case
The selection module 12 is specifically configured to select a storage medium other than a magnetic disk and a flash memory when the type of the file to be stored is a multimedia type or a document type.
Storage media other than magnetic disks and flash memories may include cloud disks, also referred to as network hard disks. The network hard disk is used as a network storage tool, the additional storage space of the electronic equipment is increased, and the network hard disk has a backup function, so that files to be stored in a multimedia type or a document type are stored in the network hard disk, the files to be stored can be automatically backed up, and the storage space of the electronic equipment can be saved.
The file storage apparatus described in this embodiment may be included in an electronic device having a plurality of storage media. In addition, when the method described in the present application is implemented by software, the method may be implemented as a function added to the electronic device, or a corresponding program may be written separately, and the present application does not limit the implementation manner of the method or the apparatus.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The foregoing describes in detail a file storage method, device and electronic device provided by the present application, and specific examples are applied in the present application to explain the principles and embodiments of the present application, and the description of the foregoing examples is only used to help understand the method and core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (9)
1. A file storage method is applied to an electronic device, the electronic device is provided with a plurality of storage media, and the method comprises the following steps:
receiving a file storage request, and acquiring a file to be stored;
selecting the storage medium corresponding to the file to be stored according to the information of the file to be stored, wherein the information of the file to be stored comprises: file size, file read operation times, file write operation times and file type;
storing the file to be stored in the storage medium, wherein the storage performance of the storage medium for storing the file to be stored is superior to that of other storage media for storing the file to be stored;
selecting the storage medium corresponding to the file to be stored according to the file information to be stored comprises: selecting a magnetic disk as a storage medium of the file to be stored when the file information to be stored is larger than a preset file size, and selecting a flash memory as the storage medium of the file to be stored when the file information to be stored is not larger than the preset file size, wherein the file information to be stored is not larger than the preset file size, and the file to be stored is stored in a storage block with the storage life shorter than the preset life in the flash memory when the file writing operation times are larger than a second operation times, so as to reduce the magnetic head jitter of the magnetic disk and increase the I/O performance of the electronic equipment; and when the information of the file to be stored is the file type, selecting a network hard disk as a storage medium of the file to be stored under the condition that the file to be stored is the multimedia type or the document type.
2. The method according to claim 1, wherein selecting the storage medium corresponding to the file to be stored according to the file information to be stored comprises:
selecting a magnetic disk as a storage medium of the file to be stored under the condition that the file size is larger than the preset file size and the file reading operation times are larger than the first operation times;
selecting a magnetic disk as a storage medium of the file to be stored under the condition that the file size is larger than the preset file size and the file writing operation times are larger than the second operation times;
selecting a flash memory as a storage medium of the file to be stored under the condition that the file size is not larger than the preset file size and the file reading operation times are larger than the first operation times;
and selecting a flash memory as a storage medium of the file to be stored under the condition that the file size is not larger than the preset file size and the file writing operation times are larger than the second operation times.
3. The method of claim 2, wherein storing the file to be stored in the storage medium comprises:
the file information to be stored is that the file size is not larger than the preset file size, and the file reading operation times are larger than the first operation times, the file to be stored is stored in a storage block with the storage life longer than the preset life in the flash memory;
and under the condition that the file size of the file to be stored is not larger than the preset file size and the file writing operation times are larger than the second operation times, storing the file to be stored in a storage block with the storage life being shorter than the preset life in the flash memory.
4. The method according to claim 1, wherein selecting the storage medium corresponding to the file to be stored according to the file information to be stored comprises:
and under the condition that the type of the file to be stored is a multimedia type or a document type, selecting storage media except a magnetic disk and a flash memory.
5. A file storage apparatus applied to an electronic device, the electronic device having a plurality of storage media, the apparatus comprising:
the receiving module is used for receiving a file storage request and acquiring a file to be stored;
a selecting module, configured to select the storage medium corresponding to the file to be stored according to the file information to be stored, where the file information to be stored includes: file size, file read operation times, file write operation times and file type;
the storage is used for storing the file to be stored in the storage medium, wherein the storage performance of the storage medium for storing the file to be stored is superior to that of other storage media for storing the file to be stored;
the selection module is specifically used for selecting a magnetic disk as a storage medium of the file to be stored when the file information to be stored is a file with a size larger than a preset file size, and selecting a flash memory as the storage medium of the file to be stored when the file information to be stored is a file with a size not larger than the preset file size, wherein the file information to be stored is a file with a size not larger than the preset file size, and the file writing operation times are larger than second operation times, the file to be stored is stored in a storage block with a storage life shorter than the preset life in the flash memory, so that the magnetic head jitter of the magnetic disk is reduced, and the I/O performance of the electronic equipment is improved; and when the information of the file to be stored is the file type, selecting a network hard disk as a storage medium of the file to be stored under the condition that the file to be stored is the multimedia type or the document type.
6. The apparatus according to claim 5, wherein the selecting module is specifically configured to select a disk as the storage medium of the file to be stored when the file information to be stored is that the file size is larger than a preset file size and the number of file read operations is larger than a first number of operations,
and a storage medium for selecting a magnetic disk as the file to be stored when the file to be stored is the file with the size larger than the preset file size and the file writing operation times is larger than the second operation times,
and a flash memory is selected as a storage medium of the file to be stored when the file information to be stored is that the file size is not larger than the preset file size and the file reading operation times are larger than the first operation times,
and the flash memory is selected as the storage medium of the file to be stored under the condition that the file size of the file to be stored is not larger than the preset file size and the file writing operation times are larger than the second operation times.
7. The apparatus according to claim 6, wherein the memory is specifically configured to store the file to be stored in a storage block with a storage lifetime longer than a preset lifetime in the flash memory if the file to be stored information is that the file size is not larger than the preset file size and the number of file read operations is larger than a first number of operations, and to store the file to be stored in a storage block with a storage lifetime shorter than the preset lifetime in the flash memory if the file to be stored information is that the file size is not larger than the preset file size and the number of file write operations is larger than a second number of operations.
8. The apparatus according to claim 5, wherein the selection module is specifically configured to select a storage medium other than a disk and a flash memory if the file type to be stored is a multimedia type or a document type.
9. An electronic device having a plurality of storage media, comprising the file storage apparatus of any one of claims 5 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210361303.7A CN103678143B (en) | 2012-09-25 | 2012-09-25 | File memory method, device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210361303.7A CN103678143B (en) | 2012-09-25 | 2012-09-25 | File memory method, device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103678143A CN103678143A (en) | 2014-03-26 |
CN103678143B true CN103678143B (en) | 2018-10-12 |
Family
ID=50315776
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210361303.7A Active CN103678143B (en) | 2012-09-25 | 2012-09-25 | File memory method, device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103678143B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104778016B (en) * | 2015-04-23 | 2018-06-22 | 深圳市美贝壳科技有限公司 | A kind of automatic storage controlling method under multiple storage devices environment |
CN105677742B (en) * | 2015-12-30 | 2019-07-05 | 深圳市瑞驰信息技术有限公司 | A kind of method and device of storage file |
CN105740425A (en) * | 2016-01-29 | 2016-07-06 | 宇龙计算机通信科技(深圳)有限公司 | File storage method and apparatus |
CN105787012B (en) * | 2016-02-23 | 2019-08-27 | 深圳市瑞驰信息技术有限公司 | A kind of method and storage system improving storage system processing small documents |
CN108197184A (en) * | 2017-12-25 | 2018-06-22 | 深圳天珑无线科技有限公司 | The method and file-storage device, storage device of file storage |
CN109445704A (en) * | 2018-10-29 | 2019-03-08 | 南京录信软件技术有限公司 | A method of it is comprehensive to store mass data using plurality of devices |
CN109739814B (en) * | 2019-01-03 | 2023-06-20 | 创新先进技术有限公司 | File storage and downloading method, device and equipment |
CN111159434B (en) * | 2019-12-29 | 2024-10-29 | 国科能创(北京)科技有限公司 | Method and system for storing multimedia files in internet storage cluster |
WO2021135820A1 (en) * | 2019-12-30 | 2021-07-08 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method for storage management of media content on electronic device, electronic device, and non-transitory computer-readable storage medium |
US11175844B1 (en) * | 2020-05-13 | 2021-11-16 | International Business Machines Corporation | Optimal placement of data structures in a hybrid memory based inference computing platform |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102473140A (en) * | 2009-07-17 | 2012-05-23 | 株式会社东芝 | Memory management device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090144347A1 (en) * | 2007-11-30 | 2009-06-04 | Boyd James A | Storage volume spanning with intelligent file placement and/or rearrangement |
CN101630332B (en) * | 2009-07-30 | 2012-07-04 | 成都市华为赛门铁克科技有限公司 | Data storage management method, data storage management device and data storage management system |
WO2011068699A1 (en) * | 2009-12-04 | 2011-06-09 | Marvell World Trade Ltd. | Virtualization of storage devices |
-
2012
- 2012-09-25 CN CN201210361303.7A patent/CN103678143B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102473140A (en) * | 2009-07-17 | 2012-05-23 | 株式会社东芝 | Memory management device |
Also Published As
Publication number | Publication date |
---|---|
CN103678143A (en) | 2014-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103678143B (en) | File memory method, device and electronic equipment | |
US11080143B2 (en) | Systems and processes for data backup and recovery | |
CN103218224B (en) | A kind of method improving memory space utilization rate and terminal | |
KR101357397B1 (en) | Method for tracking memory usages of a data processing system | |
US8947988B2 (en) | Efficient access to storage devices with usage bitmaps | |
CN102821111A (en) | Real-time synchronizing method for file cloud storage | |
CN109804359A (en) | For the system and method by write back data to storage equipment | |
CN110147203A (en) | A file management method, device, electronic device and storage medium | |
CN109710286A (en) | System upgrade method, apparatus, device and storage medium | |
US20180307684A1 (en) | Method and Device for Reading and Writing Video Data in NAS Device | |
CN109710454A (en) | A kind of cloud host snapshot method and device | |
US11157456B2 (en) | Replication of data in a distributed file system using an arbiter | |
CN103164492A (en) | File copying method between electronic devices and electronic devices | |
CN106933499B (en) | Method and device for improving performance of MLC flash memory system | |
CN106202262B (en) | Information processing method and electronic equipment | |
CN103678478A (en) | Information processing apparatus, information processing method, and program | |
KR20150139546A (en) | Removable storage device identity and configuration information | |
CN102354302B (en) | A kind of method of erasing disk and device | |
CN117130995A (en) | Data processing method, device, equipment and medium | |
CN116578410A (en) | Resource management method, device, computer equipment and storage medium | |
US10019318B1 (en) | Storage optimization of pre-allocated units of storage | |
CN108959517B (en) | File management method and device and electronic equipment | |
US8131928B2 (en) | Restoring striped volumes of data | |
CN110018985B (en) | Snapshot deleting method, device and system | |
KR20150057428A (en) | Metadata management apparatus and Method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |