CN103365977A - Storage processing method and device for data on nonvolatile storage medium - Google Patents

Storage processing method and device for data on nonvolatile storage medium Download PDF

Info

Publication number
CN103365977A
CN103365977A CN2013102695617A CN201310269561A CN103365977A CN 103365977 A CN103365977 A CN 103365977A CN 2013102695617 A CN2013102695617 A CN 2013102695617A CN 201310269561 A CN201310269561 A CN 201310269561A CN 103365977 A CN103365977 A CN 103365977A
Authority
CN
China
Prior art keywords
file
volatile memory
delete
memory medium
data storage
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.)
Pending
Application number
CN2013102695617A
Other languages
Chinese (zh)
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN2013102695617A priority Critical patent/CN103365977A/en
Publication of CN103365977A publication Critical patent/CN103365977A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a storage processing method and device for data on a nonvolatile storage medium, which can further optimally utilize preset storage space under the condition of limited disk space. The technical scheme is as follows: the storage processing method comprises the steps of: judging whether the free space of the preset storage space is less than a preset value; if yes, clearing existing files in real time, namely deleting the files sequentially according to the current states of the files.

Description

Data storage disposal route and device on the non-volatile memory medium
Technical field
The present invention relates to data storage technology, relate in particular on the non-volatile memory medium that is applied in the P2P Internet Transmission storage processing method and device to data.
Background technology
Along with the fast development of internet multimedia technology, point-to-point (P2P) network transmission technology is widely used as a kind of streaming media transmission technique of reliable high speed, and has obtained preferably effect.This technology in the application of Streaming Media aspect so that when each user watches content of multimedia online, also at uploading data to satisfy other customer multi-media content-data demands.Along with popularizing gradually of HD video, in view of the restriction of server resource and transmission bandwidth, the P2P network transmission technology will further obtain performance in the advantage aspect resource and the bandwidth.
Based on the data of P2P download, video request program need to rely on nonvolatile memory magnanimity and long-term storage capacity, at present, most popular non-volatile memory medium is disk, the hard disk on the PC for example, storage card on the mobile device etc.Wherein, VOD system requires the user to utilize the part predetermined memory space on the non-volatile memory medium space of computer equipment to store the video data of downloading because of VOD service.
According to the requirement of VOD service, computer equipment can all store the video data that VOD service is downloaded into the predetermined memory space of local disk in theory.Be not difficult to find out that along with the video of user's program request is more and more, even enlarge predetermined memory space shared ratio on disk for this reason and constantly, predetermined memory space also can finally be full of.Therefore, how in the limited situation of disk space, optimization utilize predetermined memory space, become problem demanding prompt solution.
Summary of the invention
The object of the invention is to address the above problem, data storage disposal route and device on a kind of non-volatile memory medium are provided, can in the limited situation of disk space, further optimize and utilize predetermined memory space.
Technical scheme of the present invention is: the present invention has disclosed data storage disposal route on a kind of non-volatile memory medium, comprising:
Whether judge the remaining space of predetermined storage area less than setting value, if then existing file is removed in real time less than setting value, delete take the current state of each file as order.
Embodiment according to data storage disposal route on the non-volatile memory medium of the present invention, in the file delete procedure, the state of file is divided into play, download, current uploading and alternative document, the file of deletion take alternative document as override, the current file of uploading as time file of preferential deletion, is not deleted the file of playing and downloading.
According to an embodiment of data storage disposal route on the non-volatile memory medium of the present invention, in the file delete procedure, also come deleted file according to the health degree priority from high to low of file.
According to an embodiment of data storage disposal route on the non-volatile memory medium of the present invention, in the file delete procedure, also select deleted file according to the final updating time of file.
The present invention has also disclosed data storage disposal system on a kind of non-volatile memory medium, comprising:
The remaining space judgment means judges that whether the remaining space of predetermined storage area is less than setting value;
The file delete device is removed in real time to existing file in the situation of remaining space less than setting value, deletes take the current state of each file as order.
According to an embodiment of data storage disposal system on the non-volatile memory medium of the present invention, the file delete device comprises:
File status is delete device according to the order of sequence, in the file delete procedure, the state of file is divided into play, download, current uploading and alternative document, the file of deletion take alternative document as override, the current file of uploading as time file of preferential deletion, is not deleted the file of playing and downloading.
According to an embodiment of data storage disposal system on the non-volatile memory medium of the present invention, the file delete device also comprises:
The file health degree is delete device according to the order of sequence, in the file delete procedure, comes deleted file according to the health degree priority from high to low of file.
According to an embodiment of data storage disposal system on the non-volatile memory medium of the present invention, the file delete device also comprises:
The file update time is delete device according to the order of sequence, in the file delete procedure, selects deleted file according to the final updating time of file.
The present invention contrasts prior art following beneficial effect: the solution of the present invention is a plurality of state parameters and the health degree according to existing file on the non-volatile memory medium, when remaining predetermined storage area is inadequate, removes in real time the existing file that satisfies condition.Compared to prior art, the present invention can in the limited situation of disk space, take full advantage of the needed file data of predetermined memory space storage P2P.
Description of drawings
Fig. 1 shows the process flow diagram of the first embodiment of data storage disposal route on the non-volatile memory medium of the present invention.
Fig. 2 shows the process flow diagram of the second embodiment of data storage disposal route on the non-volatile memory medium of the present invention.
Fig. 3 shows the schematic diagram of the first embodiment of data storage disposal system on the non-volatile memory medium of the present invention.
Fig. 4 shows the schematic diagram of the second embodiment of data storage disposal system on the non-volatile memory medium of the present invention.
Embodiment
The invention will be further described below in conjunction with drawings and Examples.
Fig. 1 shows the flow process of the first embodiment of data storage disposal route on the non-volatile memory medium of the present invention.See also Fig. 1, the detailed step of the method for present embodiment is as follows.
Step S10: judge that whether the remaining space of predetermined storage area is less than setting value.If then enter next step less than preset value, otherwise flow process finishes.
Step S12: existing file is removed in real time, deleted take the current state of each file as order.
In the file delete procedure, the state of file is divided into play, download, current uploading and alternative document, the file of deletion take alternative document as override as time file of preferential deletion, is not deleted the file of playing and downloading with the current file of uploading.
Step S14: the health degree priority from high to low according to file is come deleted file.
The health degree of file is file seed number/download number, and whether be used for weighing seed sufficient.
Fig. 2 shows the flow process of the second embodiment of data storage disposal route on the non-volatile memory medium of the present invention.See also Fig. 2, the detailed step of the method for present embodiment is as follows.
Step S20: judge that whether the remaining space of predetermined storage area is less than setting value.If then enter next step less than preset value, otherwise flow process finishes.
Step S22: existing file is removed in real time, deleted take the current state of each file as order.
In the file delete procedure, the state of file is divided into play, download, current uploading and alternative document, the file of deletion take alternative document as override as time file of preferential deletion, is not deleted the file of playing and downloading with the current file of uploading.
Step S24: the final updating time according to file is selected deleted file.
Fig. 3 shows the principle of the first embodiment of data storage disposal system on the non-volatile memory medium of the present invention.See also Fig. 3, the system of present embodiment comprises remaining space judgment means 10 and file delete device 12, include file state delete device 120 and file health degree delete device 122 according to the order of sequence according to the order of sequence again in the file delete device 12.
Remaining space judgment means 10 judges that whether the remaining space of predetermined storage area is less than setting value.File delete device 12 is removed in real time to existing file in the situation of remaining space less than setting value, deletes take the current state of each file as order.Particularly, file status according to the order of sequence delete device 120 in the file delete procedure, the state of file is divided into play, download, current uploading and alternative document, the file of deletion take alternative document as override, the current file of uploading as time file of preferential deletion, is not deleted the file of playing and downloading.File health degree according to the order of sequence delete device 122 comes deleted file according to the health degree priority from high to low of file in the file delete procedure.The health degree of file is file seed number/download number, and whether be used for weighing seed sufficient.
Fig. 4 shows the principle of the second embodiment of data storage disposal system on the non-volatile memory medium of the present invention.See also Fig. 3, the system of present embodiment comprises remaining space judgment means 20 and file delete device 22, include file state delete device 220 and file update time delete device 222 according to the order of sequence according to the order of sequence again in the file delete device 22.
Remaining space judgment means 20 judges that whether the remaining space of predetermined storage area is less than setting value.File delete device 22 is removed in real time to existing file in the situation of remaining space less than setting value, deletes take the current state of each file as order.Particularly, file status according to the order of sequence delete device 220 in the file delete procedure, the state of file is divided into play, download, current uploading and alternative document, the file of deletion take alternative document as override, the current file of uploading as time file of preferential deletion, is not deleted the file of playing and downloading.The file update time according to the order of sequence delete device 222 in the file delete procedure, select deleted file according to the final updating time of file.
Above-described embodiment provides to those of ordinary skills and realizes and use of the present invention; those of ordinary skills can be in the situation that does not break away from invention thought of the present invention; above-described embodiment is made various modifications or variation; thereby protection scope of the present invention do not limit by above-described embodiment, and should be the maximum magnitude that meets the inventive features that claims mention.

