CN103678143B - File memory method, device and electronic equipment - Google Patents

File memory method, device and electronic equipment Download PDF

Info

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
storage
storage medium
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
Application number
CN201210361303.7A
Other languages
Chinese (zh)
Other versions
CN103678143A (en
Inventor
孙清涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210361303.7A priority Critical patent/CN103678143B/en
Publication of CN103678143A publication Critical patent/CN103678143A/en
Application granted granted Critical
Publication of CN103678143B publication Critical patent/CN103678143B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

File memory method, device and electronic equipment
Technical field
This application involves file processing technology field, more particularly to a kind of file memory method, device and electronic equipment.
Background technology
With advances in technology, occurs different types of storage medium on the market at present, such as magnetic disk media, SSD (Solid State Disk, solid state disk)With cloud storage etc..This document is arbitrarily stored in by user when storing some file In one storage medium.
But different storage mediums, to different files, the performance of storage is different.Therefore it is badly in need of a kind of file storage side File can be stored in corresponding storage medium by method, which is better than in the storage performance of storage this document The storage performance of other storage mediums.
Invention content
Technical problems to be solved in this application are to provide a kind of file memory method, respectively right for file to be stored in In the storage medium answered, which is better than the storage performance of other storage mediums in the storage performance of storage this document.
Present invention also provides a kind of file storage device and electronic equipments, to ensure the reality of the above method in practice Existing and application.
One side based on the application provides a kind of file memory method, is applied to an electronic equipment, the electronic equipment With 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 file to be stored Storage performance store the storage performance of the file to be stored better than other storage mediums.
Preferably, according to the file to be stored information, the storage medium corresponding with the file to be stored is selected Including:
The file to be stored information is in the case that file size is more than default file size, to select disk as described in The storage medium of file to be stored;
The file to be stored information is in the case that file size is not more than default file size, to select flash memory as institute State the storage medium of file to be stored.
Preferably, according to the file to be stored information, the storage medium corresponding with the file to be stored is selected Including:
The file to be stored information is that file size is more than default file size, and file read operation number is more than first In the case of number of operations, select disk as the storage medium of the file to be stored;
The file to be stored information is that file size is more than default file size, and file write operation number is more than second In the case of number of operations, select disk as the storage medium of the file to be stored;
The file to be stored information is that file size is not more than default file size, and file read operation number is more than the In the case of one number of operations, select flash memory as the storage medium of the file to be stored;
The file to be stored information is that file size is not more than default file size, and file write operation number is more than the In the case of two number of operations, select flash memory as the storage medium of the file to be stored.
Preferably, the file to be stored is stored in the storage medium includes:
The file to be stored information is that file size is not more than default file size, and file read operation number is more than the In the case of one number of operations, the file to be stored is stored in the storage that storage life in the flash memory is more than the default service life In block;
The file to be stored information is that file size is not more than default file size, and file write operation number is more than the In the case of two number of operations, the file to be stored is stored in the storage that storage life in the flash memory is less than the default service life In block.
Preferably, according to the file to be stored information, the storage medium corresponding with the file to be stored is selected Including:
In the case that the file to be stored type is multiple media types or Doctype, selection except disk and flash memory it Outer storage medium.
Another aspect based on the application also provides a kind of file storage device, is applied to an electronic equipment, the electronics Equipment has multiple storage mediums, and described device includes:
Receiving module obtains file to be stored for receiving file storage request;
Selecting module, for according to the file to be stored information, select it is corresponding with the file to be stored described in deposit Storage media;
Memory, for the file to be stored to be stored in the storage medium, wherein the storage medium stores institute The storage performance for stating file to be stored stores the storage performance of the file to be stored better than other storage mediums.
Preferably, the selecting module is specifically used in the file to be stored information being that file size is more than default file In the case of size, select disk as the storage medium of the file to be stored, and for believing in the file to be stored Breath is in the case that file size is not more than default file size, to select flash memory as the storage medium of the file to be stored.
Preferably, the selecting module is specifically used in the file to be stored information being that file size is more than default file Size, and file read operation number selects disk depositing as the file to be stored more than in the case of the first number of operations Storage media,
And for being that file size is more than default file size, and file write operation in the file to be stored information In the case that number is more than the second number of operations, select disk as the storage medium of the file to be stored,
And for being that file size is not more than default file size, and file read operation in the file to be stored information In the case that number is more than the first number of operations, select flash memory as the storage medium of the file to be stored,
And for being that file size is not more than default file size, and file write operation in the file to be stored information In the case that number is more than the second number of operations, select flash memory as the storage medium of the file to be stored.
Preferably, the memory is specifically used in the file to be stored information being that file size is not more than default file Size, and the file to be stored is stored in the flash memory by file read operation number more than in the case of the first number of operations Middle storage life is more than in the memory block in default service life, and for being not more than for file size in the file to be stored information Default file size, and the file to be stored is stored in by file write operation number more than in the case of the second number of operations Storage life is less than in the memory block in default service life in the flash memory.
Preferably, the selecting module is specifically used in the file to be stored type being multiple media types or document class In the case of type, the storage medium in addition to disk and flash memory is selected.
Based on the application's in another aspect, also providing a kind of electronic equipment, the electronic equipment has multiple storage mediums, Including above-mentioned file storage device.
In this application, it after receiving file storage request, can select to wait depositing with described according to file to be stored information The corresponding storage medium of file is stored up, file to be stored is stored in the storage medium, wherein described in storage medium storage The storage performance of file to be stored stores the storage performance of the file to be stored better than other storage mediums.That is this Shen File can please be stored in corresponding storage medium, optimize storage performance.
Description of the drawings
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present application, for For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is a kind of flow chart of file memory method provided by the present application;
Fig. 2 is a kind of structural schematic diagram of file storage device provided by the present application.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
The application can be used in numerous general or special purpose computing device environment or configuration.Such as:Personal computer, service Device computer, handheld device or portable device, laptop device, multi-processor device including any of the above device or equipment Distributed computing environment etc..
Referring to Fig. 1, it illustrates a kind of flow chart of file memory method provided by the present application, set applied to an electronics It is standby, and there are the electronic equipment multiple storage mediums, this document storage method may comprise steps of:
Step 101:File storage request is received, file to be stored is obtained.
In the present embodiment, file storage request can be bundled in advance in " stickup " option, " pasted " when the user clicks When option, indicate that user needs to carry out storage operation to file, then file storage request is sent to the backstage behaviour of electronic equipment Make system.Background operating system can store the file name carried in request according to file, obtain file to be stored.
Step 102:According to the file to be stored information, the storage corresponding with the file to be stored is selected to be situated between Matter.
In file to be stored information difference, different types of storage medium can be selected.In the present embodiment, storage text Part information can be file size, file read operation number, file write operation number and file type etc..Wherein, file size It refer to the byte number that file to be stored includes;File read operation number refers to that user has carried out read operation to file to be stored Number;File write operation number refers to the number that user has carried out file to be stored write operation.
File size, file read operation number and file write operation number can pass through meter in above-mentioned file to be stored information Number device obtains, and is such as readily accessible by the user once in file to be stored, the numerical value of record is added 1 by counter.File type can then lead to The parsing to the title suffix of file to be stored is crossed to judge file type, such as when title suffix is .rmvb, then file type is Multiple media types.
In the present embodiment, for the difference of file to be stored information, the what type of storage medium of selection is illustrated.
A kind of situation
When file to be stored information is file size, specific choice mode is as follows:It is in the file to be stored information In the case that file size is more than default file size, show that the byte number included by file to be stored is more, the file to be stored For big file, select disk as the storage medium of the file to be stored at this time;It is file in the file to be stored information In the case that size is not more than default file size, show that the byte number included by file to be stored is few, which is Small documents select flash memory as the storage medium of the file to be stored at this time.
In the case where file to be stored information is that file size is more than default file size, disk is chosen as to be stored The storage medium of file is because the file in disk is when by read access, and disk can be carried out using the pivoting mechanism of itself The read access of file, it is possible to reduce magnetic head is shaken, and the I/O of electronic equipment is increased(Input/Output, input/output port)Property Energy.And if file size be not more than default file size in the case of, choose disk as file to be stored, magnetic head can be increased Shake, reduces the I/O performances of electronic equipment.
Wherein, default file size can be preset by operating personnel, naturally it is also possible to by electronic equipment in practical fortune During row, it is set dynamically according to the different types of file existing file size of the file type and statistics stored default File size.
Another situation
It is that file size and the combination of file read operation number and file size and file write behaviour in file to be stored information When making number combination, specific choice mode is as follows:
It is that file size is more than default file size, and file read operation number is more than the in the file to be stored information In the case of one number of operations, select disk as the storage medium of the file to be stored;In the file to be stored information It is more than default file size for file size, and file write operation number selects disk more than in the case of the second number of operations Storage medium as the file to be stored.
It is that file size is not more than default file size, and file read operation number is more than in the file to be stored information In the case of first number of operations, select flash memory as the storage medium of the file to be stored;Believe in the file to be stored Breath is that file size is not more than default file size, and file write operation number is selected more than in the case of the second number of operations Storage medium of the flash memory as the file to be stored.
Electronic equipment chooses disk as storage medium, can utilize magnetic when file size is more than default file size The pivoting mechanism of disk carries out the read access of file, it is possible to reduce magnetic head is shaken, and the I/O performances of electronic equipment are increased.And if in text When part size is not more than default file size, disk is chosen as file to be stored, can increase magnetic head shake, reduce electronic equipment I/O performances.
In the present embodiment, the first number of operations and the second number of operations can be preset by operating personnel, also may be used certainly With by electronic equipment in actual moving process, according to the different types of file access of the file type and statistics stored Amount the first number of operations of dynamic setting and the second number of operations.
Another situation
When file to be stored information is file type, specific choice mode is as follows:It is in the file to be stored type In the case of multiple media types or Doctype, the storage medium in addition to disk and flash memory is selected.
Wherein, the storage medium in addition to disk and flash memory may include cloud disk, also referred to as network hard disc.The network hard disc As network storage tool, increase the additional memory space of electronic equipment, and the network hard disc has backup functionality, therefore will In the storage to network hard disc of the file to be stored of multiple media types or Doctype, file to be stored can be carried out automatic standby Part, and the memory space of electronic equipment itself can be saved.
Step 103:The file to be stored is stored in the storage medium, is wherein waited for described in storage medium storage The storage performance of storage file stores the storage performance of the file to be stored better than other storage mediums.
In the present embodiment, flash memory includes multiple memory blocks.When file to be stored information difference, file to be stored exists Storage in flash memory is different.
Such as it is not more than default file size, and file read operation number in the file to be stored information for file size In the case of more than the first number of operations, the file to be stored is stored in storage life in the flash memory and is more than the default service life Memory block in.
Further, it is that file size is not more than default file size, and file is write in the file to be stored information In the case that number of operations is more than the second number of operations, the file to be stored is stored in storage life in the flash memory and is less than In the memory block in default service life.
Wherein, storage life refers to the time that memory block has been used, and is counted side by side by the controller of flash memory itself Sequence.The memory block that storage life is more than the default service life is the time longer memory block used.And storage life is less than default The memory block in service life is time for being used shorter memory block.
It should be noted that:Why file to be stored is stored in storage life by electronic equipment is more than depositing for default service life Store up block in, be in order to avoid the file to be stored by read-write number it is increased in the case of, increase the erasable number of memory block, increase Flash memory is lost and damage memory block, and then defective flash memory.
The wherein default service life can be preset by operating personnel, naturally it is also possible to by electronic equipment in actual moving process In, the service life is preset according to the file type dynamic setting stored.The default service life can ensure the erasable of the memory block chosen Number is less than the erasable number of other memory blocks.
Can be according to file to be stored information after receiving file storage request using above-mentioned technical proposal, selection and institute The corresponding storage medium of file to be stored is stated, file to be stored is stored in the storage medium, wherein the storage medium is deposited The storage performance for storing up the file to be stored stores the storage performance of the file to be stored better than other storage mediums.Namely It says that file can be stored in corresponding storage medium by the application, optimizes storage performance.
With above method embodiment, the application also provides a kind of file storage device, is applied to an electronic equipment, the electricity There are sub- equipment multiple storage mediums, structural schematic diagram to please refer to shown in Fig. 2, may include:Receiving module 11, selecting module 12 and memory 13.Wherein,
Receiving module 11 obtains file to be stored for receiving file storage request.
In the present embodiment, file storage request can be bundled in advance in " stickup " option, " pasted " when the user clicks When option, indicate that user needs to carry out storage operation to file, then file storage request is sent to the reception mould of electronic equipment Block 11.Receiving module 11 can store the file name carried in request according to file, obtain file to be stored.
Selecting module 12, for according to the file to be stored information, selecting corresponding with the file to be stored described Storage medium.
Memory 13, for the file to be stored to be stored in the storage medium, wherein the storage medium stores The storage performance of the file to be stored stores the storage performance of the file to be stored better than other storage mediums.
In file to be stored information difference, different types of storage medium can be selected.In the present embodiment, storage text Part information can be file size, file read operation number, file write operation number and file type etc..Wherein, file size It refer to the number that file to be stored is readily accessible by the user.
File size, file read operation number and file write operation number can pass through meter in above-mentioned file to be stored information Number device obtains, and is such as readily accessible by the user once in file to be stored, the numerical value of record is added 1 by counter.File type can then lead to The parsing to the title suffix of file to be stored is crossed to judge file type, such as when title suffix is .rmvb, then file type is Multiple media types.It is illustrated below in file to be stored information and a storage medium selection point situation.
A kind of situation
The selecting module 12 is specifically used in the file to be stored information being that file size is more than default file size In the case of, select disk as the storage medium of the file to be stored, and for being in the file to be stored information In the case that file size is not more than default file size, select flash memory as the storage medium of the file to be stored.
In the case where file to be stored information is that file size is more than default file size, selecting module 12 chooses disk It is because the file in disk is when by read access, disk can utilize the rotation of itself as the storage medium of file to be stored Favourable turn system carries out the read access of file, it is possible to reduce magnetic head is shaken, and the I/O of electronic equipment is increased(Input/Output, input are defeated Exit port)Performance.And if in the case where file size is not more than default file size, choose disk as file to be stored, Magnetic head shake can be increased, reduce the I/O performances of electronic equipment.
Wherein, default file size can be preset by operating personnel, naturally it is also possible to by electronic equipment in practical fortune During row, it is set dynamically according to the different types of file existing file size of the file type and statistics stored default File size.
Another situation
The selecting module 12 is specifically used in the file to be stored information being that file size is more than default file size, And in the case that file read operation number is more than the first number of operations, disk is selected to be situated between as the storage of the file to be stored Matter,
And for being that file size is more than default file size, and file write operation in the file to be stored information In the case that number is more than the second number of operations, select disk as the storage medium of the file to be stored,
And for being that file size is not more than default file size, and file read operation in the file to be stored information In the case that number is more than the first number of operations, select flash memory as the storage medium of the file to be stored,
And for being that file size is not more than default file size, and file write operation in the file to be stored information In the case that number is more than the second number of operations, select flash memory as the storage medium of the file to be stored.
Selecting module 12 is chosen disk as storage medium, can be utilized when file size is more than default file size The pivoting mechanism of disk carries out the read access of file, it is possible to reduce magnetic head is shaken, and the I/O performances of electronic equipment are increased.And if When file size is not more than default file size, disk is chosen as file to be stored, can increase magnetic head shake, reduce electronics and set Standby I/O performances.
In the present embodiment, the first number of operations and the second number of operations can be preset by operating personnel, also may be used certainly With by electronic equipment in actual moving process, according to the different types of file access of the file type and statistics stored Amount the first number of operations of dynamic setting and the second number of operations.
The memory 13 is specifically used in the file to be stored information being that file size is not more than default file size, And in the case that file read operation number is more than the first number of operations, the file to be stored is stored in the flash memory and is stored Service life is more than in the memory block in default service life, and for being that file size is not more than default text in the file to be stored information Part size, and the file to be stored is stored in the sudden strain of a muscle by file write operation number more than in the case of the second number of operations Storage life is deposited to be less than in the memory block in default service life.
Wherein, storage life refers to the time that memory block has been used, and is counted side by side by the controller of flash memory itself Sequence.The memory block that storage life is more than the default service life is the time longer memory block used.And storage life is less than default The memory block in service life is time for being used shorter memory block.
It should be noted that:Why file to be stored is stored in storage life by electronic equipment is more than depositing for default service life Store up block in, be in order to avoid the file to be stored by read-write number it is increased in the case of, increase the erasable number of memory block, increase Flash memory is lost and damage memory block, and then defective flash memory.
Another situation
The selecting module 12 is specifically used in the file to be stored type being multiple media types or Doctype In the case of, select the storage medium in addition to disk and flash memory.
Wherein, the storage medium in addition to disk and flash memory may include cloud disk, also referred to as network hard disc.The network hard disc As network storage tool, increase the additional memory space of electronic equipment, and the network hard disc has backup functionality, therefore will In the storage to network hard disc of the file to be stored of multiple media types or Doctype, file to be stored can be carried out automatic standby Part, and the memory space of electronic equipment itself can be saved.
File storage device described in the present embodiment may include that in the electronic device, which has multiple storages Medium.Certain this document storage device can also be connected separately as an entity with electronic equipment, in addition, it is necessary to explanation It is that, when method described herein uses software realization, the function that can be increased newly as electronic equipment can also be independent Corresponding program is write, the application does not limit the realization method of the method or device.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment weight Point explanation is all difference from other examples, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so fairly simple, the related place ginseng of description See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only that A little elements, but also include other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit is realized can in the same or multiple software and or hardware when application.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can It is realized by the mode of software plus required general hardware platform.Based on this understanding, the technical solution essence of the application On in other words the part that contributes to existing technology can be expressed in the form of software products, the computer software product It can be stored in a storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are used so that a computer equipment (Can be personal computer, server or the network equipment etc.)Execute the certain of each embodiment of the application or embodiment Method described in part.
A kind of file memory method, device and electronic equipment provided herein are described in detail above, this Specific case is applied in text, and the principle and implementation of this application are described, the explanation of above example is only intended to Help understands the present processes and its core concept;Meanwhile for those of ordinary skill in the art, the think of according to the application Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair The limitation of the application.

Claims (9)

1. a kind of file memory method, is applied to an electronic equipment, there are the electronic equipment multiple storage mediums, feature to exist In, 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, it is described to be stored Fileinfo includes:File size, file read operation number, file write operation number and file type;
The file to be stored is stored in the storage medium, wherein the storage medium stores depositing for the file to be stored Storage performance stores the storage performance of the file to be stored better than other storage mediums;
According to the file to be stored information, the selection storage medium corresponding with the file to be stored includes:It is described to wait for Storage file information is in the case that file size is more than default file size, to select disk depositing as the file to be stored Storage media and the file to be stored information are in the case that file size is not more than default file size, flash memory to be selected to make For the storage medium of the file to be stored, wherein the file to be stored information is that file size is big no more than default file It is small, and the file to be stored is stored in the flash memory by file write operation number more than in the case of the second number of operations Storage life is less than in the memory block in default service life, to reduce the magnetic head shake of disk, increases the I/O performances of electronic equipment; It is multiple media types or Doctype in the file to be stored type when the file to be stored information is file type In the case of, select network hard disc as the storage medium of the file to be stored.
2. according to the method described in claim 1, it is characterized in that, according to the file to be stored information, selection is waited for described The corresponding storage medium of storage file includes:
The file to be stored information is that file size is more than default file size, and file read operation number is more than the first operation In the case of number, select disk as the storage medium of the file to be stored;
The file to be stored information is that file size is more than default file size, and file write operation number is more than the second operation In the case of number, select disk as the storage medium of the file to be stored;
The file to be stored information is that file size is not more than default file size, and file read operation number is more than the first behaviour In the case of making number, select flash memory as the storage medium of the file to be stored;
The file to be stored information is that file size is not more than default file size, and file write operation number is more than the second behaviour In the case of making number, select flash memory as the storage medium of the file to be stored.
3. according to the method described in claim 2, it is characterized in that, the file to be stored is stored in the storage medium Including:
The file to be stored information is that file size is not more than default file size, and file read operation number is more than the first behaviour In the case of making number, the file to be stored is stored in the memory block that storage life in the flash memory is more than the default service life In;
The file to be stored information is that file size is not more than default file size, and file write operation number is more than the second behaviour In the case of making number, the file to be stored is stored in the memory block that storage life in the flash memory is less than the default service life In.
4. according to the method described in claim 1, it is characterized in that, according to the file to be stored information, selection is waited for described The corresponding storage medium of storage file includes:
In the case that the file to be stored type is multiple media types or Doctype, select in addition to disk and flash memory Storage medium.
5. a kind of file storage device, is applied to an electronic equipment, there are the electronic equipment multiple storage mediums, feature to exist In described device includes:
Receiving module obtains file to be stored for receiving file storage request;
Selecting module, for according to the file to be stored information, the storage corresponding with the file to be stored being selected to be situated between Matter, the file to be stored information include:File size, file read operation number, file write operation number and file type;
Memory wherein waits for described in storage medium storage for the file to be stored to be stored in the storage medium The storage performance of storage file stores the storage performance of the file to be stored better than other storage mediums;
The selecting module is specifically used in the file to be stored information being the case where file size is more than default file size Under, select disk as the storage medium of the file to be stored, and for being that file is big in the file to be stored information It is small no more than in the case of default file size, select flash memory as the storage medium of the file to be stored, wherein described to wait for Storage file information is that file size is not more than default file size, and file write operation number is more than the feelings of the second number of operations Under condition, the file to be stored is stored in storage life in the flash memory and is less than in the memory block in default service life, to reduce The magnetic head of disk is shaken, and the I/O performances of electronic equipment are increased;When the file to be stored information is file type, described In the case that file to be stored type is multiple media types or Doctype, select network hard disc as the file to be stored Storage medium.
6. device according to claim 5, which is characterized in that the selecting module is specifically used in the file to be stored Information is that file size is more than default file size, and file read operation number is selected more than in the case of the first number of operations Storage medium of the disk as the file to be stored,
And for being that file size is more than default file size, and file write operation number is big in the file to be stored information In the case of the second number of operations, select disk as the storage medium of the file to be stored,
And for being that file size is not more than default file size, and file read operation number in the file to be stored information In the case of more than the first number of operations, select flash memory as the storage medium of the file to be stored,
And for being that file size is not more than default file size, and file write operation number in the file to be stored information In the case of more than the second number of operations, select flash memory as the storage medium of the file to be stored.
7. device according to claim 6, which is characterized in that the memory is specifically used for believing in the file to be stored In the case that breath is not more than default file size for file size, and file read operation number is more than the first number of operations, by institute File to be stored is stated to be stored in the flash memory in memory block of the storage life more than the default service life, and for waiting depositing described The case where storage fileinfo is not more than default file size for file size, and file write operation number is more than the second number of operations Under, the file to be stored is stored in storage life in the flash memory and is less than in the memory block in default service life.
8. device according to claim 5, which is characterized in that the selecting module is specifically used in the file to be stored In the case that type is multiple media types or Doctype, the storage medium in addition to disk and flash memory is selected.
9. a kind of electronic equipment, the electronic equipment has multiple storage mediums, which is characterized in that including such as claim 5 to 8 File storage device described in any one.
CN201210361303.7A 2012-09-25 2012-09-25 File memory method, device and electronic equipment Active CN103678143B (en)

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)

