CN109558244A - Junk information recovery method, device, equipment and computer readable storage medium - Google Patents
Junk information recovery method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN109558244A CN109558244A CN201811463939.6A CN201811463939A CN109558244A CN 109558244 A CN109558244 A CN 109558244A CN 201811463939 A CN201811463939 A CN 201811463939A CN 109558244 A CN109558244 A CN 109558244A
- Authority
- CN
- China
- Prior art keywords
- thread
- garbage reclamation
- junk information
- blocks
- time number
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000011084 recovery Methods 0.000 title claims abstract description 30
- 239000010813 municipal solid waste Substances 0.000 claims abstract description 119
- 238000012544 monitoring process Methods 0.000 claims abstract description 34
- 238000004064 recycling Methods 0.000 claims description 18
- 230000009467 reduction Effects 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 11
- 238000004458 analytical method Methods 0.000 claims description 3
- 239000002699 waste material Substances 0.000 abstract description 6
- 230000009286 beneficial effect Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 10
- 230000003321 amplification Effects 0.000 description 4
- 238000013508 migration Methods 0.000 description 4
- 230000005012 migration Effects 0.000 description 4
- 238000003199 nucleic acid amplification method Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000007423 decrease Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5022—Mechanisms to release resources
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
This application discloses a kind of junk information recovery methods, including when receiving power on signal, and log-on data block monitors thread;Thread is monitored by the data block, and real-time monitoring is carried out to system free time number of blocks;The starting quantity of garbage reclamation thread is controlled, according to the system free time number of blocks to recycle by the garbage reclamation thread after starting to junk information;The junk information recovery method can reduce system resource waste under the premise of not influencing running efficiency of system, improve system reliability.Disclosed herein as well is a kind of junk information recyclable device, equipment and computer readable storage mediums, all have above-mentioned beneficial effect.
Description
Technical field
This application involves storage software technology field, in particular to a kind of junk information recovery method further relates to a kind of rubbish
Rubbish information recyclable device, equipment and computer readable storage medium.
Background technique
The fast development of science and technology has driven the development of internet, and in Internet era, internet data is also with index
Form sharp increase, but these data are not all useful datas, wherein there is a large amount of junk information, such as repeat number
According to, fault data, suspicious data etc..Therefore, garbage reclamation technique is come into being.
So-called garbage reclamation refers in full flash-memory storage system, in order to reduce rear end SSD (Solid State
Drives, solid state hard disk) write amplification, it is not very high data block by utilization rate that storage system, which can actively carry out garbage reclamation,
On data carry out Data Migration in the additional form write, the data block that thus Data Migration can be made to go out becomes the free time
Block, would not be generated when carrying out data write-in again it is additional write amplification, the treatment effeciency of IO can be effectively improved, when reduction
Prolong.
Being achieved in that for traditional garbage reclamation just starts garbage reclamation when system brings into operation, each in detection system
It whether there is invalid data in a data block, and rubbish carried out to the data block with invalid data scanned with fixed thread
Rubbish recycling.However, this kind of implementation can reduce the performance of storage system, because when system just brings into operation, storage system
The quantity of middle executing garbage is considerably less, if starting garbage reclamation at this moment, with garbage reclamation thread carry out data monitoring and
Migration, can occupy a large amount of cpu resource, result in waste of resources, and to storage system write amplification reduce can't play it is very big
Effect.
Therefore, how a kind of junk information recovery method is provided, under the premise of not influencing running efficiency of system, reduces system
The system wasting of resources, improving system reliability is those skilled in the art's urgent problem to be solved.
Summary of the invention
The purpose of the application is to provide a kind of junk information recovery method, which can be not influencing
Under the premise of operational efficiency of uniting, system resource waste is reduced, improves system reliability;The another object of the application is to provide one kind
Junk information recyclable device, equipment and computer readable storage medium, it may have above-mentioned beneficial effect.
In order to solve the above technical problems, this application provides a kind of junk information recovery method, the junk information recycling
Method includes:
When receiving power on signal, log-on data block monitors thread;
Thread is monitored by the data block, and real-time monitoring is carried out to system free time number of blocks;
The starting quantity of garbage reclamation thread is controlled, according to the system free time number of blocks to pass through the rubbish after starting
Rubbish recycling thread recycles junk information.
Preferably, the starting quantity that garbage reclamation thread is controlled according to the system free time number of blocks, comprising:
According to the system free time number of blocks real-time statistics free block reduction amount;
When the free block reduction amount reaches preset threshold, the starting preset quantity garbage reclamation thread.
Preferably, it after the starting quantity that garbage reclamation thread is controlled according to the system free time number of blocks, also wraps
It includes:
The starting quantity of the system free time number of blocks and the garbage reclamation thread is sent to display equipment to show
Show.
Preferably, the garbage reclamation information approach further include:
Judge whether the garbage reclamation thread starts to finish;
When all garbage reclamation thread startings finish, judge whether the system free time number of blocks is lower than safety threshold
Value;
If the system free time number of blocks is lower than secure threshold, alarm command is issued.
Preferably, the sending alarm command includes:
The alarm command is sent to client with mail he.
In order to solve the above technical problems, this application provides a kind of junk information recyclable device, the junk information recycling
Device includes:
Thread starting module, for when receiving power on signal, log-on data block to monitor thread;
System monitoring module carries out real-time monitoring to system free time number of blocks for monitoring thread by the data block;
Garbage reclamation module, for controlling the starting quantity of garbage reclamation thread according to the system free time number of blocks, with
Junk information is recycled by the garbage reclamation thread after starting.
Preferably, the garbage reclamation module is specifically used for being subtracted according to the system free time number of blocks real-time statistics free block
On a small quantity, when the free block reduction amount reaches preset threshold, the starting preset quantity garbage reclamation thread.
Preferably, the junk information recyclable device further include:
Thread judgment module is finished for judging whether the garbage reclamation thread starts;
Analysis module, for judging the system free block when all garbage reclamation thread startings finish
Whether quantity is lower than secure threshold;
Monitoring and early warning module issues alarm command if being lower than secure threshold for the system free time number of blocks.
In order to solve the above technical problems, this application provides a kind of junk information reclaimer, the junk information recycling
Equipment includes:
Memory, for storing computer program;
Processor realizes the step of any one of the above junk information recovery method when for executing the computer program
Suddenly.
In order to solve the above technical problems, this application provides a kind of computer readable storage medium, it is described computer-readable
Computer program is stored on storage medium, the computer program realizes that any one of the above rubbish is believed when being executed by processor
The step of ceasing recovery method.
A kind of junk information recovery method provided herein, including when receiving power on signal, log-on data block
Monitor thread;Thread is monitored by the data block, and real-time monitoring is carried out to system free time number of blocks;It is idle according to the system
Number of blocks controls the starting quantity of garbage reclamation thread, to be carried out by the garbage reclamation thread after starting to junk information
Recycling.
As it can be seen that junk information recovery method provided herein monitors line by data block when system brings into operation
Journey is monitored data block idle in system, controls opening for garbage reclamation thread according to the quantity of system free block to realize
Dynamic quantity, as a result, can be when there are more freed data blocks, temporarily without garbage reclamation, thus can be by more CPU
Resource is used for the processing of normal IO, when idle data number of blocks gradually decreases, then gradually increases opening for garbage reclamation thread
Quantity is opened, and carries out the recycling of junk information by the garbage reclamation thread after opening.As a result, in different freed data blocks surpluses
In the case where use different junk information take-back strategies, can in the case where a small amount of space occupancy rate to greatest extent play deposit
The performance of storage system further increases the reliability of storage system.
A kind of junk information recyclable device, equipment and computer readable storage medium provided herein, all has
Above-mentioned beneficial effect, details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow diagram of junk information recovery method provided herein;
Fig. 2 is the flow diagram of another junk information recovery method provided herein;
Fig. 3 is a kind of structural schematic diagram of junk information recyclable device provided herein;
Fig. 4 is the structural schematic diagram of another junk information recyclable device provided herein;
Fig. 5 is a kind of structural schematic diagram of junk information reclaimer provided herein.
Specific embodiment
The core of the application is to provide a kind of junk information recovery method, which can be not influencing
Under the premise of operational efficiency of uniting, system resource waste is reduced, improves system reliability;Another core of the application is to provide one kind
Junk information recyclable device, equipment and computer readable storage medium, it may have above-mentioned beneficial effect.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
All other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Junk information recovery method in prior art can reduce the performance of storage system, because just having brought into operation in system
When, the quantity of executing garbage is considerably less in storage system, if starting garbage reclamation at this moment, is carried out with garbage reclamation thread
Data monitoring and migration can occupy a large amount of cpu resource, result in waste of resources, and reduce not to the amplification of writing of storage system
Very big effect can be played.Therefore, in order to solve the above technical problems, this application provides a kind of junk information recovery method, the rubbish
Rubbish information recovery method can reduce system resource waste under the premise of not influencing running efficiency of system, improve system reliability.
Referring to FIG. 1, Fig. 1 is a kind of flow diagram of junk information recovery method provided herein, the rubbish
Information recovery method may include:
S101: when receiving power on signal, log-on data block monitors thread;
In this application, the recycling to junk information in system is realized especially by two threads, respectively data block is supervised
Survey line journey and garbage reclamation thread, wherein data block monitors thread for realizing the reality to data number of blocks idle in system
When monitor, garbage reclamation thread is for realizing the recycling to junk information generated in system.Wherein, above-mentioned data block can be with
It is requested to be handled in system for realizing Various types of data, such as node, the processor of I/O request, and idle data block is then to be
The data block of any data processing request is not received in system also.
In general, the junk information recycling in system is that system brings into operation while starting, i.e., run in system
Cheng Zhong is to carry out real-time monitoring to junk information therein and recycle in real time.Therefore, data are aimed in this step
The starting of block monitoring thread.Since the operation of system is started based on the power on signal received, work as main controller, namely
When processor receives power on signal, i.e., log-on data block monitors thread, to realize the monitoring to freed data blocks in system.
S102: thread is monitored by data block, real-time monitoring is carried out to system free time number of blocks;
This step is intended to monitor thread by the data block started in S101 and realize to freed data blocks in system, i.e., above-mentioned
The real-time monitoring of system free block, specifically, the real-time monitoring realized to system free time number of blocks is essentially consisted in, so as to basis
The quantity of system free block executes subsequent garbage collection operation.
S103: controlling the starting quantity of garbage reclamation thread according to system free time number of blocks, to pass through the rubbish after starting
Recycling thread recycles junk information.
On the basis of carrying out real-time monitoring to system free time number of blocks using data block monitoring thread based on S102, this step
Suddenly it aims at and the starting quantity of garbage reclamation thread is controlled according to the quantity of system free block, is i.e. garbage reclamation thread
Unlatching quantity determined by the quantity of freed data blocks in system.Specifically, can with the reduction of system free time number of blocks and
Increase the starting quantity of garbage reclamation thread, for example, during system just starts starting, due to most of number in system
It is free block according to block, therefore can wouldn't starts garbage reclamation thread, thus more cpu resources can be used for normal data
Processing, reaches maximally utilizing for processor resource, to reduce the wasting of resources.Further, when system resource number of blocks constantly drops
When low, the starting quantity of garbage reclamation thread is gradually increased, can equally achieve the purpose that reduce the wasting of resources to a certain extent.
Preferably, the above-mentioned starting quantity for controlling garbage reclamation thread according to system free time number of blocks may include according to being
The idle number of blocks real-time statistics free block reduction amount of system;When free block reduction amount reaches preset threshold, start preset quantity
A garbage reclamation thread.
It, can be according to system free time number of blocks to system free block when realizing the control to garbage reclamation thread starting quantity
Reduction amount carries out real-time statistics, can control the unlatching of garbage reclamation thread according to system free block reduction amount as a result,.It is specific and
Speech, when every subsystem free block reduction amount reaches preset threshold, corresponding starting preset quantity garbage reclamation thread.Wherein,
System free block data volume and garbage reclamation thread open the corresponding relationship of quantity, can be preset.In addition, for above-mentioned default
The specific value of threshold value and preset quantity, not uniquely, the application does not limit this, can be by technical staff according to the actual situation
Carry out otherness setting.
For example, sharing data block 100 in a holonomic system, garbage reclamation thread 10, presetting every reduction
10 freed data blocks increase and open a garbage reclamation thread.Specifically, receiving the monitoring of power on signal turn-on data block
After thread, when monitoring that the quantity of system free block is 90 by data block monitoring thread, a garbage reclamation is just opened
Thread carries out junk information recycling;When the quantity for monitoring system free block is 80, it is then turned on a garbage reclamation thread,
Junk information recycling is carried out by two garbage reclamation threads, and so on.
It should be noted that system free block data volume and garbage reclamation thread open quantity in above-mentioned implementation method
Corresponding relationship is to fix in advance, and but it is not limited to this, and when carrying out the unlatching of garbage reclamation thread every time, opening quantity can
There are differences.For example, determine reduce by 10 freed data blocks for the first time when, open a garbage reclamation thread, determining the
When 10 freed data blocks of secondary reduction, two garbage reclamation threads are then turned on, do not influence the implementation of the technical program equally.
Preferably, it after the above-mentioned starting quantity for controlling garbage reclamation thread according to system free time number of blocks, can also wrap
It includes for the starting quantity of system free time number of blocks and garbage reclamation thread to be sent to and shows that equipment is shown.
Specifically, after the starting for completing garbage reclamation thread, it, can be in time by system sky to be checked convenient for technical staff
The starting quantity of not busy number of blocks and garbage reclamation thread is sent to corresponding display equipment and is shown that thus technical staff is
The quantity that can be clearly understood that also how many idle data block and garbage reclamation thread have been started up in current system has
How much, to understand the current operating conditions of system relatively clearly.
It should be noted that above-mentioned display method be only a kind of preferred embodiment provided herein uniquely can not also
It obtains the data number of blocks that has occupied calculate according to system data block total quantity and is shown, and according to system
Middle garbage reclamation total number of threads amount calculates the garbage reclamation number of threads that acquisition current system is not opened also and is shown, can also
All to show above data, to compare, implementation above mode has no effect on the implementation of the technical program.
Junk information recovery method provided herein, for its application scenarios, there is no limit can be applied to any list
System, multisystem and distributed system etc., or can be applied to various types of operating systems, as storage system, file system,
Database Systems, Network Management System etc..Wherein, since technical solution provided herein is for realizing to rubbish in system
The recycling of rubbish information, therefore, the technical program are more applicable for the biggish storage system of data input and output amount, Database Systems
Deng.
Junk information recovery method provided herein monitors thread pair by data block when system brings into operation
Idle data block is monitored in system, to realize the starting number for controlling garbage reclamation thread according to the quantity of system free block
Amount, as a result, can be when there are more freed data blocks, temporarily without garbage reclamation, thus can be by more cpu resources
For the processing of normal IO, when idle data number of blocks gradually decreases, then the unlatching number of garbage reclamation thread is gradually increased
Amount, and pass through the recycling of the garbage reclamation thread progress junk information after opening.As a result, in the feelings of different freed data blocks surpluses
Different junk information take-back strategies is used under condition, and storage system can be played to greatest extent in the case where a small amount of space occupancy rate
The performance of system further increases the reliability of storage system.
On the basis of the various embodiments described above, referring to FIG. 2, Fig. 2 returns for another junk information provided herein
The structural schematic diagram of receiving method.
As a kind of preferred embodiment, the junk information recovery method all garbage reclamation threads starting finish after,
Can also include:
S204: judge whether garbage reclamation thread starts and finish;If so, executing S205;
S205: judge whether system free time number of blocks is lower than secure threshold;If so, executing S206;
S206: alarm command is issued.
Specifically, after the unlatching for completing garbage reclamation thread every time, garbage reclamation that can also further in judgement system
Whether thread, which is opened, finishes, and finishes if being not turned on, and continues to be monitored system free time number of blocks, until garbage reclamation line
Journey is all turned on;If the garbage reclamation thread in system has been all turned on, by all garbage reclamation threads to being
Junk information in system is recycled.
Further, after all garbage reclamation thread startings finish, the quantity of freed data blocks may be according in system
So constantly reducing, it, can be to the quantity setting of freed data blocks in system to avoid the operation of system overburden from causing system crash
One secure threshold, when the quantity of free block is lower than the secure threshold, activation system alarm issues above-mentioned alarm command.
For example, the total quantity of data block is 100 in system, setting secure threshold is 10, when rubbish in discovery system
Recycling thread is all turned on and finishes, and when the quantity of free block is only 10 remaining, issues alarm command immediately.Wherein, for upper
The specific value of secure threshold is stated, otherness setting, the application can be carried out according to the practical operation situation of system by technical staff
It is not specifically limited.
Preferably, above-mentioned sending alarm command may include that alarm command is sent to client with mail he.
Specifically, being sent to visitor in the form of mail this application provides a kind of more specific system alarm method
Family end is shown, convenient for checking for technical staff.Certainly, above-mentioned implementation is only a kind of implementation out provided herein
Corresponding warning information uniquely can also be sent to corresponding mobile terminal in the form of mail, wechat push etc. by mode
It is shown, can also be alerted etc. by corresponding warning device.
For other realization steps of the embodiment of the present application, referring to a upper embodiment, details are not described herein by the application.
The method of junk information recycling provided by the embodiments of the present application carries out the quantity of freed data blocks in system real-time
Monitoring is alerted in time when its quantity is lower than secure threshold, carries out system maintenance in time with notification technique personnel, can be into
The safe operation of system is effectively ensured in one step.
To solve the above problems, referring to FIG. 3, Fig. 3 is a kind of knot of junk information recyclable device provided herein
Structure schematic diagram, the junk information recyclable device can include:
Thread starting module 10, for when receiving power on signal, log-on data block to monitor thread;
System monitoring module 20 carries out real-time monitoring to system free time number of blocks for monitoring thread by data block;
Garbage reclamation module 30, for controlling the starting quantity of garbage reclamation thread according to system free time number of blocks, with logical
Garbage reclamation thread after crossing starting recycles junk information.
As a kind of preferred embodiment, above-mentioned garbage reclamation module 30 is specifically used for being united in real time according to system free time number of blocks
Free block reduction amount is counted, when free block reduction amount reaches preset threshold, starts preset quantity garbage reclamation thread.
On the basis of the above embodiments, referring to FIG. 4, Fig. 4 is that another junk information provided herein recycles
The structural schematic diagram of device.
As a kind of preferred embodiment, which can also include:
Information display module 40, for the starting quantity of system free time number of blocks and garbage reclamation thread to be sent to display
Equipment is shown.
As a kind of preferred embodiment, the garbage recovery device further include:
Thread judgment module 50 is finished for judging whether garbage reclamation thread starts;
Analysis module 60, for judging that system free time number of blocks is when the starting of all garbage reclamation threads finishes
It is no to be lower than secure threshold;
Monitoring and early warning module 70 issues alarm command if being lower than secure threshold for system free time number of blocks.
As a kind of preferred embodiment, above-mentioned monitoring and early warning module can be specifically used for sending alarm command with mail he
To client.
Above method embodiment is please referred to for the introduction of device provided by the present application, this will not be repeated here by the application.
To solve the above problems, referring to FIG. 5, Fig. 5 is a kind of knot of junk information reclaimer provided herein
Structure schematic diagram, the junk information reclaimer can include:
Memory 1, for storing computer program;
Processor 2, realizes following steps when for executing computer program:
When receiving power on signal, log-on data block monitors thread;Thread is monitored to system free block by data block
Quantity carries out real-time monitoring;The starting quantity of garbage reclamation thread is controlled according to system free time number of blocks, after through starting
Garbage reclamation thread recycles junk information.
Above method embodiment is please referred to for the introduction of equipment provided by the present application, this will not be repeated here by the application.
To solve the above problems, present invention also provides a kind of computer readable storage medium, the computer-readable storage
It is stored with computer program on medium, can be realized when computer program is executed by processor following rapid:
When receiving power on signal, log-on data block monitors thread;Thread is monitored to system free block by data block
Quantity carries out real-time monitoring;The starting quantity of garbage reclamation thread is controlled according to system free time number of blocks, after through starting
Garbage reclamation thread recycles junk information.
The computer readable storage medium may include: USB flash disk, mobile hard disk, read-only memory (Read-Only
Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit
Store up the medium of program code.
Above method embodiment is please referred to for the introduction of computer readable storage medium provided by the present application, the application exists
This is not repeated them here.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Above to junk information recovery method, device, equipment and computer readable storage medium provided herein
It is described in detail.Specific examples are used herein to illustrate the principle and implementation manner of the present application, the above reality
The explanation for applying example is merely used to help understand the present processes and its core concept.It should be pointed out that for the art
For those of ordinary skill, under the premise of not departing from the application principle, can also to the application, some improvement and modification can also be carried out,
These improvement and modification also fall into the protection scope element of the claim of this application.
Claims (10)
1. a kind of junk information recovery method characterized by comprising
When receiving power on signal, log-on data block monitors thread;
Thread is monitored by the data block, and real-time monitoring is carried out to system free time number of blocks;
The starting quantity of garbage reclamation thread is controlled, according to the system free time number of blocks to return by the rubbish after starting
Take-up journey recycles junk information.
2. junk information recovery method as described in claim 1, which is characterized in that described according to the system free time number of blocks
Control the starting quantity of garbage reclamation thread, comprising:
According to the system free time number of blocks real-time statistics free block reduction amount;
When the free block reduction amount reaches preset threshold, the starting preset quantity garbage reclamation thread.
3. junk information recovery method as claimed in claim 2, which is characterized in that described according to the system free time number of blocks
After the starting quantity for controlling garbage reclamation thread, further includes:
The starting quantity of the system free time number of blocks and the garbage reclamation thread is sent to display equipment to show.
4. the junk information recovery method as described in claims 1 to 3 any one, which is characterized in that further include:
Judge whether the garbage reclamation thread starts to finish;
When all garbage reclamation thread startings finish, judge whether the system free time number of blocks is lower than secure threshold;
If the system free time number of blocks is lower than secure threshold, alarm command is issued.
5. junk information recovery method as claimed in claim 4, which is characterized in that the sending alarm command includes:
The alarm command is sent to client with mail he.
6. a kind of junk information recyclable device characterized by comprising
Thread starting module, for when receiving power on signal, log-on data block to monitor thread;
System monitoring module carries out real-time monitoring to system free time number of blocks for monitoring thread by the data block;
Garbage reclamation module, for controlling the starting quantity of garbage reclamation thread according to the system free time number of blocks, to pass through
The garbage reclamation thread after starting recycles junk information.
7. junk information recyclable device as claimed in claim 6, which is characterized in that the garbage reclamation module is specifically used for root
According to the system free time number of blocks real-time statistics free block reduction amount, when the free block reduction amount reaches preset threshold,
Start the preset quantity garbage reclamation thread.
8. the junk information recyclable device as described in claim 6 or 7 any one, which is characterized in that further include:
Thread judgment module is finished for judging whether the garbage reclamation thread starts;
Analysis module, for judging the system free time number of blocks when all garbage reclamation thread startings finish
Whether secure threshold is lower than;
Monitoring and early warning module issues alarm command if being lower than secure threshold for the system free time number of blocks.
9. a kind of junk information reclaimer characterized by comprising
Memory, for storing computer program;
Processor realizes that the junk information as described in claim 1 to 5 any one is returned when for executing the computer program
The step of receiving method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the junk information recycling as described in claim 1 to 5 any one when the computer program is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811463939.6A CN109558244A (en) | 2018-12-03 | 2018-12-03 | Junk information recovery method, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811463939.6A CN109558244A (en) | 2018-12-03 | 2018-12-03 | Junk information recovery method, device, equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109558244A true CN109558244A (en) | 2019-04-02 |
Family
ID=65868638
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811463939.6A Withdrawn CN109558244A (en) | 2018-12-03 | 2018-12-03 | Junk information recovery method, device, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109558244A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110647294A (en) * | 2019-09-09 | 2020-01-03 | Oppo(重庆)智能科技有限公司 | Storage block recovery method and device, storage medium and electronic equipment |
CN110673956A (en) * | 2019-09-24 | 2020-01-10 | Oppo广东移动通信有限公司 | Recovery thread creating method and device, computer equipment and storage medium |
CN111124643A (en) * | 2019-12-20 | 2020-05-08 | 浪潮电子信息产业股份有限公司 | Task deletion scheduling method, system and related device in distributed storage |
CN111880731A (en) * | 2020-07-17 | 2020-11-03 | 北京浪潮数据技术有限公司 | Data processing method and device and related components |
CN111930517A (en) * | 2020-09-18 | 2020-11-13 | 北京中科立维科技有限公司 | High-performance self-adaptive garbage collection method and computer system |
WO2022017002A1 (en) * | 2020-07-22 | 2022-01-27 | 华为技术有限公司 | Garbage collection method and device |
CN114168082A (en) * | 2021-12-10 | 2022-03-11 | 深圳忆联信息系统有限公司 | Method and device for avoiding depletion of SSD free block, computer equipment and storage medium |
-
2018
- 2018-12-03 CN CN201811463939.6A patent/CN109558244A/en not_active Withdrawn
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110647294A (en) * | 2019-09-09 | 2020-01-03 | Oppo(重庆)智能科技有限公司 | Storage block recovery method and device, storage medium and electronic equipment |
WO2021047398A1 (en) * | 2019-09-09 | 2021-03-18 | Oppo广东移动通信有限公司 | Method and device for storage block reclaiming, storage medium, and electronic device |
CN110673956A (en) * | 2019-09-24 | 2020-01-10 | Oppo广东移动通信有限公司 | Recovery thread creating method and device, computer equipment and storage medium |
CN111124643A (en) * | 2019-12-20 | 2020-05-08 | 浪潮电子信息产业股份有限公司 | Task deletion scheduling method, system and related device in distributed storage |
CN111880731A (en) * | 2020-07-17 | 2020-11-03 | 北京浪潮数据技术有限公司 | Data processing method and device and related components |
WO2022017002A1 (en) * | 2020-07-22 | 2022-01-27 | 华为技术有限公司 | Garbage collection method and device |
CN111930517A (en) * | 2020-09-18 | 2020-11-13 | 北京中科立维科技有限公司 | High-performance self-adaptive garbage collection method and computer system |
CN111930517B (en) * | 2020-09-18 | 2023-07-14 | 北京中科立维科技有限公司 | High-performance self-adaptive garbage collection method and computer system |
CN114168082A (en) * | 2021-12-10 | 2022-03-11 | 深圳忆联信息系统有限公司 | Method and device for avoiding depletion of SSD free block, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109558244A (en) | Junk information recovery method, device, equipment and computer readable storage medium | |
US9448928B2 (en) | System and method for two-tier adaptive heap management in a virtual machine environment | |
CN101908022B (en) | Method and device for managing internal memory of mobile communication equipment terminal | |
CN108255582B (en) | Method, system, equipment and storage medium for garbage recovery of java virtual machine | |
US20100169603A1 (en) | Method of providing to a processor an estimated completion time of a storage operation | |
CN109669877B (en) | Memory management method, device, terminal and storage medium | |
CN112749102B (en) | Memory space garbage recycling method, device, equipment and medium | |
CN103685542B (en) | Cloud virtual machine migration method, device and system | |
CN109766217B (en) | Vehicle machine system fault repairing method and device | |
WO2021047398A1 (en) | Method and device for storage block reclaiming, storage medium, and electronic device | |
CN108255608B (en) | Management method of memory pool | |
CN111124761B (en) | Equipment restarting method, device, equipment and medium | |
CN113685284B (en) | Electric fuel pump control method, device, equipment and storage medium | |
CN102426539B (en) | Timer task automatic processing method and system | |
CN107861878A (en) | The method, apparatus and equipment of java application performance issue positioning | |
CN109189739B (en) | Cache space recovery method and device | |
CN114691407A (en) | Method and device for acquiring vehicle log, electronic equipment and storage medium | |
CN103746839B (en) | PaaS systems and PaaS are using the VM node scheduling methods in pond | |
US20230100110A1 (en) | Computing resource management method, electronic equipment and program product | |
CN115525429A (en) | Container expansion and contraction control method, device, equipment and computer readable storage medium | |
CN116450328A (en) | Memory allocation method, memory allocation device, computer equipment and storage medium | |
CN112162864A (en) | Cloud resource allocation method and device and storage medium | |
CN114442963B (en) | Control method and device for solid state disk | |
CN117453423B (en) | GPU video memory management method and system, storage medium and electronic equipment | |
CN117971712B (en) | Memory recycling method, memory recycling device, electronic equipment, storage medium and program product |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190402 |
|
WW01 | Invention patent application withdrawn after publication |