CN109254850A - memory resource management method and system - Google Patents

memory resource management method and system Download PDF

Info

Publication number
CN109254850A
CN109254850A CN201811158440.4A CN201811158440A CN109254850A CN 109254850 A CN109254850 A CN 109254850A CN 201811158440 A CN201811158440 A CN 201811158440A CN 109254850 A CN109254850 A CN 109254850A
Authority
CN
China
Prior art keywords
memory resource
collection process
current
dormant state
program
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
CN201811158440.4A
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.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen 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 Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN201811158440.4A priority Critical patent/CN109254850A/en
Publication of CN109254850A publication Critical patent/CN109254850A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation 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/5022Mechanisms to release resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5022Workload threshold
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/508Monitor

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System (AREA)

Abstract

This application discloses a kind of memory resource management method, system, computer equipment and computer readable storage mediums, the method comprise the steps that the collection process of starting memory resource;Judge whether current memory resource is sufficient;If current memory resource is sufficient, it is judged whether or not preset high priority program is in request memory resource;If controlling the collection process in request memory resource currently without preset high priority program and entering dormant state, and the collection process is made to keep dormant state in the sleep period with predetermined sleep time;After the sleep period, controls the collection process and release the dormant state and enter working condition to recycle memory resource.The method efficiently reduces the working hour of collection process under the premise of ensuring still can recycle memory resource in time, prevents from occupying multi-system resource in the collection process short time.

Description

