CN101582051A - Method and device for adjusting memory - Google Patents

Method and device for adjusting memory Download PDF

Info

Publication number
CN101582051A
CN101582051A CNA2009100871641A CN200910087164A CN101582051A CN 101582051 A CN101582051 A CN 101582051A CN A2009100871641 A CNA2009100871641 A CN A2009100871641A CN 200910087164 A CN200910087164 A CN 200910087164A CN 101582051 A CN101582051 A CN 101582051A
Authority
CN
China
Prior art keywords
memory
client machine
free memory
free
committed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2009100871641A
Other languages
Chinese (zh)
Other versions
CN101582051B (en
Inventor
华有为
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN2009100871641A priority Critical patent/CN101582051B/en
Publication of CN101582051A publication Critical patent/CN101582051A/en
Application granted granted Critical
Publication of CN101582051B publication Critical patent/CN101582051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for adjusting memory, belonging to the communication computer field. The method comprises the following steps: acquiring initial used memory; according to the initial used memory, using the memory of a client computer; detecting the available memory of the current client computer, if the detected available memory is less than the threshold of the available memory of the client computer, releasing part of the initial used memory to the client computer, if the detected available memory is more than the threshold of the available memory of the client computer, using residual available memory in the client computer. The device comprises an acquisition module, a distribution module, a detection module, a release module and a use module. By periodically detecting the usage condition of the memory in the client computer, dynamically adjusting the memory used by software in the client computer and reasonably using the memory of the client computer, the running speed of the client computer is accelerated and the use experiences of the users are improved.

Description

A kind of method and apparatus of adjusting internal memory
Technical field
The present invention relates to communication computer field, particularly a kind of method and apparatus of adjusting internal memory.
Background technology
Along with development of Communication Technique, the working procedure of software is increasing, and is also increasing to the EMS memory occupation of client machine, though the physical memory of client machine improves constantly at present, internal memory remains the very important hardware resource of client machine.
The machine internal memory is as the important hardware resource on the client machine, and whether use has rationally directly determined user's the experience and the service efficiency of internal memory, and especially bigger to some exchanges data software is as P2P (Peer to Peer, point-to-point) software.Because P2P software needs also will constantly upload data to other client machines simultaneously constantly from other client machine data download, exists lot of data to share, so particularly important to the reasonable utilization of machine internal memory.
At present, be distribution according to need for the distribution method of machine internal memory, promptly software needs great internal memory, just takies much in the machine internal memory.
The inventor realize when of the present invention by analysis with research after, find that there is following shortcoming and defect at least in prior art:
The demand assigned memory allocation method, the program of a plurality of softwares is moved simultaneously in client machine, if the program run of software in client machine as required EMS memory occupation very big machine internal memory, then free memory is very little in the machine, processing speed can reduce greatly, makes that user's experience is very poor; If the program run of software takies the machine memory headroom when very little as required in client machine, then free memory is very big in the machine, and the machine memory source will have and waste, and reduce the service efficiency of machine internal memory.
Summary of the invention
For the service efficiency that improves the client machine internal memory and user's experience, the embodiment of the invention provides a kind of method and apparatus of adjusting internal memory.Described technical scheme is as follows:
The embodiment of the invention provides a kind of method of adjusting internal memory, and described method comprises:
Obtain initial committed memory;
According to described initial committed memory, take the client machine internal memory;
Detect the free memory of active client machine;
If, then discharging the partial memory of described initial committed memory less than the free memory threshold value of client machine, the free memory of described detection gives described client machine;
If the free memory of described detection more than or equal to the free memory threshold value of client machine, then takies the residue free memory in the client machine.
Wherein, give described client machine, specifically comprise if the free memory of described detection, then discharges the partial memory of described initial committed memory less than the free memory threshold value of client machine:
Described free memory threshold value and described free memory are asked poor, obtain the not enough free memory in the client machine;
Described initial committed memory and minimum internal memory are asked poor, obtain maximum releasing memory;
If, then discharging the internal memory of described not enough free memory size greater than described not enough free memory, described maximum releasing memory gives described client machine;
If, then discharging the internal memory of described maximum releasing memory size smaller or equal to described not enough free memory, described maximum releasing memory gives described client machine.
Wherein, if the free memory of described detection more than or equal to the free memory threshold value of client machine, then takies the residue free memory in the client machine, specifically comprise:
Described free memory and described free memory threshold value are asked poor, obtain the residue free memory in the client machine;
With described residue free memory and the summation of current committed memory, obtain new committed memory;
According to described new committed memory, take described client machine internal memory.
Wherein, describedly obtain initial committed memory, comprising:
Obtain the initial committed memory of client machine acquiescence; Or, obtain pre-configured initial committed memory.
Wherein, the free memory of described detection active client machine comprises:
According to the default time interval, regularly detect the free memory of described client machine, so that regulate shared memory size according to the result of described each detection.
The embodiment of the invention also provides a kind of device of adjusting internal memory, and described device comprises:
Acquisition module is used to obtain initial committed memory;
Distribution module is used for the initial committed memory that obtains according to described acquisition module, takies the client machine internal memory;
Detection module is used to detect the free memory of active client machine;
Release module is given described client machine if the free memory that described detection module detects, then discharges the partial memory of described initial committed memory less than the free memory threshold value of client machine;
Take module, if the free memory that described detection module detects then takies the residue free memory in the client machine more than or equal to the free memory threshold value of client machine.
Wherein, described release module specifically comprises:
First processing unit is used for the free memory of described free memory threshold value and the detection of described detection module is asked poor, obtains the not enough free memory in the client machine;
Second processing unit is used for described initial committed memory and minimum internal memory are asked poor, obtains maximum releasing memory;
First releasing unit, if be used for described maximum releasing memory greater than described not enough free memory, the internal memory that then discharges described not enough free memory size is given described client machine;
Second releasing unit, if be used for described maximum releasing memory smaller or equal to described not enough free memory, the internal memory that then discharges described maximum releasing memory size is given described client machine.
Wherein, the described module that takies specifically comprises:
The 3rd processing unit is used for free memory and described free memory threshold value that described detection module detects are asked poor, obtains the residue free memory in the client machine;
The manages the unit everywhere, is used for described residue free memory and the summation of current committed memory are obtained new committed memory;
Take the unit, be used for taking described client machine internal memory according to described new committed memory.
Wherein, described acquisition module comprises:
First acquiring unit is used to obtain the initial committed memory that client machine is given tacit consent to;
Second acquisition unit is used to obtain pre-configured initial committed memory.
Wherein, described detection module comprises:
Detecting unit was used for according to the default time interval, regularly detected the free memory of described client machine.
The beneficial effect of the technical scheme that the embodiment of the invention provides is:
The scheme that the embodiment of the invention provides, by regularly detecting the internal memory operating position in the client machine, the memory size that dynamic adjustment software takies in client machine, reasonably used the internal memory of client machine, accelerate the travelling speed of client machine, improved user's experience.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method flow synoptic diagram that the embodiment of the invention 1 provides;
Fig. 2 is the method flow synoptic diagram that the embodiment of the invention 2 provides;
Fig. 3 is the device result schematic diagram that the embodiment of the invention 3 provides.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention is clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Embodiment 1
For the service efficiency that improves the client machine internal memory and user's experience, the embodiment of the invention provides a kind of method of adjusting internal memory, and referring to Fig. 1, this method comprises:
101: obtain initial committed memory;
102:, take the client machine internal memory according to initial committed memory;
103: the free memory that detects the active client machine;
104: give client machine if the free memory that detects, then discharges the partial memory of initial committed memory less than the free memory threshold value of client machine;
105: if the free memory that detects then takies the residue free memory in the client machine more than or equal to the free memory threshold value of client machine.
Wherein, give client machine, specifically comprise if the free memory that detects, then discharges the partial memory of initial committed memory less than the free memory threshold value of client machine:
Free memory threshold value and free memory are asked poor, obtain the not enough free memory in the client machine;
Initial committed memory and minimum internal memory are asked poor, obtain maximum releasing memory;
If, then discharging the internal memory of not enough free memory size greater than not enough free memory, maximum releasing memory gives client machine;
If, then discharging the internal memory of maximum releasing memory size smaller or equal to not enough free memory, maximum releasing memory gives client machine.
Wherein, if the free memory that detects then takies the residue free memory in the client machine more than or equal to the free memory threshold value of client machine, specifically comprise:
Free memory and free memory threshold value are asked poor, obtain the residue free memory in the client machine;
To remain the summation of free memory and current committed memory, obtain new committed memory;
According to new committed memory, take the client machine internal memory.
Wherein, obtain initial committed memory, comprising:
Obtain the initial committed memory of client machine acquiescence; Or, obtain pre-configured initial committed memory.
Wherein, detect the free memory of active client machine, comprising:
According to the default time interval, regularly detect the free memory of client machine, so that regulate shared memory size according to the result of each detection.
The method that the embodiment of the invention provides, by regularly detecting the internal memory operating position in the client machine, the memory size that dynamic adjustment software takies in client machine, reasonably used the internal memory of client machine, accelerate the travelling speed of client machine, improved user's experience.
Embodiment 2
For the service efficiency that improves the client machine internal memory and user's experience, the embodiment of the invention provides a kind of method of adjusting internal memory, size by the adaptive adjustment working procedure of software program self, make the client machine internal memory rationally to use, be example with P2P software in the embodiment of the invention wherein, referring to Fig. 2, concrete workflow synoptic diagram is as follows:
201: client machine starts, and the P2P software program starts in client machine;
Wherein, after client machine starts, a plurality of software program operations are arranged simultaneously in client machine generally when the P2P software program starts in client machine, take the internal memory of client machine jointly;
When P2P software has just started operation in client machine, can set by minimum EMS memory occupation machine internal memory; The minimum internal memory here refers to P2P software can normally move needed minimum memory headroom; For example: certain P2P software program needs 200M when normally moving, and saves as 100M in the minimum, represents that this P2P software has only at internal memory under the situation of 100M, just can move.Wherein, for the setting of the minimum internal memory of P2P software, be provided with flexibly as the case may be, the embodiment of the invention does not limit this.
202:P2P software obtains the initial committed memory of current this P2P software;
Wherein, P2P software obtains the initial committed memory of current this P2P software, specifically comprises following dual mode:
(1) obtains initial committed memory default in P2P software;
Wherein, can set in advance initial committed memory in P2P software, when this P2P software moved in client machine, P2P software obtained this initial committed memory; For example: initial committed memory default in the P2P software is 250M, will obtain this initial committed memory when then P2P software moves in client machine, and is taking the machine internal memory according to this initial committed memory.Wherein, initial committed memory default in the P2P software can be revised flexibly according to actual conditions, such as when the P2P software upgrading or when increasing new function, and the size of the initial committed memory value of raising that can be suitable.
(2) from configuration server, obtain the initial committed memory of this P2P software;
Wherein, configuration server needs the initial committed memory of P2P software is configured in advance, when configuration, can the frequency of utilization of this P2P software and the various factorss such as busy extent of user's recent work be configured, referring to table 1 according to size, the minimum internal memory of this P2P software, the size of client machine internal memory, the user of this P2P software.
Table 1
P2P software The software size Minimum internal memory The machine internal memory Frequency of utilization (inferior/day) Busy extent Initial committed memory
P2P software 1 200M 80M 1G 5 Busy 80M
P2P software 2 150M 70M 1G 1 Be not in a hurry 100M
P2P software 3 120M 50M 2G 0.5 Busy 120M
In the table 1, the software size of P2P software 1 is 200M, save as 80M in the minimum, save as 1G in the machine, frequency of utilization is one day 5 times, illustrates that the user often uses this P2P software, but because user's recent work is busier, take bigger machine internal memory, so configuration server has only been given this P2P software arrangements initial committed memory of 80M; Wherein, configuration server is greater than the minimum internal memory that equals this P2P software when giving the initial committed memory of software arrangements, because the minimum internal memory of P2P software is the condition that guarantees this P2P software operate as normal; If the initial committed memory of configuration is less than the minimum internal memory of this P2P software, then this P2P software can't start operation.
The software size of P2P software 2 is 150M, save as 70M in the minimum, save as 1G in the machine, frequency of utilization is one day 1 time, illustrate that the user more often uses this P2P software, and user's recent work is not in a hurry, but owing to save as 1G in the machine, may move a plurality of softwares in the machine internal memory, so configuration server has been given this P2P software arrangements initial committed memory of 100M.
The software size of P2P software 3 is 120M, save as 50M in the minimum, save as 2G in the machine, frequency of utilization is one day 0.5 time, illustrate that the user does not often use this P2P software, user's recent work is also busier, but owing to save as 2G in the machine, enough free memory working procedures are arranged, so configuration server has been given this P2P software arrangements initial committed memory of 120M.
Configuration server is stored in the configuration server after giving the initial committed memory of P2P software arrangements; The initial committed memory of in store a plurality of softwares in the configuration server when software moves, obtains corresponding initial committed memory in configuration server in client machine.
Configuration server can be the server that is specifically designed to the initial committed memory of configuration, also can be that other arbitraryly have a server that can dispose initial EMS memory occupation function.
In the step 202, P2P software also can not need to obtain the initial committed memory of current this P2P software, but takies the machine internal memory according to the initial committed memory of acquiescence, and such as giving tacit consent to all software when starting operation, initial committed memory is 100M; Wherein, be provided with P2P software the initial committed memory of acquiescence can be client machine when promptly all software programs in the operation of this client start initial committed memories all be 100M, also can be provided with by any other server, generally will consider the minimum internal memory of the software that is moved when being provided with, to guarantee the normal startup of software.
203:P2P software takies the operation of client machine internal memory according to the initial committed memory that obtains;
Wherein, P2P software takies the operation of client machine internal memory according to the initial committed memory of this P2P software that obtains in the step 202.
If the client machine internal memory too little minimum internal memory that can not satisfy P2P software of free memory at this moment, P2P software can't normally move, can call virtual memory and move this P2P software, increase if detect the free memory of client machine in follow-up process, this P2P software reruns.
Through step 201-203, finished the startup operational process of P2P software, after the normal operation of P2P software, the operating position that also needs continuous detection machine internal memory, so that can adjust the size of P2P running software program dynamically, and then rational and effective utilizes the machine internal memory, and concrete dynamic adjustment process is referring to step 204-207.
Behind the 204:P2P running software, regularly detect the free memory of active client machine;
Wherein, after the committed memory operation, according to the default time interval, timing is according to the size to free memory in the active client machine in client machine for the initial committed memory that P2P software basis is obtained.Wherein, for the setting in the time interval, can set flexibly according to actual conditions, the embodiment of the invention does not limit this.
205:P2P software judges that whether free memory is less than preset threshold, if carry out 206 in the active client machine; Otherwise, carry out 207.
Wherein, free memory in the client machine is preestablished a threshold value; If free memory is less than this threshold value in the active client machine, low free memory in the active client machine is described, influenced the operation of each software in the client machine, need to increase free memory; If free memory is more than or equal to this threshold value in the active client machine, illustrate that free memory is bigger in the active client machine, there is unnecessary internal memory to use, a part of free memory can be used to move P2P software.Wherein, the threshold value of free memory is set flexibly according to the actual conditions of client machine, such as the free memory that can set client machine is 30%, is 30% of client machine memory size.If, be lower than this value, then need P2P software to discharge a part of internal memory, if be higher than this value, the free memory residue of client machine is described, can be used for the P2P running software this moment with a part of free memory.
206:P2P software release portion internal memory is given client machine, as the free memory of client machine;
Wherein, P2P software judges that free memory is known low free memory in the active client machine less than preset threshold value in the active client machine, and P2P software internal memory that release portion is being moved then is to increase free memory in the client machine.
The internal memory that must guarantee self to use behind the internal memory that P2P software is discharged is more than or equal to minimum internal memory, to guarantee the normal operation of P2P software.For example: current P2P software detection free memory in the active client machine is 100M, and the threshold value of free memory is 200M in the client machine, free memory also needs 100M in the client machine, save as 150M in the current use of P2P software, and save as 100M in the minimum, then P2P software can only discharge the internal memory of 50M at most to client machine.If P2P software releasable internal memory need greater than client machine free memory the time, then discharge the free memory that client machine needs, and need not whole releases; For example: current P2P software detection free memory in the active client machine is 100M, and the threshold value of free memory is 200M in the client machine, free memory also needs 100M in the client machine, save as 300M in the current use of P2P software, and save as 100M in the minimum, then the P2P software internal memory that can discharge 200M is at most given client machine, but this moment, client machine only needed the free memory of 100M, and then P2P software only need discharge 100M and gets final product.
207:P2P software reconfigures the new committed memory of P2P software, and according to new committed memory, takies the internal memory of client machine.
If judge that free memory can reconfigure new committed memory by configuration server more than or equal to preset threshold in the active client machine, P2P software takies the internal memory of client machine according to new committed memory.
Wherein, when the new committed memory of configuration, active client machine free memory and free memory preset threshold are asked poor, obtain configurable free memory; To configurable free memory and the current committed memory summation of P2P software, obtain new committed memory; P2P software takies the internal memory of client machine according to new committed memory.
For example: active client machine free memory is 300M, and client machine free memory preset threshold is 200M, and then configurable free memory is 100M; And P2P software current taking in save as 150M, then new committed memory is 350M; P2P software will take the internal memory of client machine according to 350M later.
After step 207 executes, after a time interval, continue execution in step 204-207, by execution in step 204-207 repeatedly, realize the purpose of the memory size that dynamic adjustment software takies in client machine, reasonably used the internal memory of client machine.
Above-mentioned steps 204-207 by the operating position of one-time detection machine internal memory, realized adjusting dynamically the size of P2P running software program, and then rational and effective is utilized the machine internal memory.
Be example with P2P software in the embodiment of the invention, the method that the embodiment of the invention provides also is applicable to other any software that moves in client machine, realize the program size that the dynamic P2P of adjustment software moves in client machine, realized reasonable utilization, improved service efficiency the client machine internal memory.
The method that provides in the embodiment of the invention is specially adapted to P2P software, because P2P software has a lot of shared data, need constantly to download the data of other clients, the data that also need simultaneously constantly to upload self are given other clients, if rationally adjust internal memory, can so that client machine will be in internal memory the data download of buffer memory, be uploaded to the client that other need these data simultaneously; Perhaps read a given data from hard disk, being uploaded to a plurality of other simultaneously needs the client of these data at every turn, thereby reduces the reading times of hard disk, improves travelling speed.
The method that the embodiment of the invention provides, by regularly detecting the internal memory operating position in the client machine, the memory size that dynamic adjustment software takies in client machine, reasonably used the internal memory of client machine, accelerate the travelling speed of client machine, improved user's experience.
Embodiment 3
The embodiment of the invention also provides a kind of device of adjusting internal memory, and referring to Fig. 3, this device comprises:
Acquisition module 301 is used to obtain initial committed memory;
Distribution module 302 is used for the initial committed memory that obtains according to acquisition module 301, takies the client machine internal memory;
Detection module 303 is used to detect the free memory of active client machine;
Release module 304 is given client machine if the free memory that detection module 303 detects, then discharges the partial memory of initial committed memory less than the free memory threshold value of client machine;
Take module 305, if the free memory that detection module 303 detects then takies the residue free memory in the client machine more than or equal to the free memory threshold value of client machine.
Wherein, release module 304 specifically comprises:
First processing unit is used for the free memory of free memory threshold value and detection module 303 detections is asked poor, obtains the not enough free memory in the client machine;
Second processing unit is used for initial committed memory and minimum internal memory are asked poor, obtains maximum releasing memory;
First releasing unit, if be used for maximum releasing memory greater than not enough free memory, the internal memory that then discharges not enough free memory size is given client machine;
Second releasing unit, if be used for maximum releasing memory smaller or equal to not enough free memory, the internal memory that then discharges maximum releasing memory size is given client machine.
Wherein, take module 305, specifically comprise:
The 3rd processing unit is used for free memory and free memory threshold value that detection module 303 detects are asked poor, obtains the residue free memory in the client machine;
The manages the unit everywhere, is used for residue free memory and the summation of current committed memory are obtained new committed memory;
Take the unit, be used for taking the client machine internal memory according to new committed memory.
Wherein, acquisition module comprises:
First acquiring unit is used to obtain the initial committed memory that client machine is given tacit consent to;
Second acquisition unit is used to obtain pre-configured initial committed memory.
Wherein, detection module 303 comprises:
Detecting unit was used for according to the default time interval, regularly detected the free memory of client machine.
The device that the embodiment of the invention provides, regularly detect internal memory operating position in the client machine by detection module 303, release module 304 and take that module 305 is dynamic adjusts the memory size that softwares take in client machine, reasonably used the internal memory of client machine, accelerate the travelling speed of client machine, improved user's experience.
" reception " speech in the embodiment of the invention can be understood as and initiatively obtains from other modules also can be to receive the information that other modules are sent.
It will be appreciated by those skilled in the art that accompanying drawing is the synoptic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
Part steps in the embodiment of the invention can utilize software to realize that corresponding software programs can be stored in the storage medium that can read, as CD or hard disk etc.
Below only be preferred embodiment of the present invention, or not within the spirit and principles in the present invention not all in order to restriction the present invention, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1, a kind of method of adjusting internal memory is characterized in that, described method comprises:
Obtain initial committed memory;
According to described initial committed memory, take the client machine internal memory;
Detect the free memory of active client machine;
If, then discharging the partial memory of described initial committed memory less than the free memory threshold value of client machine, the free memory of described detection gives described client machine;
If the free memory of described detection more than or equal to the free memory threshold value of client machine, then takies the residue free memory in the client machine.
2, the method for claim 1 is characterized in that, gives described client machine if the free memory of described detection, then discharges the partial memory of described initial committed memory less than the free memory threshold value of client machine, specifically comprises:
Described free memory threshold value and described free memory are asked poor, obtain the not enough free memory in the client machine;
Described initial committed memory and minimum internal memory are asked poor, obtain maximum releasing memory;
If, then discharging the internal memory of described not enough free memory size greater than described not enough free memory, described maximum releasing memory gives described client machine;
If, then discharging the internal memory of described maximum releasing memory size smaller or equal to described not enough free memory, described maximum releasing memory gives described client machine.
3, the method for claim 1 is characterized in that, if the free memory of described detection more than or equal to the free memory threshold value of client machine, then takies the residue free memory in the client machine, specifically comprises:
Described free memory and described free memory threshold value are asked poor, obtain the residue free memory in the client machine;
With described residue free memory and the summation of current committed memory, obtain new committed memory;
According to described new committed memory, take described client machine internal memory.
4, the method for claim 1 is describedly obtained initial committed memory, comprising:
Obtain the initial committed memory of client machine acquiescence; Or, obtain pre-configured initial committed memory.
5, the method for claim 1 is characterized in that, the free memory of described detection active client machine comprises:
According to the default time interval, regularly detect the free memory of described client machine, so that regulate shared memory size according to the result of described each detection.
6, a kind of device of adjusting internal memory is characterized in that, described device comprises:
Acquisition module is used to obtain initial committed memory;
Distribution module is used for the initial committed memory that obtains according to described acquisition module, takies the client machine internal memory;
Detection module is used to detect the free memory of active client machine;
Release module is given described client machine if the free memory that described detection module detects, then discharges the partial memory of described initial committed memory less than the free memory threshold value of client machine;
Take module, if the free memory that described detection module detects then takies the residue free memory in the client machine more than or equal to the free memory threshold value of client machine.
7, device as claimed in claim 6 is characterized in that, described release module specifically comprises:
First processing unit is used for the free memory of described free memory threshold value and the detection of described detection module is asked poor, obtains the not enough free memory in the client machine;
Second processing unit is used for described initial committed memory and minimum internal memory are asked poor, obtains maximum releasing memory;
First releasing unit, if be used for described maximum releasing memory greater than described not enough free memory, the internal memory that then discharges described not enough free memory size is given described client machine;
Second releasing unit, if be used for described maximum releasing memory smaller or equal to described not enough free memory, the internal memory that then discharges described maximum releasing memory size is given described client machine.
8, device as claimed in claim 6 is characterized in that, the described module that takies specifically comprises:
The 3rd processing unit is used for free memory and described free memory threshold value that described detection module detects are asked poor, obtains the residue free memory in the client machine;
The manages the unit everywhere, is used for described residue free memory and the summation of current committed memory are obtained new committed memory;
Take the unit, be used for taking described client machine internal memory according to described new committed memory.
9, device as claimed in claim 6, described acquisition module comprises:
First acquiring unit is used to obtain the initial committed memory that client machine is given tacit consent to;
Second acquisition unit is used to obtain pre-configured initial committed memory.
10, device as claimed in claim 6 is characterized in that, described detection module comprises:
Detecting unit was used for according to the default time interval, regularly detected the free memory of described client machine.
CN2009100871641A 2009-06-10 2009-06-10 Method and device for adjusting memory Active CN101582051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100871641A CN101582051B (en) 2009-06-10 2009-06-10 Method and device for adjusting memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100871641A CN101582051B (en) 2009-06-10 2009-06-10 Method and device for adjusting memory

Publications (2)

Publication Number Publication Date
CN101582051A true CN101582051A (en) 2009-11-18
CN101582051B CN101582051B (en) 2011-01-19

Family

ID=41364204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100871641A Active CN101582051B (en) 2009-06-10 2009-06-10 Method and device for adjusting memory

Country Status (1)

Country Link
CN (1) CN101582051B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101908022A (en) * 2010-08-13 2010-12-08 优视科技有限公司 Method and device for managing internal memory of mobile communication equipment terminal
CN102098298A (en) * 2010-12-29 2011-06-15 福建星网锐捷网络有限公司 Method for preventing filtering resource from being exhausted and network access equipment
CN102541654A (en) * 2010-12-31 2012-07-04 新奥特(北京)视频技术有限公司 Efficient memory management method and device
CN103024538A (en) * 2012-11-12 2013-04-03 北京奇虎科技有限公司 Memory management method and system
CN103226486A (en) * 2013-04-23 2013-07-31 北京奇虎科技有限公司 Optimization method and device for browser operation
CN103345447A (en) * 2013-06-21 2013-10-09 大唐移动通信设备有限公司 Memory management method and system
CN103617129A (en) * 2013-12-10 2014-03-05 中科创达软件股份有限公司 Method and device for processing memory
CN103927230A (en) * 2014-03-25 2014-07-16 优视科技有限公司 Memory usage feedback method and device
CN104008062A (en) * 2013-02-25 2014-08-27 腾讯科技(深圳)有限公司 Internal memory management method and internal memory management device
CN104866331A (en) * 2014-02-25 2015-08-26 中国电信股份有限公司 Method and device for installing and calling applications on mobile terminal
CN109284188A (en) * 2018-09-03 2019-01-29 武汉斗鱼网络科技有限公司 A kind of buffer number group maintenance method, apparatus, terminal and readable medium
CN112416569A (en) * 2020-09-17 2021-02-26 上海哔哩哔哩科技有限公司 Cache memory adjusting method and device and computer equipment

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101908022A (en) * 2010-08-13 2010-12-08 优视科技有限公司 Method and device for managing internal memory of mobile communication equipment terminal
CN102098298A (en) * 2010-12-29 2011-06-15 福建星网锐捷网络有限公司 Method for preventing filtering resource from being exhausted and network access equipment
CN102098298B (en) * 2010-12-29 2014-07-30 福建星网锐捷网络有限公司 Method for preventing filtering resource from being exhausted and network access equipment
CN102541654A (en) * 2010-12-31 2012-07-04 新奥特(北京)视频技术有限公司 Efficient memory management method and device
CN103024538A (en) * 2012-11-12 2013-04-03 北京奇虎科技有限公司 Memory management method and system
CN104008062B (en) * 2013-02-25 2018-03-27 腾讯科技(深圳)有限公司 EMS memory management process and memory management device
CN104008062A (en) * 2013-02-25 2014-08-27 腾讯科技(深圳)有限公司 Internal memory management method and internal memory management device
CN103226486B (en) * 2013-04-23 2016-08-10 北京奇虎科技有限公司 The method and apparatus that browser execution is optimized
CN103226486A (en) * 2013-04-23 2013-07-31 北京奇虎科技有限公司 Optimization method and device for browser operation
CN103345447A (en) * 2013-06-21 2013-10-09 大唐移动通信设备有限公司 Memory management method and system
CN103345447B (en) * 2013-06-21 2016-06-08 大唐移动通信设备有限公司 EMS memory management process and system
CN103617129A (en) * 2013-12-10 2014-03-05 中科创达软件股份有限公司 Method and device for processing memory
CN104866331A (en) * 2014-02-25 2015-08-26 中国电信股份有限公司 Method and device for installing and calling applications on mobile terminal
CN104866331B (en) * 2014-02-25 2018-06-01 中国电信股份有限公司 The method and apparatus of application is installed, called on mobile terminals
CN103927230B (en) * 2014-03-25 2017-03-29 优视科技有限公司 A kind of feedback method and device of internal memory behaviour in service
CN103927230A (en) * 2014-03-25 2014-07-16 优视科技有限公司 Memory usage feedback method and device
CN109284188A (en) * 2018-09-03 2019-01-29 武汉斗鱼网络科技有限公司 A kind of buffer number group maintenance method, apparatus, terminal and readable medium
CN109284188B (en) * 2018-09-03 2020-10-16 武汉斗鱼网络科技有限公司 Buffer array maintenance method, device, terminal and readable medium
CN112416569A (en) * 2020-09-17 2021-02-26 上海哔哩哔哩科技有限公司 Cache memory adjusting method and device and computer equipment
CN112416569B (en) * 2020-09-17 2022-12-06 上海哔哩哔哩科技有限公司 Cache memory adjusting method and device and computer equipment

Also Published As

Publication number Publication date
CN101582051B (en) 2011-01-19

Similar Documents

Publication Publication Date Title
CN101582051B (en) Method and device for adjusting memory
CN107526640B (en) Resource management method, resource management device, mobile terminal and computer-readable storage medium
CN105183565A (en) Computer and service quality control method and device
TW200627279A (en) A prioritization system
US20180262284A1 (en) Method, apparatus and terminal device for sending broadcast
CN103327582B (en) Method for adjustment voltage of power amplifier and base station
CN107818012B (en) Data processing method and device and electronic equipment
CN103049327A (en) Method and device for mounting many storage devices on android system
CN104423887A (en) Method and system for managing mobile equipment memory
CN111309644A (en) Memory allocation method and device and computer readable storage medium
CN108806679B (en) Voice wake-up method and device
JP2019503119A (en) Using network-supported protocols to improve network utilization
CN106293885B (en) Task creation, hang-up and restoration methods
CN101415179B (en) Method, apparatus and system for automatically switching business
US20200145812A1 (en) Method and system for interaction between ap and modem, and storage medium
US10990460B2 (en) Method of generating broadcast queue, storage medium, and terminal
CN115421919A (en) Memory management method and device, memory manager, equipment and storage medium
US11388274B2 (en) Method for implementing high availability of bare metal node based on OpenStack and electronic device using the same
CN111052083B (en) Method and apparatus for managing scheduling of services during startup
EP3812909B1 (en) Terminal, and type c interface anti-corrosion method
CN102421122B (en) Service processing method and equipment
CN108228342B (en) Terminal device control method and device, terminal device and computer readable storage medium
CN104156316A (en) Hadoop cluster batch processing method and system
WO2016101637A1 (en) Cross-system dynamic power resource sharing method and apparatus
CN116016276A (en) Method and device for detecting health state of server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant