CN107357932A - A kind of file memory method and device - Google Patents

A kind of file memory method and device Download PDF

Info

Publication number
CN107357932A
CN107357932A CN201710636984.6A CN201710636984A CN107357932A CN 107357932 A CN107357932 A CN 107357932A CN 201710636984 A CN201710636984 A CN 201710636984A CN 107357932 A CN107357932 A CN 107357932A
Authority
CN
China
Prior art keywords
file
stored
value
information
resource pool
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.)
Granted
Application number
CN201710636984.6A
Other languages
Chinese (zh)
Other versions
CN107357932B (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.)
Cloud City (beijing) Data Technology Co Ltd
Original Assignee
Cloud City (beijing) Data Technology Co 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 Cloud City (beijing) Data Technology Co Ltd filed Critical Cloud City (beijing) Data Technology Co Ltd
Priority to CN201710636984.6A priority Critical patent/CN107357932B/en
Publication of CN107357932A publication Critical patent/CN107357932A/en
Application granted granted Critical
Publication of CN107357932B publication Critical patent/CN107357932B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/122File system administration, e.g. details of archiving or snapshots using management policies

Abstract

The present invention, which provides a kind of file memory method and device, this method, to be included:Obtain value information corresponding to file to be stored and the file to be stored of user's submission;According to file to be stored and value information, the first value parameter corresponding to file to be stored is determined;According to value information and the first value parameter, the storage mode of file to be stored is selected, stores file to be stored.The present invention obtains the value information that user submits when store file to be stored, and intelligent evaluation goes out the first value parameter of file to be stored, and the value information of synthetic user submission and the first value parameter store file to be stored.The storage management of file to be stored is instructed using the value of file to be stored.The file different to significance level, takes different storage strategies, and more important file is stored in the higher memory resource pool of more quick priority.Help user to preserve the intangible asset of file value cognition, file value is applied to data storage management, maximizes the cost performance of retained data.

Description

A kind of file memory method and device
Technical field
The present invention relates to technical field of data storage, in particular to a kind of file memory method and device.
Background technology
At present, user often uses many files in work and life, in order to reuse these files, needs By the storage of these files on a storage device, and by storage device to these files data management is carried out.
Currently, a kind of file memory method in correlation technique be present, including:User submits store instruction to storage device, The store instruction carries file to be stored.After storage device detects the store instruction that user submits, the store instruction is carried File to be stored be stored in storage region.
Above-mentioned correlation technique all takes identical storage mode to store all files to be stored, but for user Different file to be stored significance level is different, can not be embodied between different files to be stored using identical storage mode Difference.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of file memory method and device, to solve correlation Problems with existing for technology:Correlation technique all takes identical storage mode to store all files to be stored, but right Different file to be stored significance levels is different for user, and different texts to be stored can not be embodied using identical storage mode Difference between part.
In a first aspect, the embodiments of the invention provide a kind of file memory method, methods described includes:
Obtain value information corresponding to file to be stored and the file to be stored of user's submission;
According to the file to be stored and the value information, the first value ginseng corresponding to the file to be stored is determined Number;
According to the value information and first value parameter, the storage mode of the file to be stored is selected, is stored The file to be stored.
With reference in a first aspect, the embodiments of the invention provide the possible implementation of the first of above-mentioned first aspect, its In, the value information includes the second value parameter, value letter corresponding to the file to be stored for obtaining user and submitting Breath, including:
Receive second value parameter corresponding to the file to be stored of user's input;Or
Significance level description information corresponding to receiving the file to be stored that user submits, is retouched according to the significance level State information and determine the second value parameter corresponding to the file to be stored.
With reference in a first aspect, the embodiments of the invention provide the possible implementation of second of above-mentioned first aspect, its In, it is described according to the file to be stored and the value information, the first value parameter corresponding to the file to be stored is determined, Including:
Obtain usage record corresponding to the file to be stored in preset duration;
According to the usage record and the preset duration, average access times corresponding to the file to be stored are calculated;
According to the average access times and the value information, the first value ginseng corresponding to the file to be stored is determined Number.
With reference in a first aspect, the embodiments of the invention provide the possible implementation of the third of above-mentioned first aspect, its In, it is described according to the file to be stored and the value information, the first value parameter corresponding to the file to be stored is determined, Including:
Text analyzing is carried out to the file to be stored, extracts keyword corresponding to the file to be stored and the key The occurrence number of word;
Obtain the job interest description information of the user;
According to the keyword, the occurrence number of the keyword and the job interest description information, treated described in acquisition The degree of correlation between storage file and the job interest description information;
According to the degree of correlation, the first value parameter corresponding to the file to be stored is determined.
With reference in a first aspect, the embodiments of the invention provide the possible implementation of the 4th of above-mentioned first aspect kind, its In, it is described according to the value information and first value parameter, the storage mode of the file to be stored is selected, stores institute File to be stored is stated, including:
The second value parameter included according to first value parameter and the value information, calculate the text to be stored Management guidance value corresponding to part;
According to the management guidance value, the first memory resource pool corresponding to the file to be stored is determined;
By file to be stored storage into first memory resource pool.
With reference to the 4th kind of possible implementation of first aspect, the embodiments of the invention provide the of above-mentioned first aspect Five kinds of possible implementations, wherein, it is described to store the file to be stored into first memory resource pool, including:
Obtain the remaining memory capacity of first memory resource pool;
Judge whether the remaining memory capacity is more than or equal to the data volume of the file to be stored;
If it is, directly by file to be stored storage into first memory resource pool;
If it is not, then the management guidance value of each file stored in first memory resource pool is obtained, according to institute State each file management guidance value and the file to be stored corresponding to management guidance value store the file to be stored.
With reference to the 5th kind of possible implementation of first aspect, the embodiments of the invention provide the of above-mentioned first aspect Six kinds of possible implementations, wherein, it is described corresponding according to the management guidance value of each file and the file to be stored Management guidance value store the file to be stored, including:
Determine the second memory resource pool of the low one-level of priority of the first memory resource pool described in priority ratio;
If management guidance value corresponding to the file to be stored is less than the management guidance value of each file, or, pipe The data volume sum that reason standard is less than the All Files of the management guidance value of the file to be stored is less than the text to be stored The data volume of part, then by file to be stored storage into second memory resource pool;
If the data volume sum that management guidance value is less than the All Files of the management guidance value of the file to be stored is more than Or the data volume equal to the file to be stored, then successively by text of the management guidance value less than the management guidance value of file to be stored Part is stored into second memory resource pool, until the remaining memory capacity is more than or equal to the number of the file to be stored During according to amount, the file to be stored is stored in first memory resource pool.
Second aspect, the embodiments of the invention provide a kind of file storage device, described device includes:
Acquisition module, for obtaining value information corresponding to the file to be stored of file to be stored and user's submission;
Determining module, for according to the file to be stored and the value information, determining that the file to be stored is corresponding The first value parameter;
Memory module, for according to the value information and first value parameter, selecting the file to be stored Storage mode, store the file to be stored.
With reference to second aspect, the embodiments of the invention provide the possible implementation of the first of above-mentioned second aspect, its In, the value information includes the second value parameter, the acquisition module, for receiving the file to be stored of user's input Corresponding second value parameter;Or significance level corresponding to the file to be stored submitted for receiving user is retouched Information is stated, the second value parameter according to corresponding to the significance level description information determines the file to be stored.
With reference to second aspect, the embodiments of the invention provide the possible implementation of second of above-mentioned second aspect, its In, the determining module includes:
Acquiring unit, for obtaining usage record corresponding to the file to be stored in preset duration;
Computing unit, for according to the usage record and the preset duration, calculating corresponding to the file to be stored Average access times;
Determining unit, for according to the average access times and the value information, determining the file to be stored pair The first value parameter answered.
In method and device provided in an embodiment of the present invention, file to be stored and the file to be stored of user's submission are obtained Corresponding value information;According to file to be stored and value information, the first value parameter corresponding to file to be stored is determined;According to Value information and the first value parameter, the storage mode of file to be stored is selected, store file to be stored.The present invention treats in storage During storage file, the value information of user's submission is obtained, and intelligent evaluation goes out the first value parameter of file to be stored, it is comprehensive The value information of user's submission stores file to be stored with the first value parameter of assessment.Using the value of file to be stored come Instruct the storage management of file to be stored.The file different to significance level, take different storage strategies, more important file It is stored in the higher memory resource pool of more quick more reliable priority.User is helped to preserve the invisible money of file value cognition Production, file value is applied to data storage management, maximizes the cost performance of retained data.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by embodiment it is required use it is attached Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be not construed as pair The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 shows a kind of flow chart for file memory method that the embodiment of the present invention 1 is provided;
Fig. 2 shows a kind of schematic diagram for value inputting interface that the embodiment of the present invention 1 is provided;
Fig. 3 shows the schematic diagram for another value inputting interface that the embodiment of the present invention 1 is provided;
Fig. 4 shows a kind of structural representation for file storage device that the embodiment of the present invention 2 is provided.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention Middle accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only It is part of the embodiment of the present invention, rather than whole embodiments.The present invention being generally described and illustrated herein in the accompanying drawings is real Applying the component of example can be configured to arrange and design with a variety of.Therefore, it is of the invention to what is provided in the accompanying drawings below The detailed description of embodiment is not intended to limit the scope of claimed invention, but is merely representative of the selected reality of the present invention Apply example.Based on embodiments of the invention, institute that those skilled in the art are obtained on the premise of creative work is not made There is other embodiment, belong to the scope of protection of the invention.
All take identical storage mode to store all files to be stored in view of correlation technique, will need to be deposited Storage file is stored in identical memory space, but different file to be stored significance levels for user is different, using phase Same storage mode can not embody the difference between different files to be stored.Based on this, the embodiments of the invention provide one kind File memory method and device, are described below by embodiment.
Embodiment 1
The embodiments of the invention provide a kind of file memory method.The executive agent of the embodiment of the present invention is terminal, the end End is connected with multiple memory resource pools, and memory resource pool can be SSD (Solid State Drives, solid state hard disc), local RAID (Redundant Arrays of Independent Disks, disk array), mechanical hard disk, different QoS (Quality Of Service, service quality) rank private clound or public cloud etc..The quick of data is accessed in this multiple memory resource pool Degree is different, and such as SSD and local RAID accesses data relatively fast, and mechanical hard disk and public cloud access data want slow one A bit.The embodiment of the present invention according to the access quick degree of data be not all this each memory resource pool be provided with it is different preferential Level.The embodiment of the present invention is different according to the significance level of file in storage file, and file is stored into depositing to different priorities Store up in resource pool, the value of file is applied to data storage management, the cost performance that file stores is reached maximization.
Referring to Fig. 1, this method specifically includes following steps:
Step 101:Obtain value information corresponding to file to be stored and the file to be stored of user's submission.
Above-mentioned value information includes the second value parameter.Second value parameter is the weight of user-defined file to be stored Want degree.When user needs to store file to be stored, user clicks on store button corresponding to file to be stored and submitted to terminal Store instruction, terminal obtain file to be stored after receiving the store instruction.
The file to be stored that the embodiment of the present invention is submitted by following first or second way acquisition user simultaneously is corresponding Value information, specifically include:
First, receive the second value parameter corresponding to the file to be stored of user's input.
The embodiment of the present invention is provided with the span of the second value parameter, and user can be self-defined in the span Second value parameter of file to be stored.Terminal also shows value input as shown in Figure 2 while file to be stored is obtained Interface, the value inputting interface include value scope configured information, value input frame and ACK button.Wherein, value scope refers to Show information be used for indicate the second value parameter span, such as be worth scope configured information can be for " the second value parameter Span is 1-10, and numeral is bigger, and expression file is more important ".
User inputs the second value parameter corresponding to file to be stored in the value input frame, and clicks on ACK button. When terminal detects the click event of ACK button, the second value parameter of user's input is obtained from value input frame.
Second, significance level description information corresponding to the file to be stored that reception user submits, described according to significance level Information determines the second value parameter corresponding to file to be stored.
Above-mentioned significance level description information can be " inessential ", " general ", " important ", " extremely important " etc..The present invention Embodiment pre-sets the second value parameter corresponding to different significance level description informations in terminal, and such as " inessential " is right The second value parameter answered is 0, and the second value parameter corresponding to " general " is 5, and the second value parameter corresponding to " important " is 8, Second value parameter corresponding to " extremely important " is 10.
Terminal shows value inputting interface as shown in Figure 3 while file to be stored is obtained, the value inputting interface Including drop-down list and ACK button, the drop-down list includes multiple significance level description informations.User is from the drop-down list One significance level description information for meeting file to be stored of middle selection, then clicks on ACK button.Terminal detect confirmation by During the click event of button, the significance level description information of user's selection is obtained from the drop-down list, is retouched according to the significance level State information, the second value parameter corresponding to acquisition.
Because the file user for having only is commonly used within a period of time, during this period of time this document importance is very Height, the importance of this document is not just high after having spent this time.So in the embodiment of the present invention corresponding to file to be stored Value information can also include the value period in addition to including above-mentioned second value parameter.The value period treats for expression The period that second value parameter corresponding to storage file comes into force.
After getting file to be stored and its corresponding value information by the operation of this step, following steps 102 are utilized The automatic importance for assessing file to be stored of operation.
Step 102:According to file to be stored and value information, the first value parameter corresponding to file to be stored is determined.
In embodiments of the present invention, the usage record of each file of terminal maintenance, usage record include the use time of file Number and the usage time used every time.User can embody the importance of file using the frequency of file to a certain extent, Therefore terminal can combine the frequency of use of file to be stored and assess the importance of file to be stored, specifically include:
Obtain usage record corresponding to file to be stored in preset duration;According to the usage record and preset duration, calculate Average access times corresponding to file to be stored;According to the value information corresponding to access times and file to be stored that is averaged, really Determine the first value parameter corresponding to file to be stored.
Above-mentioned preset duration can be one hour, one day, one week or one month etc..Get text to be stored in preset duration After the usage record of part, obtain preset duration in user use the file to be stored access times, calculate the access times with Ratio between preset duration, obtain average access times corresponding to file to be stored.The embodiment of the present invention is advance in the terminal There is provided significant in value corresponding to average access times.According to the above-mentioned average access times calculated, corresponding weight is determined Want numerical value.Then the second value parameter that the value information according to corresponding to the significant in value and file to be stored includes, by adding Weight average calculates the first value parameter corresponding to file to be stored.
In addition to importance of the frequency of use of above-mentioned combination file to be stored to assess file to be stored, it can also pass through Judge file to be stored content whether work to user or interest is related assesses file importance, specifically include:
Text analyzing is carried out to file to be stored, that extracts keyword and keyword corresponding to file to be stored goes out occurrence Number;Obtain the job interest description information of user;Retouched according to the job interest of the keyword, the occurrence number of keyword and user Information is stated, obtains the degree of correlation between file to be stored and the job interest description information;According to the degree of correlation, determine to be stored First value parameter corresponding to file.
The job interest description information of user can be prestored in terminal, can also interim pop-up dialogue box, make user The input service interesting measure information in the dialog box.Job interest description information can include the position title of user, work Responsibility, hobby description etc..
Terminal-pair file to be stored carries out word segmentation processing, and the most preceding present count of occurrence number is extracted from file to be stored Mesh keyword, and record the occurrence number of each keyword of extraction.Then the keyword of extraction and the work of user are calculated The degree of correlation between interesting measure information, the occurrence number of keyword is bigger, and the degree of correlation being calculated is bigger.The present invention is implemented Example pre-sets the corresponding relation of the different degrees of correlation and the first value parameter in the terminal.Phase is calculated through the above way After Guan Du, from the degree of correlation the first value parameter corresponding with acquisition in the corresponding relation of the first value parameter.
Step 103:According to the value information and the first value parameter, the storage mode of file to be stored is selected, storage is treated Storage file.
The value information of the file to be stored of user's submission is got, and is estimated automatically first corresponding to file to be stored After value parameter, the second value parameter for being included according to value information corresponding to the first value parameter and file to be stored, calculate Management guidance value corresponding to file to be stored;According to the management guidance value, the first storage resource corresponding to file to be stored is determined Pond;By file to be stored storage into the first memory resource pool.
When calculating management guidance value corresponding to file to be stored, to the first value parameter corresponding to file to be stored and the Two value parameters are weighted averagely, and obtained average value is management guidance value corresponding to file to be stored.The present invention is implemented Example has been pre-configured with the section of management guidance value corresponding to the memory resource pool of different priorities in the terminal.Obtain text to be stored After management guidance value corresponding to part, the interval range residing for the management guidance value is determined, and then determine corresponding to file to be stored The priority of first memory resource pool and the first memory resource pool.
After determining the first memory resource pool through the above way, file to be stored is stored to first in the following way In memory resource pool, specifically include:
Obtain the remaining memory capacity of the first memory resource pool;It is to be stored to judge whether remaining memory capacity is more than or equal to The data volume of file;If it is, directly by file to be stored storage into the first memory resource pool;If it is not, then obtain the The management guidance value of each file stored in one memory resource pool, according to the management guidance value of each file and text to be stored Management guidance value corresponding to part stores file to be stored.
When the remaining memory capacity of the first memory resource pool is less than the data volume of file to be stored, priority ratio the is determined Second memory resource pool of the low one-level of priority of one memory resource pool.If management guidance value corresponding to file to be stored is less than the The management guidance value of each file in one memory resource pool, or, management guidance value is less than the management guidance value of file to be stored The data volume sum of All Files be less than the data volume of file to be stored, then file to be stored is stored to the second storage resource Chi Zhong;Treated if management guidance value is more than or equal to less than the data volume sum of the All Files of the management guidance value of file to be stored The data volume of storage file, the then file that management guidance value is less than to the management guidance value of file to be stored successively are stored to second In memory resource pool, when the remaining memory capacity of the first memory resource pool is more than or equal to the data volume of file to be stored, File to be stored is stored in the first memory resource pool.
In embodiments of the present invention, by file to be stored storage into the second memory resource pool, or by management guidance value When file less than the management guidance value of file to be stored is stored into the second memory resource pool, need also exist for first judging that second deposits Whether enough store up the remaining memory capacity of resource pool, if enough, directly file to be stored or management guidance value are less than and treated The file of the management guidance value of storage file is stored into the second memory resource pool.If not enough, by the second memory resource pool The low one-level of priority of the memory resource pool of priority ratio second is arrived in the minimum one or more files storage of middle management standard In memory resource pool, then file to be stored or management guidance value are less than to the file of the management guidance value of file to be stored again Store into the second memory resource pool.
So realize and the high file of importance is stored in more efficiently memory resource pool, the low file of importance is deposited Store up in the slower memory resource pool of access data.Difference storage is carried out according to the significance level difference of file, both helps user The intangible asset to data value cognition is preserved, and is worth and is applied to data storage management, allows the cost performance of retained data Reach maximization.
In embodiments of the present invention, value information corresponding to file to be stored and the file to be stored of user's submission is obtained; According to file to be stored and value information, the first value parameter corresponding to file to be stored is determined;According to value information and first Value parameter, the storage mode of file to be stored is selected, store file to be stored.The present invention obtains when storing file to be stored The value information for having taken user to submit, and intelligent evaluation goes out the first value parameter of file to be stored, the valency that synthetic user is submitted Value information and first value parameter assessed store file to be stored.Text to be stored is instructed using the value of file to be stored The storage management of part.The file different to significance level, takes different storage strategies, and more important file is stored in more quick In the higher memory resource pool of more reliable priority.Help user to preserve the intangible asset of file value cognition, file is worth Applied to data storage management, maximize the cost performance of retained data.
Embodiment 2
Referring to Fig. 4, the embodiments of the invention provide a kind of file storage device, the device is used to perform above-described embodiment 1 The file memory method provided, the device include:
Acquisition module 20, for obtaining value information corresponding to the file to be stored of file to be stored and user's submission;
Determining module 21, for according to file to be stored and the value information, determining first corresponding to file to be stored Value parameter;
Memory module 22, for according to value information and the first value parameter, selecting the storage mode of file to be stored, depositing Store up file to be stored.
Above-mentioned value information includes the second value parameter, acquisition module 20, for receiving the file to be stored of user's input Corresponding second value parameter;Or for receiving significance level description information corresponding to the file to be stored of user's submission, root The second value parameter corresponding to file to be stored is determined according to significance level description information.
Above-mentioned determining module 21 includes:
Acquiring unit, for obtaining usage record corresponding to file to be stored in preset duration;
Computing unit, for according to usage record and preset duration, calculating average access times corresponding to file to be stored;
Determining unit, for according to average access times and value information, determining the first value corresponding to file to be stored Parameter.
Above-mentioned determining module 21, for carrying out text analyzing to file to be stored, extract crucial corresponding to file to be stored The occurrence number of word and keyword;Obtain the job interest description information of user;According to keyword, keyword occurrence number and Job interest description information, obtain the degree of correlation between file to be stored and job interest description information;According to the degree of correlation, it is determined that First value parameter corresponding to file to be stored.
Above-mentioned memory module 22, for the second value parameter included according to the first value parameter and value information, calculate Management guidance value corresponding to file to be stored;According to management guidance value, the first memory resource pool corresponding to file to be stored is determined; By file to be stored storage into the first memory resource pool.
Above-mentioned memory module 22, for obtaining the remaining memory capacity of the first memory resource pool;Judge remaining memory capacity Whether the data volume of file to be stored is more than or equal to;If it is, directly file to be stored is stored to the first storage resource Chi Zhong;If it is not, then the management guidance value of each file stored in the first memory resource pool is obtained, according to each file Management guidance value corresponding to management guidance value and file to be stored stores file to be stored.
Above-mentioned memory module 22, the second storage of the low one-level of priority for determining the memory resource pool of priority ratio first Resource pool;If management guidance value corresponding to file to be stored is less than the management guidance value of each file, or, management guidance value is small It is less than the data volume of file to be stored in the data volume sum of the All Files of the management guidance value of file to be stored, then will waits to deposit File storage is stored up into the second memory resource pool;If management guidance value is less than the All Files of the management guidance value of file to be stored Data volume sum be more than or equal to file to be stored data volume, then successively by management guidance value be less than file to be stored pipe The file for managing standard is stored into the second memory resource pool, until remaining memory capacity is more than or equal to the number of file to be stored During according to amount, file to be stored is stored in the first memory resource pool.
In embodiments of the present invention, value information corresponding to file to be stored and the file to be stored of user's submission is obtained; According to file to be stored and value information, the first value parameter corresponding to file to be stored is determined;According to value information and first Value parameter, the storage mode of file to be stored is selected, store file to be stored.The present invention obtains when storing file to be stored The value information for having taken user to submit, and intelligent evaluation goes out the first value parameter of file to be stored, the valency that synthetic user is submitted Value information and first value parameter assessed store file to be stored.Text to be stored is instructed using the value of file to be stored The storage management of part.The file different to significance level, takes different storage strategies, and more important file is stored in more quick In the higher memory resource pool of more reliable priority.Help user to preserve the intangible asset of file value cognition, file is worth Applied to data storage management, maximize the cost performance of retained data.
The file storage device that the embodiment of the present invention is provided can be equipment on specific hardware or be installed on equipment On software or firmware etc..The device that the embodiment of the present invention is provided, its realization principle and caused technique effect and foregoing side Method embodiment is identical, and to briefly describe, device embodiment part does not refer to part, refers in corresponding in preceding method embodiment Hold.It is apparent to those skilled in the art that for convenience and simplicity of description, system described above, device With the specific work process of unit, the corresponding process in above method embodiment is may be referred to, will not be repeated here.
In embodiment provided by the present invention, it should be understood that disclosed apparatus and method, can be by others side Formula is realized.Device embodiment described above is only schematical, for example, the division of the unit, only one kind are patrolled Function division is collected, there can be other dividing mode when actually realizing, in another example, multiple units or component can combine or can To be integrated into another system, or some features can be ignored, or not perform.Another, shown or discussed is mutual Coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some communication interfaces, device or unit Connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in embodiment provided by the invention can be integrated in a processing unit, also may be used To be that unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent accompanying drawing in individual accompanying drawing, in addition, term " the One ", " second ", " the 3rd " etc. are only used for distinguishing description, and it is not intended that instruction or hint relative importance.
Finally it should be noted that:Embodiment described above, it is only the embodiment of the present invention, to illustrate the present invention Technical scheme, rather than its limitations, protection scope of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, it will be understood by those within the art that:Any one skilled in the art The invention discloses technical scope in, it can still modify to the technical scheme described in previous embodiment or can be light Change is readily conceivable that, or equivalent substitution is carried out to which part technical characteristic;And these modifications, change or replacement, do not make The essence of appropriate technical solution departs from the spirit and scope of technical scheme of the embodiment of the present invention.The protection in the present invention should all be covered Within the scope of.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of file memory method, it is characterised in that methods described includes:
Obtain value information corresponding to file to be stored and the file to be stored of user's submission;
According to the file to be stored and the value information, the first value parameter corresponding to the file to be stored is determined;
According to the value information and first value parameter, the storage mode of the file to be stored is selected, described in storage File to be stored.
2. according to the method for claim 1, it is characterised in that the value information includes the second value parameter, described to obtain Value information corresponding to the file to be stored of family submission is taken, including:
Receive second value parameter corresponding to the file to be stored of user's input;Or
Significance level description information corresponding to the file to be stored that user submits is received, describes to believe according to the significance level Breath determines the second value parameter corresponding to the file to be stored.
3. according to the method for claim 1, it is characterised in that described to be believed according to the file to be stored with the value Breath, determines the first value parameter corresponding to the file to be stored, including:
Obtain usage record corresponding to the file to be stored in preset duration;
According to the usage record and the preset duration, average access times corresponding to the file to be stored are calculated;
According to the average access times and the value information, the first value parameter corresponding to the file to be stored is determined.
4. according to the method for claim 1, it is characterised in that described to be believed according to the file to be stored with the value Breath, determines the first value parameter corresponding to the file to be stored, including:
Text analyzing is carried out to the file to be stored, extracts keyword corresponding to the file to be stored and the keyword Occurrence number;
Obtain the job interest description information of the user;
According to the keyword, the occurrence number of the keyword and the job interest description information, obtain described to be stored The degree of correlation between file and the job interest description information;
According to the degree of correlation, the first value parameter corresponding to the file to be stored is determined.
5. according to the method for claim 1, it is characterised in that described to be joined according to the value information with first value Number, selects the storage mode of the file to be stored, stores the file to be stored, including:
The second value parameter included according to first value parameter and the value information, calculates the file to be stored pair The management guidance value answered;
According to the management guidance value, the first memory resource pool corresponding to the file to be stored is determined;
By file to be stored storage into first memory resource pool.
6. according to the method for claim 5, it is characterised in that described store the file to be stored to described first is deposited Store up in resource pool, including:
Obtain the remaining memory capacity of first memory resource pool;
Judge whether the remaining memory capacity is more than or equal to the data volume of the file to be stored;
If it is, directly by file to be stored storage into first memory resource pool;
If it is not, then the management guidance value of each file stored in first memory resource pool is obtained, according to described every Management guidance value corresponding to the management guidance value of individual file and the file to be stored stores the file to be stored.
7. according to the method for claim 6, it is characterised in that the management guidance value and institute according to each file State management guidance value corresponding to file to be stored and store the file to be stored, including:
Determine the second memory resource pool of the low one-level of priority of the first memory resource pool described in priority ratio;
If management guidance value corresponding to the file to be stored is less than the management guidance value of each file, or, management refers to The data volume sum that value is led less than the All Files of the management guidance value of the file to be stored is less than the file to be stored Data volume, then by file to be stored storage into second memory resource pool;
If the data volume sum that management guidance value is less than the All Files of the management guidance value of the file to be stored is more than or waited In the data volume of the file to be stored, then the file that management guidance value is less than to the management guidance value of file to be stored successively is deposited Store up in second memory resource pool, until the remaining memory capacity is more than or equal to the data volume of the file to be stored When, the file to be stored is stored in first memory resource pool.
8. a kind of file storage device, it is characterised in that described device includes:
Acquisition module, for obtaining value information corresponding to the file to be stored of file to be stored and user's submission;
Determining module, for according to the file to be stored and the value information, determining corresponding to the file to be stored One value parameter;
Memory module, for according to the value information and first value parameter, selecting the storage of the file to be stored Mode, store the file to be stored.
9. device according to claim 8, it is characterised in that the value information includes the second value parameter, described to obtain Modulus block, for receiving second value parameter corresponding to the file to be stored of user's input;Or used for receiving Significance level description information corresponding to the file to be stored that family is submitted, according to determining the significance level description information Second value parameter corresponding to file to be stored.
10. device according to claim 8, it is characterised in that the determining module includes:
Acquiring unit, for obtaining usage record corresponding to the file to be stored in preset duration;
Computing unit, for according to the usage record and the preset duration, calculating average corresponding to the file to be stored Access times;
Determining unit, for according to the average access times and the value information, determining corresponding to the file to be stored First value parameter.
CN201710636984.6A 2017-07-31 2017-07-31 File storage method and device Active CN107357932B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710636984.6A CN107357932B (en) 2017-07-31 2017-07-31 File storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710636984.6A CN107357932B (en) 2017-07-31 2017-07-31 File storage method and device

Publications (2)

Publication Number Publication Date
CN107357932A true CN107357932A (en) 2017-11-17
CN107357932B CN107357932B (en) 2020-03-20

Family

ID=60285577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710636984.6A Active CN107357932B (en) 2017-07-31 2017-07-31 File storage method and device

Country Status (1)

Country Link
CN (1) CN107357932B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101840377A (en) * 2010-05-13 2010-09-22 上海交通大学 Data storage method based on RS (Reed-Solomon) erasure codes
CN102364465A (en) * 2011-09-30 2012-02-29 深圳市赫迪威信息技术有限公司 File storage method and storage cluster
CN103095805A (en) * 2012-12-20 2013-05-08 江苏辰云信息科技有限公司 Cloud storage system of data intelligent and decentralized management
CN103106047A (en) * 2013-01-29 2013-05-15 浪潮(北京)电子信息产业有限公司 Storage system based on object and storage method thereof
CN103838860A (en) * 2014-03-19 2014-06-04 华存数据信息技术有限公司 File storing system based on dynamic transcript strategy and storage method of file storing system
CN103838816A (en) * 2012-11-27 2014-06-04 株式会社日立制作所 Document retrieval device and document retrieval method
CN104639860A (en) * 2014-12-31 2015-05-20 安科智慧城市技术(中国)有限公司 Storage method and device of supervision video
CN105653582A (en) * 2015-12-21 2016-06-08 联想(北京)有限公司 File management method of electronic equipment and electronic equipment
CN105677742A (en) * 2015-12-30 2016-06-15 深圳市瑞驰信息技术有限公司 Method and apparatus for storing files
CN106502576A (en) * 2015-09-06 2017-03-15 中兴通讯股份有限公司 Migration strategy method of adjustment, capacity change suggesting method and device
CN106528608A (en) * 2016-09-27 2017-03-22 中国电力科学研究院 Cold and hot storage method and system for power grid GIS (Geographic Information System) data in cloud architecture

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101840377A (en) * 2010-05-13 2010-09-22 上海交通大学 Data storage method based on RS (Reed-Solomon) erasure codes
CN102364465A (en) * 2011-09-30 2012-02-29 深圳市赫迪威信息技术有限公司 File storage method and storage cluster
CN103838816A (en) * 2012-11-27 2014-06-04 株式会社日立制作所 Document retrieval device and document retrieval method
CN103095805A (en) * 2012-12-20 2013-05-08 江苏辰云信息科技有限公司 Cloud storage system of data intelligent and decentralized management
CN103106047A (en) * 2013-01-29 2013-05-15 浪潮(北京)电子信息产业有限公司 Storage system based on object and storage method thereof
CN103838860A (en) * 2014-03-19 2014-06-04 华存数据信息技术有限公司 File storing system based on dynamic transcript strategy and storage method of file storing system
CN104639860A (en) * 2014-12-31 2015-05-20 安科智慧城市技术(中国)有限公司 Storage method and device of supervision video
CN106502576A (en) * 2015-09-06 2017-03-15 中兴通讯股份有限公司 Migration strategy method of adjustment, capacity change suggesting method and device
CN105653582A (en) * 2015-12-21 2016-06-08 联想(北京)有限公司 File management method of electronic equipment and electronic equipment
CN105677742A (en) * 2015-12-30 2016-06-15 深圳市瑞驰信息技术有限公司 Method and apparatus for storing files
CN106528608A (en) * 2016-09-27 2017-03-22 中国电力科学研究院 Cold and hot storage method and system for power grid GIS (Geographic Information System) data in cloud architecture

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN107357932B (en) 2020-03-20