* Cited by examiner, † Cited by third party
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
CN111159434A (en) * 2019-12-29 2020-05-15 赵娜 Method and system for storing multimedia file 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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102473140A (en) * 2009-07-17 2012-05-23 株式会社东芝 Memory management device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
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
US8769241B2 (en) * 2009-12-04 2014-07-01 Marvell World Trade Ltd. Virtualization of non-volatile memory and hard disk drive as a single logical drive

Patent Citations (1)

* Cited by examiner, † Cited by third party
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
US8966466B2 (en) System for performing firmware updates on a number of drives in an array with minimum interruption to drive I/O operations
US9569457B2 (en) Data processing method and apparatus for distributed systems
US9026863B2 (en) Replacement of storage responsive to remaining life parameter
CN102521072B (en) Virtual tape library equipment and data recovery method
CN103473272A (en) Data processing method, device and system
US9614678B2 (en) System and method for extracting device uniqueness to assign a license to the device
US8832218B2 (en) Determining priorities for cached objects to order the transfer of modifications of cached objects based on measured network bandwidth
US9063847B2 (en) System and method for managing space allocation within a file system
CN102821111A (en) Real-time synchronizing method for file cloud storage
CN103401902A (en) Portable cloud storage system and method
EP3273664B1 (en) Data processing method and device, server, and controller
CN103067480A (en) Synchronized method and system of network disk
US20120323821A1 (en) Methods for billing for data storage in a tiered data storage system
CN101827121A (en) Method, service end and system for creating files in RAID (Redundant Array of Independent Disk)
US9535619B2 (en) Enhanced reconstruction in an array of information storage devices by physical disk reduction without losing data
CN107589916A (en) A kind of entangling based on correcting and eleting codes deletes the creation method and relevant apparatus in pond
CN110362384A (en) A kind of resource allocation methods, device, electronic equipment and storage medium
CN102866954A (en) Method and device for allocating internal memory
CN109324874A (en) A kind of virutal machine memory snapshot imports the method, system and device of block device
CN109388614A (en) A kind of method, system and the equipment of catalogue file number quota
US20150212902A1 (en) Network attached storage device with automatically configured distributed file system and fast access from local computer client
CN109196458A (en) Storage system active volume calculation method and device
CN102393838B (en) Data processing method and device, PCI-E (peripheral component interface-express) bus system, and server
CN107644020B (en) Data storage and calling method and device

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