Claims (8)

1. data storage disposal route on the non-volatile memory medium comprises:
Whether judge the remaining space of predetermined storage area less than setting value, if then existing file is removed in real time less than setting value, delete take the current state of each file as order.
2. data storage disposal route on the non-volatile memory medium according to claim 1, it is characterized in that, in the file delete procedure, the state of file is divided into play, download, current uploading and alternative document, the file of deletion take alternative document as override, the current file of uploading as time file of preferential deletion, is not deleted the file of playing and downloading.
3. data storage disposal route on the non-volatile memory medium according to claim 1 is characterized in that, in the file delete procedure, also comes deleted file according to the health degree priority from high to low of file.
4. data storage disposal route on the non-volatile memory medium according to claim 1 is characterized in that, in the file delete procedure, also selects deleted file according to the final updating time of file.
5. data storage disposal system on the non-volatile memory medium comprises:
The remaining space judgment means judges that whether the remaining space of predetermined storage area is less than setting value;
The file delete device is removed in real time to existing file in the situation of remaining space less than setting value, deletes take the current state of each file as order.
6. data storage disposal system on the non-volatile memory medium according to claim 5 is characterized in that, the file delete device comprises:
File status is delete device according to the order of sequence, in the file delete procedure, the state of file is divided into play, download, current uploading and alternative document, the file of deletion take alternative document as override, the current file of uploading as time file of preferential deletion, is not deleted the file of playing and downloading.
7. data storage disposal system on the non-volatile memory medium according to claim 5 is characterized in that, the file delete device also comprises:
The file health degree is delete device according to the order of sequence, in the file delete procedure, comes deleted file according to the health degree priority from high to low of file.
8. data storage disposal system on the non-volatile memory medium according to claim 5 is characterized in that, the file delete device also comprises:
The file update time is delete device according to the order of sequence, in the file delete procedure, selects deleted file according to the final updating time of file.
CN2013102695617A 2013-06-28 2013-06-28 Storage processing method and device for data on nonvolatile storage medium Pending CN103365977A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013102695617A CN103365977A (en) 2013-06-28 2013-06-28 Storage processing method and device for data on nonvolatile storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013102695617A CN103365977A (en) 2013-06-28 2013-06-28 Storage processing method and device for data on nonvolatile storage medium

Publications (1)

Publication Number Publication Date
CN103365977A true CN103365977A (en) 2013-10-23

Family

ID=49367318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013102695617A Pending CN103365977A (en) 2013-06-28 2013-06-28 Storage processing method and device for data on nonvolatile storage medium

Country Status (1)

Country Link
CN (1) CN103365977A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102867041A (en) * 2012-09-03 2013-01-09 东莞宇龙通信科技有限公司 Terminal and storage space management method
CN104572413A (en) * 2013-10-29 2015-04-29 上海斐讯数据通信技术有限公司 Method for storing system logs by electronic equipment and electronic equipment
CN104717569A (en) * 2013-12-13 2015-06-17 乐视网信息技术(北京)股份有限公司 Data elimination method and device
CN105245945A (en) * 2014-07-07 2016-01-13 深圳市云帆世纪科技有限公司 Method and system for playing network multimedia data
CN106960009A (en) * 2017-02-28 2017-07-18 珠海市魅族科技有限公司 A kind of file delet method and system
CN107948671A (en) * 2017-11-23 2018-04-20 莫宝兰 A kind of streaming media control device and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1645340A (en) * 2004-01-20 2005-07-27 乐金电子(中国)研究开发中心有限公司 Control method of mobile communication terminal memory
US20110289290A1 (en) * 2010-05-21 2011-11-24 International Business Machines Corporation Space reservation in a deduplication system
CN102622347A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Image management method and movable terminal
CN102651027A (en) * 2012-04-05 2012-08-29 福兴达科技实业(深圳)有限公司 Method and device for extending storage space

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1645340A (en) * 2004-01-20 2005-07-27 乐金电子(中国)研究开发中心有限公司 Control method of mobile communication terminal memory
US20110289290A1 (en) * 2010-05-21 2011-11-24 International Business Machines Corporation Space reservation in a deduplication system
CN102622347A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Image management method and movable terminal
CN102651027A (en) * 2012-04-05 2012-08-29 福兴达科技实业(深圳)有限公司 Method and device for extending storage space

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102867041A (en) * 2012-09-03 2013-01-09 东莞宇龙通信科技有限公司 Terminal and storage space management method
CN102867041B (en) * 2012-09-03 2015-07-22 东莞宇龙通信科技有限公司 Terminal and storage space management method
CN104572413A (en) * 2013-10-29 2015-04-29 上海斐讯数据通信技术有限公司 Method for storing system logs by electronic equipment and electronic equipment
CN104572413B (en) * 2013-10-29 2017-11-24 上海斐讯数据通信技术有限公司 A kind of electronic equipment preserves the method and electronic equipment of system journal
CN104717569A (en) * 2013-12-13 2015-06-17 乐视网信息技术(北京)股份有限公司 Data elimination method and device
CN105245945A (en) * 2014-07-07 2016-01-13 深圳市云帆世纪科技有限公司 Method and system for playing network multimedia data
CN106960009A (en) * 2017-02-28 2017-07-18 珠海市魅族科技有限公司 A kind of file delet method and system
CN107948671A (en) * 2017-11-23 2018-04-20 莫宝兰 A kind of streaming media control device and method

Similar Documents

Publication Publication Date Title
CN103365977A (en) Storage processing method and device for data on nonvolatile storage medium
US8850075B2 (en) Predictive, multi-layer caching architectures
CN101873355A (en) Method, device and system for downloading file
CN108121783A (en) A kind of automatic cleaning method, device, computer and storage medium for storing data
CN103167026A (en) Processing method, system and device for cloud storage environmental data
US8732355B1 (en) Dynamic data prefetching
CN109471843B (en) Metadata caching method, system and related device
US20160105697A1 (en) System and method for beforehand downloading video
KR101595783B1 (en) SYSTEMS and METHODS for DYNAMIC DATA STORAGE
CN106791930B (en) Video processing method and device
CN107801095A (en) A kind of video/audio decoding method and terminal device
CN103747296A (en) Video playing method and system
CN104158813A (en) Video transmission optimizing method and device
CN107506154A (en) A kind of read method of metadata, device and computer-readable recording medium
US20170257658A1 (en) Method for automatically pushing video based on analysis of user behavior and electronic device
CN110225399B (en) Streaming media processing method and device, computer equipment and storage medium
US20160359949A1 (en) Small disk support for large cloud-based storage systems
CN105327508A (en) Network game running system and method
CN105306570A (en) Storage method of cluster data
CN106162311A (en) A kind of method playing Internet video and terminal unit
JP2016519380A (en) Information transmission based on reading speed
US9332059B2 (en) Method of file sharing
CN103338263A (en) Method and system for sharing audio and video files based on players
CN110971962B (en) Slice caching method and device and storage medium
CN105824820A (en) Media file buffer memory method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20131023