Memory resource management method and system
Technical field
The present invention relates to computer storage tubes to manage technical field, in particular to a kind of memory resource management method and is System.
Background technique
In computer system, when operation program is more lead to Installed System Memory deficiency when, can by collection process backstage Available memory resource is recycled, operation program is released in time and uses.Such as in linux system, recycling can be passed through Process Kswapd is recycling the page being of little use from the background, and the memory resource for releasing these pages occupancy makes for other programs With.
However, in the prior art, collection process will continuously carry out recycling memory once opening from the background The operation of resource.In this working method, collection process will occupy a large amount of system resource for a long time, this may result in it in this way His program cannot get enough system resource, and then cause computer system to occur Caton at work, even collapse etc. of crashing Problem.
Summary of the invention
The present invention provides a kind of memory resource management method and systems, for solving in existing computer system Collection process can occupy the problem of a large amount of system resources for a long time.
Embodiment according to the present invention provides a kind of memory resource management method, comprising:
Start the collection process of memory resource;
Judge whether current memory resource is sufficient;
If current memory resource is inadequate, it is judged whether or not preset high priority program is stored in request Device resource;
If controlling the collection process entrance in request memory resource currently without preset high priority program and stopping Dormancy state, and the collection process is made to keep dormant state in the sleep period with predetermined sleep time;
After the sleep period, control the collection process release the dormant state and enter working condition with Recycle memory resource.
Preferably, detecting current memory resource, whether Chong Zu method includes:
The total capacity of current free storage is compared with preset capacity threshold;
If the total capacity of current free storage is higher than preset capacity threshold, judge that current memory resource fills Foot;If the total capacity of current free storage is lower than the capacity threshold, judge that current memory resource is inadequate.
Preferably, the memory resource management method further include:
If current memory resource is sufficient, the collection process is closed.
Preferably, the memory resource management method further include:
If current memory resource is inadequate, and currently has preset high priority program in request memory money Source then controls the collection process and does not enter dormant state and immediately enter working condition to recycle memory resource.
Preferably, the memory resource management method further include:
After controlling the collection process and entering working condition to recycle memory resource, make the collection process pre- Working condition is kept in fixed working hour;
After the working hour, whether sufficient current memory resource is detected;
If current memory resource is sufficient, the collection process is closed.
Preferably, detecting current memory resource, whether Chong Zu method includes:
The total capacity of current free storage is compared with preset capacity threshold;
If the total capacity of current free storage is higher than preset capacity threshold, judge that current memory resource fills Foot;If the total capacity of current free storage is lower than the capacity threshold, judge that current memory resource is inadequate.
Preferably, the memory resource management method is further comprising the steps of:
If current memory resource is inadequate, the collection process is controlled again and enters working condition to recycle storage Then device resource makes the collection process keep working condition within scheduled working hour;Or rejudge it is current whether There is preset high priority program in request memory resource, if currently without preset high priority program in request memory Resource then controls the collection process and enters dormant state, and makes the collection process in the suspend mode with predetermined sleep time Dormant state is kept in period.
Embodiments of the present invention also provide a kind of memory resource management system comprising resource reclaim module, resource Detection module and Programmable detection module;The resources detection module is used for: judging whether current memory resource is sufficient;It is described Programmable detection module is used for: if current memory resource is inadequate, it is judged whether or not preset high priority program In request memory resource;The resource reclaim module is used for: starting the collection process of memory resource;If currently without default High priority program request memory resource, then control the collection process and enter dormant state, and make it is described recycle into Journey keeps dormant state in the sleep period with predetermined sleep time;After the sleep period, control is described to be returned Journey is taken in release the dormant state and enter working condition to recycle memory resource.
Embodiments of the present invention also provide a kind of computer equipment, and the computer equipment includes memory and processing Device, the memory run the computer program so that the computer is set for storing computer program, the processor It is standby to execute the memory resource management method according to above-mentioned each embodiment.
Embodiments of the present invention also provide a kind of computer readable storage medium, are stored in above-mentioned computer equipment The computer program for storing and using.
According to above-mentioned embodiment, memory resource management method, system and corresponding calculating provided by the invention Machine equipment and computer readable storage medium can more reasonably control the collection process of memory resource, ensure still may be used Under the premise of recycling memory resource in time, the working time of collection process is efficiently reduced, prevents the collection process short time Multi-system resource was inside occupied, effectively further prevents computer system at work because collection process occupies system money There is Caton, crashes and even collapse in source and leading to problems such as.
Detailed description of the invention
Fig. 1 shows the process of the key step of the memory resource management method of an embodiment of the invention offer Schematic diagram.
Fig. 2 shows the streams of the key step of the memory resource management method of another embodiment of the invention offer Journey schematic diagram.
Fig. 3 shows the schematical structure side of the memory resource management system of an embodiment of the invention offer Block diagram.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention more comprehensible, referring to the drawings in conjunction with the embodiments, right The present invention is further described.
Referring to Fig. 1, an embodiment of the invention provides a kind of memory resource management method, this method is available In in common computer system (such as Windows system, linux system, Apple Macintosh operating system etc.), in department of computer science The program use that memory resource is provided with demand is recycled in the course of work of system, to prevent the program of operation is more from causing in system Deficiency is deposited, causes the Caton of computer, crash and even collapse.The memory resource management method may include following specific Step:
S1 starts the collection process of memory resource.
In this step, in the course of work of computer system, start the collection process of memory resource.The recycling into Journey can be the memory resource collection process carried in existing computer system, such as kswapd process.The collection process Starting mode can be to be determined to meet by the central controller (Central Processing Unit, CPU) of computer system Start automatically when certain entry condition, such as the collection process, Huo Zhe can be started automatically in the scheduled starting time Judge that current memory resource is insufficient and (judges whether Chong Zu specific method can use hereinafter current memory resource The method of detailed description) when start the collection process automatically;It is of course also possible to be manually controlled at any time by user according to subjective desire The computer system starting collection process.
S2 judges whether current memory resource is sufficient.
In step S2, the CPU of such as computer system can use to judge whether current memory resource fills Foot.Judge whether Chong Zu specific method may include following means to current memory resource:
The total capacity of current free storage is compared with preset capacity threshold.The preset capacity threshold can Be in existing computer system commonly for judge free storage total capacity whether Chong Zu memory capacity threshold value, Such as the memory capacity threshold value for the state that judges whether free storage total capacity is in " High Watermark ".
If the total capacity of current free storage is higher than preset capacity threshold, judge that current memory resource fills Foot;If the total capacity of current free storage is lower than the capacity threshold, judge that current memory resource is inadequate.
According to the judging result of step S2, next this method can choose has respectively entered following step S3a or S3.
S3a, if the judging result of the step S2 be it is yes, close the collection process.
If the judging result of the step S2 be it is yes, that is, judge that current memory resource is sufficient, then do not recycle at this time Necessity of free storage resources, therefore the collection process can be closed to prevent collection process occupying system resources, it waits Next time again since above-mentioned steps S1.
S3, if the judging result of the step S2 is no, it is judged whether or not preset high priority program is being asked Seek memory resource.
If the judging result of the step S2 be it is no, that is, judge that current memory resource is inadequate, then at this time may need The program use that memory resource is provided with demand is recycled by the collection process.It is well known that including kind in computer system The numerous program of class is likely to have multiple programs at this time while all having demand to memory resource.In order to ensure the storage of recycling Device resource can be first provided to it is most important, most it is necessary to maintain operate normally program use, starting recycling storage Before device resource, it can first determine whether currently with the presence or absence of preset high priority program in request memory resource.This place It states high priority program and refers to that when requesting memory resource in general the program of priority with higher can be In computer system maintain groundwork state necessary to program, such as basic control software program, display software program, Network protection software program etc. is also possible to be related to the important procedure of user benefit, such as on-line payment software program, voice Or video calling software program etc..
In step s3, it can use the CPU of such as computer system to determine whether there are preset high priorities Program maintains program necessary to groundwork state in computer system as escribed above or is related to the weight of user benefit Program is wanted, in request memory resource.According to the judging result of step S3, next this method can choose and have respectively entered down The step S4a or S4 stated.
S4a, if the judging result of the step S3 be it is yes, control the collection process and do not enter dormant state and immediately Into working condition to recycle memory resource.
If the judging result of the step S3 be it is yes, i.e., currently to be not only memory resource inadequate for judgement, but also deposits There is preset high priority program in request memory resource, then at this time in order to meet the needs of high priority program as early as possible, It can use the CPU of such as computer system and do not enter dormant state to control the collection process, but immediately enter work State receives and keeps memory resource back and forth.The specific method of collection process recycling memory resource can be it is known, such as In linux system, it can be recycled by kswapd process and be judged as text that is idle or being of little use according to existing standard Part caches (file cache).The memory resource of recycling can be supplied to high priority program according to existing method in real time It uses.
S4, if the judging result of the step S3 be it is no, control the collection process and enter dormant state, and make described Collection process keeps dormant state in the sleep period with predetermined sleep time.
If the judging result of the step S3 be it is no, i.e. judgement is not deposited in request there is no preset high priority program currently Memory resource, then collection process for a long time or in large quantities occupying system resources in order to prevent at this time, can not be eager to make at once Memory resource is received and kept back and forth with collection process, does not need more that collection process is maintained working condition for a long time.Therefore, at this In embodiment, in this case preferably using discontinuously, regularly control collection process recycles the work of memory resource Mode.Specifically, in step S4, once it is determined that the judging result of the step S3 be it is no, then be not eager to control first Collection process recycles memory resource, but first controls the collection process and enter dormant state, and the collection process is made to exist Dormant state is kept in sleep period with predetermined sleep time.Can be effectively prevented in this way collection process for a long time or Occupying system resources in large quantities.The duration of the sleep period can be such as 1 second, 5 seconds, 10 seconds, 30 seconds, these durations can Manufacturer to be computer system is preset, is also possible to by user's self-setting.After sleep period terminates, the party Method will enter following step S5, and collection process is begun to use to receive and keep memory resource back and forth, to prevent prolonged memory from providing The inadequate state in source generates damage to computer system.
S5 controls the collection process and releases the dormant state and enter work shape after the sleep period State is to recycle memory resource.
In step S5, the CPU of such as computer system can use to control the collection process and release described stop Dormancy state simultaneously enters working condition to recycle memory resource.The specific method of collection process recycling memory resource can be with It is known, such as in linux system, can be judged as by the recycling of kswapd process according to existing standard idle Or the file cache (file cache) being of little use.The memory resource of recycling can be provided in real time according to existing method To the program that all pairs of memory resources have demand carry out using.In this way it is prevented that the insufficient state of memory resource is held Continue the too long time and damage is generated to computer system.
Preferably, after the step S5, the memory resource management method can with the following steps are included:
S6 makes the collection process after controlling the collection process and entering working condition to recycle memory resource Working condition is kept within scheduled working hour.
In step S6, the CPU of such as computer system can use to control the collection process in scheduled work Make to keep working condition in the period, recycles the program use that memory resource is provided with demand, continuously to fill as far as possible The memory resource for dividing ground to be of little use using idle sum thoroughly eliminates the insufficient situation of memory resource as far as possible.It is described Working hour can be preset with certain duration, such as can be 1 second, 5 seconds, 10 seconds, 30 seconds etc., these durations can be calculating The manufacturer of machine system is preset, is also possible to by user's self-setting, working hour after continuing the preset duration Terminate.The working hour can also be preset with certain task quantity, such as can be recycling memory resource total amount Reach 512M, 1G, 2G etc., the manufacturer that these task quantity can be computer system is preset, be also possible to by with Family self-setting, the working hour terminates after completing the default working quantity.
Whether sufficient S7 detects current memory resource after the working hour.
After the working hour, collection process for a long time or in large quantities occupying system resources, need in order to prevent It determines whether to close collection process.Therefore in step S7, after the working hour, it can use and for example count Whether the CPU of calculation machine system is sufficient to detect current memory resource.Detect current memory resource whether Chong Zu tool Body method may include means below, the means such as this can with judge whether current memory resource fills in abovementioned steps S2 The means of foot are similar:
The total capacity of current free storage is compared with preset capacity threshold.The preset capacity threshold can Be in existing computer system commonly for judge free storage total capacity whether Chong Zu memory capacity threshold value, Such as the memory capacity threshold value for the state that judges whether free storage total capacity is in " High Watermark ".
If the total capacity of current free storage is higher than preset capacity threshold, judge that current memory resource fills Foot;If the total capacity of current free storage is lower than the capacity threshold, judge that current memory resource is inadequate.
According to the judging result of step S7, next this method can choose has respectively entered different steps:
S8, if the judging result of the step S7 be it is yes, close the collection process.
If the judging result of the step S7 be it is yes, show that current memory resource is sufficient, then do not recycle at this time Necessity of free storage resources, therefore the collection process can be closed to prevent collection process occupying system resources, it waits Next time again since above-mentioned steps S1.
Alternatively, if the judging result of the step S7 be it is no, return to the step S6.
If the judging result of the step S7 be it is no, show that the recycling of a working hour has been carried out in collection process deposits After memory resource work, current memory resource is still inadequate, it may be necessary to carry out one again using the collection process The recycling memory resource work of section time.Therefore, it can control again the collection process with return step S6 at this time and enter Then working condition makes the collection process keep working condition within scheduled working hour to recycle memory resource.According to According to the concrete operations means of step S6 as described above, protect the collection process still within another scheduled working hour Working condition is held, so as to the memory resource being more fully of little use using idle sum, thoroughly eliminates memory as far as possible The insufficient situation of resource.
As shown in Fig. 2, in other preferred embodiments, if the judging result of the step S7 be it is no, can also be with Selection returns to the step S3, and whether rejudge currently has preset high priority program in request memory resource;If working as The high priority program of preceding Non-precondition request memory resource, then according to step S4, control again the collection process into Enter dormant state, and the collection process is made to keep dormant state in the sleep period with predetermined sleep time.In this way may be used More efficiently to detect whether high priority program is badly in need of memory resource, if high priority program there is not memory resource There is urgent need, then makes collection process more suspend mode some periods, as far as possible saving system resource as far as possible.
In addition, the memory resource management method can also include following step in further preferred embodiment It is rapid:
After the step S4a, into the step S6.
The meaning of the step is, is beginning to use collection process recycling memory resource and by the memory resource of recycling It is supplied to after high priority program use, in order to fully meet the needs of high priority program as far as possible, it is necessary to make institute It states collection process and keeps working condition within certain period.It is therefore preferable that S6 is also entered step after the step S4a, this Sample can control the collection process and keep working condition within the scheduled working hour, in this way can be in the work Memory resource is continuously recycled in period and is supplied to high priority program, fully meets high priority program pair as far as possible The demand of memory resource.
Referring to Fig. 3, embodiments of the present invention also provide a kind of memory resource management system 100 comprising resource Recycling module 10, resources detection module 20 and Programmable detection module 30;The resources detection module 20 is used for: judging current deposit Whether memory resource is sufficient;Described program detection module 30 is used for: if current memory resource is inadequate, judge be currently It is no to have preset high priority program in request memory resource;The resource reclaim module 10 is used for: starting memory resource Collection process;If currently without preset high priority program request memory resource, control the collection process into Enter dormant state, and the collection process is made to keep dormant state in the sleep period with predetermined sleep time;Described After sleep period, controls the collection process and release the dormant state and enter working condition to recycle memory money Source.In this way, the memory resource management system 100 may be used for realizing depositing for above-mentioned embodiments of the present invention offer Memory resource management method.
Embodiments of the present invention also provide a kind of computer equipment, and the computer equipment includes memory and processing Device, the memory run the computer program so that the computer is set for storing computer program, the processor It is standby to execute the memory resource management method according to above-mentioned each embodiment.
Embodiments of the present invention also provide a kind of computer readable storage medium, are stored in above-mentioned computer equipment The computer program for storing and using.
According to above-mentioned embodiment, memory resource management method, system and corresponding calculating provided by the invention Machine equipment and computer readable storage medium can more reasonably control the collection process of memory resource, ensure still may be used Under the premise of recycling memory resource in time, the working time of collection process is efficiently reduced, prevents the collection process short time Multi-system resource was inside occupied, effectively further prevents computer system at work because collection process occupies system money There is Caton, crashes and even collapse in source and leading to problems such as.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and structure in attached drawing Figure shows the system frame in the cards of the device of multiple embodiments according to the present invention, method and computer program product Structure, function and operation.In this regard, each box in flowchart or block diagram can represent a module, section or code A part, a part of the module, section or code includes one or more for implementing the specified logical function Executable instruction.It should also be noted that function marked in the box can also be to be different from the implementation as replacement The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes It can execute in the opposite order, this depends on the function involved.It is also noted that in structure chart and/or flow chart The combination of each box and the box in structure chart and/or flow chart, can function or movement as defined in executing it is dedicated Hardware based system realize, or can realize using a combination of dedicated hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention can integrate one independence of formation together Part, be also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be intelligence Can mobile phone, personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), Random access memory (RAM, Random Access Memory), magnetic or disk etc. be various to can store program code Medium.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (10)

1. a kind of memory resource management method characterized by comprising
Start the collection process of memory resource;
Judge whether current memory resource is sufficient;
If current memory resource is inadequate, it is judged whether or not preset high priority program is in request memory money Source;
If controlling the collection process in request memory resource currently without preset high priority program and entering suspend mode shape State, and the collection process is made to keep dormant state in the sleep period with predetermined sleep time;
After the sleep period, controls the collection process and release the dormant state and enter working condition to recycle Memory resource.
2. memory resource management method as described in claim 1, which is characterized in that whether detect current memory resource Sufficient method includes:
The total capacity of current free storage is compared with preset capacity threshold;
If the total capacity of current free storage is higher than preset capacity threshold, judge that current memory resource is sufficient; If the total capacity of current free storage is lower than the capacity threshold, judge that current memory resource is inadequate.
3. memory resource management method as described in claim 1, which is characterized in that further include:
If current memory resource is sufficient, the collection process is closed.
4. memory resource management method as described in claim 1, which is characterized in that further include:
If current memory resource is inadequate, and currently has preset high priority program in request memory resource, then The collection process is controlled not enter dormant state and immediately enter working condition to recycle memory resource.
5. the memory resource management method as described in any one in claim 1-4, which is characterized in that further include:
After controlling the collection process and entering working condition to recycle memory resource, make the collection process scheduled Working condition is kept in working hour;
After the working hour, whether sufficient current memory resource is detected;
If current memory resource is sufficient, the collection process is closed.
6. memory resource management method as claimed in claim 5, which is characterized in that whether detect current memory resource Sufficient method includes:
The total capacity of current free storage is compared with preset capacity threshold;
If the total capacity of current free storage is higher than preset capacity threshold, judge that current memory resource is sufficient; If the total capacity of current free storage is lower than the capacity threshold, judge that current memory resource is inadequate.
7. memory resource management method as claimed in claim 5, which is characterized in that further include:
If current memory resource is inadequate, the collection process is controlled again and enters working condition to recycle memory money Then source makes the collection process keep working condition within scheduled working hour;Or rejudge currently whether have it is pre- If high priority program request memory resource, if currently without preset high priority program request memory money Source then controls the collection process and enters dormant state, and makes the collection process when with the suspend mode of predetermined sleep time Dormant state is kept in section.
8. a kind of memory resource management system, which is characterized in that the memory resource management system includes resource reclaim mould Block, resources detection module and Programmable detection module;The resources detection module is used for: judging whether current memory resource fills Foot;Described program detection module is used for: if current memory resource is inadequate, it is judged whether or not preset high preferential Program is weighed in request memory resource;The resource reclaim module is used for: starting the collection process of memory resource;If not having currently There is preset high priority program in request memory resource, then control the collection process and enter dormant state, and makes described Collection process keeps dormant state in the sleep period with predetermined sleep time;After the sleep period, control The collection process releases the dormant state and enters working condition to recycle memory resource.
9. a kind of computer equipment, it is characterised in that: the computer equipment includes memory and processor, the memory For storing computer program, the processor runs the computer program so that the computer equipment is executed as right is wanted Seek memory resource management method described in any one of 1-7.
10. a kind of computer readable storage medium, it is characterised in that: be stored with computer equipment as described in claim 9 Middle storage and the computer program used.
CN201811158440.4A 2018-09-30 2018-09-30 memory resource management method and system Pending CN109254850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811158440.4A CN109254850A (en) 2018-09-30 2018-09-30 memory resource management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811158440.4A CN109254850A (en) 2018-09-30 2018-09-30 memory resource management method and system

Publications (1)

Publication Number Publication Date
CN109254850A true CN109254850A (en) 2019-01-22

Family

ID=65045039

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811158440.4A Pending CN109254850A (en) 2018-09-30 2018-09-30 memory resource management method and system

Country Status (1)

Country Link
CN (1) CN109254850A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112148477A (en) * 2020-08-28 2020-12-29 杭州安恒信息技术股份有限公司 Service process processing method, electronic device and storage medium
WO2021047398A1 (en) * 2019-09-09 2021-03-18 Oppo广东移动通信有限公司 Method and device for storage block reclaiming, storage medium, and electronic device
WO2024099017A1 (en) * 2022-11-07 2024-05-16 蔚来移动科技有限公司 Process management method, and electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996258A (en) * 2006-12-28 2007-07-11 武汉虹旭信息技术有限责任公司 Method for implementing dynamic memory pool
CN105224469A (en) * 2014-06-16 2016-01-06 陈宏达 Active Memory Storage
CN105446814A (en) * 2014-09-30 2016-03-30 青岛海信移动通信技术股份有限公司 Cache recovery method and device
CN105468441A (en) * 2014-08-28 2016-04-06 中兴通讯股份有限公司 Processing method and apparatus for task process
CN105573842A (en) * 2015-12-21 2016-05-11 北京奇虎科技有限公司 Method and device for achieving process recycling in application
US9507637B1 (en) * 2013-08-08 2016-11-29 Google Inc. Computer platform where tasks can optionally share per task resources

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996258A (en) * 2006-12-28 2007-07-11 武汉虹旭信息技术有限责任公司 Method for implementing dynamic memory pool
US9507637B1 (en) * 2013-08-08 2016-11-29 Google Inc. Computer platform where tasks can optionally share per task resources
CN105224469A (en) * 2014-06-16 2016-01-06 陈宏达 Active Memory Storage
CN105468441A (en) * 2014-08-28 2016-04-06 中兴通讯股份有限公司 Processing method and apparatus for task process
CN105446814A (en) * 2014-09-30 2016-03-30 青岛海信移动通信技术股份有限公司 Cache recovery method and device
CN105573842A (en) * 2015-12-21 2016-05-11 北京奇虎科技有限公司 Method and device for achieving process recycling in application

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021047398A1 (en) * 2019-09-09 2021-03-18 Oppo广东移动通信有限公司 Method and device for storage block reclaiming, storage medium, and electronic device
CN112148477A (en) * 2020-08-28 2020-12-29 杭州安恒信息技术股份有限公司 Service process processing method, electronic device and storage medium
WO2024099017A1 (en) * 2022-11-07 2024-05-16 蔚来移动科技有限公司 Process management method, and electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN109254850A (en) memory resource management method and system
US9952903B2 (en) Background task resource control
CN105302637B (en) System process is operating abnormally restoration methods, device and the mobile terminal for causing Caton
US8601493B2 (en) Application controlling apparatus and storage medium which stores software for the apparatus
CN100478898C (en) Apparatus, system, and method for resolving computing resource deadlocks
CN106020967B (en) A kind of automatic expansion method of hybrid cloud resource
US8677168B2 (en) Allocating power in devices by reserving a static power allocation to be used by one or more predetermined subsystems and reserving a dynamic power allocation to be used when the static power allocation is insufficient
CN109783157B (en) Method and related device for loading algorithm program
CN103218307B (en) Internal storage management system and EMS memory management process
CN111625456B (en) Clamping positioning method and device
CN106776113A (en) A kind of virtual machine backup method and device
CN113934615A (en) Data monitoring method, device and equipment
CN109558244A (en) Junk information recovery method, device, equipment and computer readable storage medium
CN111475299B (en) Memory allocation method and device, storage medium and electronic equipment
CN112395045A (en) Virtual machine recovery and resource adjustment method thereof
CN114968304A (en) OTA (over the air) upgrading method and device, storage medium and electronic equipment
CN109670932B (en) Credit data accounting method, apparatus, system and computer storage medium
CN101625650A (en) Controlling a computer system having a processor including a plurality of cores
CN106874064A (en) A kind of management system of virtual machine
KR102301397B1 (en) Apparatus and method for controlling standby power of mobile terminal
CN110852680A (en) Data processing method, ERP system and computer storage medium
CN115617553A (en) Fusing degradation protection method and device for database and electronic equipment
CN114987265A (en) Parking charging method and device, electronic equipment and readable storage medium
CN115794306A (en) Resource allocation method and device based on preemption instance, electronic equipment and medium
CN114706663A (en) Computing resource scheduling method, medium and computing device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190122