Similar Documents

Publication Publication Date Title
CN106020715B (en) Storage pool capacity management
Kauffman et al. Technology investment decision-making under uncertainty
US9031914B2 (en) Tier-based data management
US8260622B2 (en) Compliant-based service level objectives
US10354201B1 (en) Scalable clustering for mixed machine learning data
US9813486B2 (en) Assessment of cloud hosting suitability for multiple applications
CN107436844A (en) A kind of generation method and device of interface use-case intersection
CN107357932A (en) A kind of file memory method and device
CN106408751B (en) A kind of clear of atm device is made an inventory of goods in a warehouse method and system
AU2014201264A1 (en) Scenario based customer lifetime value determination
CN101770626A (en) Method, device and system for identifying agents with card-laundering behavior
CN107480703A (en) Transaction fault detection method and device
CN109711849B (en) Ether house address portrait generation method and device, electronic equipment and storage medium
Bayram et al. Improving reliability with dynamic syndrome allocation in intelligent software defined data centers
CN107180040A (en) The management method and device of a kind of business datum
TWM563049U (en) Automatic teller machine with monitoring function
CN109800933B (en) Risk assessment method and device, storage medium and electronic equipment
CN106067082A (en) A kind of rating business credit method and device
US20200074509A1 (en) Business data promotion method, device, terminal and computer-readable storage medium
CN110009365B (en) User group detection method, device and equipment for abnormally transferring electronic assets
US20210135938A1 (en) Admin change recommendation in an enterprise
US20210342132A1 (en) Multi Objective Optimization of Applications
CN105550020A (en) Object selection method and apparatus
US20210144066A1 (en) Management of a computing system with multiple domains
CN113538154A (en) Risk object identification method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant