CN103294782B - A kind of data exhibiting process and device - Google Patents

A kind of data exhibiting process and device Download PDF

Info

Publication number
CN103294782B
CN103294782B CN201310180136.0A CN201310180136A CN103294782B CN 103294782 B CN103294782 B CN 103294782B CN 201310180136 A CN201310180136 A CN 201310180136A CN 103294782 B CN103294782 B CN 103294782B
Authority
CN
China
Prior art keywords
data
buffer area
cache threshold
data buffer
internal memory
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.)
Active
Application number
CN201310180136.0A
Other languages
Chinese (zh)
Other versions
CN103294782A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201310180136.0A priority Critical patent/CN103294782B/en
Publication of CN103294782A publication Critical patent/CN103294782A/en
Application granted granted Critical
Publication of CN103294782B publication Critical patent/CN103294782B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a kind of data exhibiting process and device, and too small to solve buffer area, data exhibiting effect is bad, and buffer area does not have an effect of caching, and buffer area excessive the problem of easily causing system or application crash.Methods described includes:The cache threshold of Initialize installation data buffer area;Monitoring data show during internal memory service condition adjustment data buffer area cache threshold;Wherein, cache threshold is to be used for the ratio of data cached field capacity and the capacity of data buffer area in data buffer area.The embodiment of the present invention monitors internal memory service condition in real time, and the cache threshold of buffer area is adjusted according to internal memory service condition.When system spare internal memory is more, cache threshold can be tuned up, improve the effect of data exhibiting;When system spare internal memory is few, cache threshold can be turned down, reduce application program or the risk of system crash.

Description

A kind of data exhibiting process and device
Technical field
The present embodiments relate to communication technical field, is directed to Internet technical field, more particularly to a kind of data Show method and apparatus.
Background technology
With the popularity more and more higher of the network-termination devices such as mobile phone, set top box, basic network environment is become better and better. 3rd generation mobile communication technology(3rd-Generation, 3G)Network and family wireless network are generally used, and Internet video exists The demand played on network-termination device is also increasing.
Internet video, which plays, to be different from local video and plays, and Internet video, which plays to need to do data on the terminal device, to be delayed Deposit, played out again after caching a part of Internet video, can bring and preferably play experience, can also reduce because of network condition The problem of interim card is played caused by bad.
The memory size of terminal device is increasing.But at the same time, the definition of Internet video and data volume there has also been Rapidly lifting.If played, image quality is apparent, and the bigger Internet video of data volume is, it is necessary to bigger memory size, terminal device Memory size still can not meet the needs that higher Internet video plays.
When current mobile phone player or set top box player plays Internet video, the first reading video data from network, Begin to play after the video data got meets a certain size, then continue to read video counts from network on backstage According to the pause reading when buffer area of Internet video is filled up.When from buffer area read out video data go decoding play after, Continue to fill this buffer area from network reading video data.
A kind of data exhibiting process, by marking off one piece of buffer area in internal memory, injection decoder is intended to be showed Data be initially injected into buffer area and be managed.If buffer area sets too small, the data injected in buffer area with regard to seldom, Got from network for the data showed with regard to seldom, the situation of pause, data exhibiting just occur during data exhibiting Effect is bad.It is very few, it is necessary to wait new data to be injected into caching available for the data showed the reason for this phenomenon occur Could continue to show behind area, now the effect of buffer area is little, do not have network condition it is bad when data buffer storage effect.If Buffer area set it is too much, then buffer area take internal memory it is excessive, system or application available internal memory with regard to seldom, easily cause be System or application crash.
The content of the invention
It is too small to solve buffer area the embodiment of the invention discloses a kind of data exhibiting process and device, data exhibiting effect Fruit is bad, and buffer area does not have an effect of caching, and buffer area is excessive easily causes asking for system or application crash Topic.
In order to solve the above problems, the embodiment of the invention discloses a kind of data exhibiting process, including:
The cache threshold of Initialize installation data buffer area;
Internal memory service condition during monitoring data shows adjusts the cache threshold of above-mentioned data buffer area;
Wherein, above-mentioned cache threshold is to delay in above-mentioned data buffer area for data cached field capacity with above-mentioned data Deposit the ratio of the capacity in area.
Preferably, the cache threshold of above-mentioned Initialize installation data buffer area, including:
Monitor the ratio that remaining physical memory accounts for the total internal memory of system;Saved as in said system is total residing for above-mentioned data exhibiting Whole physical memories of system, above-mentioned remaining physical memory physical memory idle in the system residing for above-mentioned data exhibiting; Cache threshold of the selection cache threshold corresponding with aforementioned proportion as above-mentioned data buffer area.
Preferably, the internal memory service condition during above-mentioned monitoring data shows adjusts the caching threshold of above-mentioned data buffer area Value, including:
Monitor aforementioned proportion and select EMS memory occupation rank corresponding with aforementioned proportion;
According to the cache threshold of the above-mentioned above-mentioned data buffer area of EMS memory occupation rank adjusting;
Wherein, above-mentioned EMS memory occupation rank is the grade of aforementioned proportion.
Preferably, the above-mentioned cache threshold according to the above-mentioned above-mentioned data buffer area of EMS memory occupation rank adjusting, including:
Cache threshold of the selection cache threshold corresponding with above-mentioned EMS memory occupation rank as above-mentioned data buffer area.
The embodiment of the invention also discloses a kind of data exhibiting device, including:
Initialize installation module, the cache threshold for Initialize installation data buffer area;
Adjusting module is monitored, the internal memory service condition during showing for monitoring data adjusts above-mentioned data buffer area Cache threshold;
Wherein, above-mentioned cache threshold is to delay in above-mentioned data buffer area for data cached field capacity with above-mentioned data Deposit the ratio of the capacity in area.
Preferably, above-mentioned Initialize installation module, including:
Submodule is monitored, the ratio of the total internal memory of system is accounted for for monitoring remaining physical memory;Saved as in said system is total Whole physical memories of the system residing for data exhibiting are stated, above-mentioned remaining physical memory is in the system residing for above-mentioned data exhibiting Idle physical memory;Submodule is selected, for selecting cache threshold corresponding with aforementioned proportion as above-mentioned data buffer area Cache threshold.
Preferably, above-mentioned monitoring adjusting module, including:
Monitoring selection submodule, EMS memory occupation rank corresponding with aforementioned proportion is selected for monitoring aforementioned proportion;
Submodule is adjusted, for the cache threshold according to the above-mentioned above-mentioned data buffer area of EMS memory occupation rank adjusting;
Wherein, above-mentioned EMS memory occupation rank is the grade of aforementioned proportion.
Preferably:Above-mentioned adjustment submodule selects cache threshold corresponding with above-mentioned EMS memory occupation rank as above-mentioned data The cache threshold of buffer area.
The embodiment of the invention also discloses a kind of mobile terminal, including any of the above-described data exhibiting device.
Compared with background technology, the embodiment of the present invention includes advantages below:
When data exhibiting initializes, cache threshold is set to data buffer area.Cache threshold is to be used in data buffer area In the ratio of the capacity of data cached field capacity Yu whole data buffer area, when the data capacity stored in data buffer area When accounting for the ratio of whole data buffer area capacity and reaching cache threshold, it is possible to proceed by data exhibiting.Carrying out data exhibition In existing process, in real time monitor internal memory service condition, internal memory service condition can reflect system spare internal memory number, according to Internal memory service condition adjusts the cache threshold of buffer area.When system spare internal memory is more, cache threshold can be tuned up, improve number According to the effect showed;When system spare internal memory is few, cache threshold can be turned down, reduce the wind of application program or system crash Danger.
Brief description of the drawings
Fig. 1 is a kind of data exhibiting process flow chart in the embodiment of the present invention;
Fig. 2 is a kind of data exhibiting process flow chart in the embodiment of the present invention;
Fig. 3 is a kind of video data player method flow chart in the embodiment of the present invention;
Fig. 4 is a kind of data exhibiting structure drawing of device in the embodiment of the present invention;
Fig. 5 is a kind of data exhibiting structure drawing of device in the embodiment of the present invention;
Fig. 6 is a kind of course of work schematic diagram of video data playing device in the embodiment of the present invention.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, it is below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is further detailed explanation.
, can be according to internal memory service condition the embodiment of the invention discloses a kind of data exhibiting process and device, dynamic is adjusted The cache threshold of entire data buffer area.Cache threshold is changed with internal memory service condition, can when free memory is more To increase cache threshold;When free memory is few, cache threshold can be reduced, can both ensure there are enough internal memories to be used for The operation of system or application program, there are unstable feelings because the data of caching are too small when can reduce data exhibiting again Condition.
A kind of data exhibiting process and dress disclosed by the invention is discussed in detail below by several specific embodiments are enumerated Put.
Embodiment one
A kind of data exhibiting process disclosed in the embodiment of the present invention is discussed in detail.
Reference picture 1, show a kind of data exhibiting process flow chart in the embodiment of the present invention.
Step 100, the cache threshold of Initialize installation data buffer area.
Above-mentioned steps 100 can the initial phase of data exhibiting be provided for data exhibiting data buffer area it is slow Deposit threshold value.
Data exhibiting is presented to data, showed.According to the difference of data type, data exhibiting can also be divided into Different situations, e.g., when data are audio or video file, data exhibiting can be audio broadcasting or video playback.
Wherein, above-mentioned cache threshold can be to be used for data cached field capacity and above-mentioned number in above-mentioned data buffer area According to the ratio of the capacity of buffer area.
For example, during initialization, the amount of capacity that can set data buffer area is 100M, and sets the slow of data buffer area It is 50% to deposit threshold value, then 50% implication represented is:In data buffer area can be used for data cached field capacity be 100M × 50%=50M, when the data cached in data buffer area reach 50M, it can start to show above-mentioned data.
Step 102, the internal memory service condition during monitoring data shows adjusts the cache threshold of above-mentioned data buffer area.
During data exhibiting, cache threshold can be adjusted according to internal memory service condition in real time, more than free memory When, it can suitably increase cache threshold, increase the data capacity that can be cached in data buffer area;When free memory is few Wait, can suitably reduce cache threshold, reduce the data capacity that can be cached in data buffer area.
In summary, the embodiment of the invention discloses a kind of data exhibiting process, there is advantages below:
When data exhibiting initializes, cache threshold is set to data buffer area.Cache threshold is to be used in data buffer area In the ratio of the capacity of data cached field capacity Yu whole data buffer area, when the data capacity stored in data buffer area When accounting for the ratio of whole data buffer area capacity and reaching cache threshold, it is possible to proceed by data exhibiting.Carrying out data exhibition In existing process, in real time monitor internal memory service condition, internal memory service condition can reflect system spare internal memory number, according to Internal memory service condition adjusts the cache threshold of buffer area.When system spare internal memory is more, cache threshold can be tuned up, improve number According to the effect showed;When system spare internal memory is few, cache threshold can be turned down, reduce the wind of application program or system crash Danger.
Embodiment two
A kind of data exhibiting process disclosed in the embodiment of the present invention is discussed in detail.
Reference picture 2, show a kind of data exhibiting process flow chart in the embodiment of the present invention.
Step 200, the cache threshold of Initialize installation data buffer area.
Above-mentioned cache threshold can be to delay in above-mentioned data buffer area for data cached field capacity with above-mentioned data Deposit the ratio of the capacity in area.
Preferably, above-mentioned steps 200, can include:
Sub-step 2001, monitor the ratio that remaining physical memory accounts for the total internal memory of system.
Wherein, the total internal memory of said system can be whole physical memories of the system residing for above-mentioned data exhibiting, above-mentioned surplus Remaining physical memory can be idle physical memory in system residing for above-mentioned data exhibiting.
For example, system architecture body sysinfo can be generated, internal storage structure body is read out from system architecture body sysinfo MemInfo, the mode that may then pass through memInfo.freeram*memInfo.mem_unit calculate remaining physical memory Capacity.Because the capacity of the total internal memory of system is fixed, so, by the appearance of the capacity of remaining physical memory and the total internal memory of system Amount is compared, it is possible to calculates the ratio that remaining physical memory accounts for the total internal memory of system.
Preferably, above-mentioned sub-step 2001 can be performed in real time, can also be according to time point set in advance or cycle Perform above-mentioned sub-step 2001.Also, above-mentioned sub-step 2001 is also used as independent step and performed, and is not limited to above-mentioned step Rapid 200 sub-steps., can appointing in the embodiment of the present invention when above-mentioned sub-step 2001 step independent as one The meaning stage performs in real time.
Sub-step 2002, select cache threshold of the cache threshold corresponding with aforementioned proportion as above-mentioned data buffer area.
Preferably, above-mentioned steps 200 can also be:
, can be with the cache threshold of default setting data buffer area when data exhibiting initializes, such as setting cache threshold is 50%.The cache threshold of acquiescence can be set according to actual conditions.
Step 202, the internal memory service condition during monitoring data shows adjusts the cache threshold of above-mentioned data buffer area.
Preferably, above-mentioned steps 202, can include:
Sub-step 2021, monitoring aforementioned proportion select EMS memory occupation rank corresponding with aforementioned proportion.
Wherein, above-mentioned EMS memory occupation rank is the grade of aforementioned proportion.
Sub-step 2022, according to the cache threshold of the above-mentioned above-mentioned data buffer area of EMS memory occupation rank adjusting.
Preferably, above-mentioned sub-step 2022, Ke Yiwei:
Cache threshold of the selection cache threshold corresponding with above-mentioned EMS memory occupation rank as above-mentioned data buffer area.
The ratio 25%, 20%, 15%, 10%, 5% of the total internal memory of system can be accounted for according to remaining physical memory, EMS memory occupation level It is not divided into Pyatyi 1,2,3,4,5, as shown in table 1.Then according to EMS memory occupation rank, the cache threshold of data buffer area is adjusted, Preferably, EMS memory occupation rank is higher, and cache threshold is with regard to smaller.
Remaining physical memory accounts for the ratio of the total internal memory of system 25% 20% 15% 10% 5%
EMS memory occupation rank 1 2 3 4 5
Cache threshold 100% 80% 50% 30% 10%
Table 1
For example, performing above-mentioned steps 2021, it can monitor that the ratio that remaining physical memory accounts for the total internal memory of system is 25%, Selection EMS memory occupation rank 1 corresponding with 25%.Perform above-mentioned steps 2022, can be according to being selected in above-mentioned steps 2021 in It is 100% to deposit occupancy level 1 and adjust cache threshold.
It is emphasized that in actual applications, the ratio that remaining physical memory accounts for the total internal memory of system is not limited solely to Above-mentioned five kinds of ratios, correspondingly, it can also correspond to and set more EMS memory occupation ranks and cache threshold.It is also possible to root The ratio section of the total internal memory of system is accounted for according to remaining physical memory, if 25%-20% is a ratio section, it is determined that in corresponding with ratio section Deposit occupancy level and cache threshold corresponding with EMS memory occupation rank.
In summary, the embodiment of the invention discloses have advantages below:
When data exhibiting initializes, cache threshold is set to data buffer area.Cache threshold is to be used in data buffer area In the ratio of the capacity of data cached field capacity Yu whole data buffer area, when the data capacity stored in data buffer area When accounting for the ratio of whole data buffer area capacity and reaching cache threshold, it is possible to proceed by data exhibiting.In data buffer area The operation of application program can be influenceed for data cached area size, if being used for data cached region in data buffer area Greatly, the fluency of data exhibiting can be improved, but due to big for data cached region, the internal memory for system operation will subtract It is few, it is also possible to reduce the speed of service of system, or even cause system or application program to be collapsed because running memory is very few Situation;If it is small to be used for data cached region in data buffer area, although the speed of service of system can be ensured, can reduce The fluency of data exhibiting.During data exhibiting is carried out, internal memory service condition is monitored in real time, and internal memory service condition can be with Reflect system spare internal memory number, according to internal memory service condition adjust buffer area cache threshold.When system spare internal memory When more, cache threshold can be tuned up, improve the effect of data exhibiting;, can be by cache threshold when system spare internal memory is few Turn down, reduce application program or the risk of system crash.
Embodiment three
A kind of data exhibiting process disclosed in the embodiment of the present invention is discussed in detail.
A kind of data exhibiting process is introduced by taking video data as an example for the embodiment of the present invention.
Reference picture 3, show a kind of video data player method flow chart in the embodiment of the present invention.
Step 300, the video data buffer size of video player is initialized.
For same video player, the size of above-mentioned video data buffer area can be fixed.For example, just The video data buffer size of beginningization video player is 100M.
Step 302, the cache threshold of video data buffer area is set.
Preferably, the cache threshold of selection 50% can be given tacit consent to.The cache threshold for giving tacit consent to selection can be according to according to actual need Set.
Preferably, above-mentioned steps 302 can also be:
The cache threshold of video data buffer area is set according to internal memory service condition.
Step 304, while video data commences play out, the ratio that remaining physical memory accounts for the total internal memory of system is monitored in real time Example.
Step 306, the ratio of the total internal memory of system is accounted for according to remaining physical memory, adjusts the caching threshold of video data buffer area Value.
The ratio that above-mentioned remaining physical memory accounts for the total internal memory of system can have mapping relations with cache threshold.
After obtaining remaining physical memory and accounting for the ratio of the total internal memory of system, it is total system can be accounted for according to remaining physical memory Mapping relations between the ratio of internal memory and cache threshold determine corresponding cache threshold.
Preferably, above-mentioned steps 306 can also be:
The ratio of the total internal memory of system is accounted for according to remaining physical memory, determines EMS memory occupation rank, according to EMS memory occupation rank Adjust the cache threshold of frequency data buffer area.
Wherein, the ratio that remaining physical memory accounts for the total internal memory of system can have mapping relations with EMS memory occupation rank, and And EMS memory occupation rank can have mapping relations with cache threshold.
After obtaining remaining physical memory and accounting for the ratio of the total internal memory of system, it is total system can be accounted for according to remaining physical memory Mapping relations between the ratio of internal memory and EMS memory occupation rank determine corresponding EMS memory occupation rank, further according to EMS memory occupation level Mapping relations not between cache threshold determine corresponding cache threshold.
In summary, the embodiment of the invention discloses a kind of video data to show method, has advantages below:
When video data is played and initialized, cache threshold is set to video data buffer area.Cache threshold is video counts According to the ratio for the field capacity and the capacity of whole video data buffer area for being used for buffered video data in buffer area, work as video counts When accounting for the ratio of whole video data buffer capacity according to the video data capacity stored in buffer area and reaching cache threshold, so that it may To proceed by video data broadcasting.During video data broadcasting is carried out, internal memory service condition is monitored in real time, and internal memory makes With situation can reflect system spare internal memory number, according to internal memory service condition adjust buffer area cache threshold.When being When free memory of uniting is more, cache threshold can be tuned up, improve the effect that video data plays;When system spare internal memory is few, Cache threshold can be turned down, reduce the risk of video player or system crash.
Example IV
A kind of data exhibiting device disclosed in the embodiment of the present invention is discussed in detail.
Reference picture 4, show a kind of data exhibiting structure drawing of device in the embodiment of the present invention.
A kind of above-mentioned data exhibiting device, can include:
Initialize installation module 400, and, monitor adjusting module 402.
Be discussed in detail separately below each module function and each module between relation.
Initialize installation module 400, the cache threshold for Initialize installation data buffer area.
Adjusting module 402 is monitored, the internal memory service condition during showing for monitoring data adjusts above-mentioned data buffer storage The cache threshold in area.
Wherein, above-mentioned cache threshold can be to be used for data cached field capacity and above-mentioned number in above-mentioned data buffer area According to the ratio of the capacity of buffer area.
In summary, a kind of data exhibiting device disclosed in the embodiment of the present invention, has advantages below:
When data exhibiting initializes, cache threshold is set to data buffer area.Cache threshold is to be used in data buffer area In the ratio of the capacity of data cached field capacity Yu whole data buffer area, when the data capacity stored in data buffer area When accounting for the ratio of whole data buffer area capacity and reaching cache threshold, it is possible to proceed by data exhibiting.Carrying out data exhibition In existing process, in real time monitor internal memory service condition, internal memory service condition can reflect system spare internal memory number, according to Internal memory service condition adjusts the cache threshold of buffer area.When system spare internal memory is more, cache threshold can be tuned up, improve number According to the effect showed;When system spare internal memory is few, cache threshold can be turned down, reduce the wind of application program or system crash Danger.
Embodiment five
A kind of data exhibiting device disclosed in the embodiment of the present invention is discussed in detail.
Reference picture 5, show a kind of data exhibiting structure drawing of device in the embodiment of the present invention.
A kind of above-mentioned data exhibiting device, can include:
Initialize installation module 500, and, monitor adjusting module 502.
Wherein, above-mentioned Initialize installation module 500, can include:
Submodule 5001 is monitored, and, select submodule 5002.
Above-mentioned monitoring adjusting module 502, can include:
Monitoring selection submodule 5021, and, adjust submodule 5022.
The relation between each module, the function of submodule and each module, submodule is discussed in detail separately below.
Initialize installation module 500, the cache threshold for Initialize installation data buffer area.
Wherein, above-mentioned cache threshold can be to be used for data cached field capacity and above-mentioned number in above-mentioned data buffer area According to the ratio of the capacity of buffer area.
Preferably, above-mentioned Initialize installation module 500, can include:
Submodule 5001 is monitored, the ratio of the total internal memory of system is accounted for for monitoring remaining physical memory.
The total internal memory of said system can be above-mentioned data exhibiting residing for system whole physical memories, above-mentioned remaining physics Internal memory can be idle physical memory in system residing for above-mentioned data exhibiting.
Submodule 5002 is selected, for selecting cache threshold corresponding with aforementioned proportion as the slow of above-mentioned data buffer area Deposit threshold value.
Adjusting module 502 is monitored, the internal memory service condition during showing for monitoring data adjusts above-mentioned data buffer storage The cache threshold in area.
Preferably, above-mentioned monitoring adjusting module 502, can include:
Monitoring selection submodule 5021, EMS memory occupation rank corresponding with aforementioned proportion is selected for monitoring aforementioned proportion.
Submodule 5022 is adjusted, for the cache threshold according to the above-mentioned above-mentioned data buffer area of EMS memory occupation rank adjusting.
Wherein, above-mentioned EMS memory occupation rank can be the grade of aforementioned proportion.
Preferably, above-mentioned adjustment submodule 5022 can select cache threshold conduct corresponding with above-mentioned EMS memory occupation rank The cache threshold of above-mentioned data buffer area.
A kind of above-mentioned data exhibiting device can be applied plays field in video data.
Reference picture 6, show a kind of course of work schematic diagram of video data playing device in the embodiment of the present invention.
A kind of above-mentioned video data playing device can include:
Video playback module, video cache area, internal memory monitoring module, and internal memory.
Wherein, video playback module can be used for carrying out decoding broadcasting to video data.
Video cache area can postpone storing video data.
Internal memory monitoring module can monitor the service condition of internal memory in real time.
It should be noted that internal memory monitoring module can in whole video display process the moment monitoring internal memory use feelings Condition, above-mentioned whole video display process include:Institute after being finished before video play device initialization to video playback There is the stage.
In summary, a kind of data exhibiting device disclosed in the embodiment of the present invention, has advantages below:
When data exhibiting initializes, cache threshold is set to data buffer area.Cache threshold is to be used in data buffer area In the ratio of the capacity of data cached field capacity Yu whole data buffer area, when the data capacity stored in data buffer area When accounting for the ratio of whole data buffer area capacity and reaching cache threshold, it is possible to proceed by data exhibiting.In data buffer area The operation of application program can be influenceed for data cached area size, if being used for data cached region in data buffer area Greatly, the fluency of data exhibiting can be improved, but due to big for data cached region, the internal memory for system operation will subtract It is few, it is also possible to reduce the speed of service of system, or even cause system or application program to be collapsed because running memory is very few Situation;If it is small to be used for data cached region in data buffer area, although the speed of service of system can be ensured, can reduce The fluency of data exhibiting.During data exhibiting is carried out, internal memory service condition is monitored in real time, and internal memory service condition can be with Reflect system spare internal memory number, according to internal memory service condition adjust buffer area cache threshold.When system spare internal memory When more, cache threshold can be tuned up, improve the effect of data exhibiting;, can be by cache threshold when system spare internal memory is few Turn down, reduce application program or the risk of system crash.
The embodiment of the invention also discloses a kind of mobile terminal, a kind of above-mentioned mobile terminal is included in any of the above-described embodiment A kind of data exhibiting device.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.
Above to a kind of data exhibiting process and device disclosed in the embodiment of the present invention, it is described in detail, herein In apply specific case to the present invention principle and embodiment be set forth, the explanation of above example is only intended to help Assistant solves the method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, the think of according to the present invention Think, in specific embodiments and applications there will be changes, in summary, this specification content should not be construed as pair The limitation of the present invention.

Claims (7)

  1. A kind of 1. data exhibiting process, it is characterised in that including:
    The cache threshold of Initialize installation data buffer area, including:Monitor the ratio that remaining physical memory accounts for the total internal memory of system;Institute The total interior whole physical memories for saving as the system residing for the data exhibiting of system are stated, the remaining physical memory is the data Show physical memory idle in residing system;Selection cache threshold corresponding with the ratio is as the data buffer area Cache threshold;The cache threshold is adjusted according to the Installed System Memory service condition;
    Internal memory service condition during monitoring data shows adjusts the cache threshold of the data buffer area;
    Wherein, the cache threshold is to be used for data cached field capacity and the data buffer area in the data buffer area Capacity ratio.
  2. 2. according to the method for claim 1, it is characterised in that the monitoring data show during internal memory service condition The cache threshold of the data buffer area is adjusted, including:
    Monitor the ratio and select EMS memory occupation rank corresponding with the ratio;
    According to the cache threshold of data buffer area described in the EMS memory occupation rank adjusting;
    Wherein, the EMS memory occupation rank is the grade of the ratio.
  3. 3. according to the method for claim 2, it is characterised in that the data according to the EMS memory occupation rank adjusting The cache threshold of buffer area, including:
    Cache threshold of the selection cache threshold corresponding with the EMS memory occupation rank as the data buffer area.
  4. A kind of 4. data exhibiting device, it is characterised in that including:
    Initialize installation module, the cache threshold for Initialize installation data buffer area;The Initialize installation module, bag Include:Submodule is monitored, the ratio of the total internal memory of system is accounted for for monitoring remaining physical memory;The data are saved as in the system is total Show whole physical memories of residing system, the remaining physical memory is idle in the system residing for the data exhibiting Physical memory;Submodule is selected, for selecting caching of the cache threshold corresponding with the ratio as the data buffer area Threshold value;The cache threshold is adjusted according to the Installed System Memory service condition;
    Adjusting module is monitored, the internal memory service condition during showing for monitoring data adjusts the caching of the data buffer area Threshold value;
    Wherein, the cache threshold is to be used for data cached field capacity and the data buffer area in the data buffer area Capacity ratio.
  5. 5. device according to claim 4, it is characterised in that the monitoring adjusting module, including:
    Monitoring selection submodule, EMS memory occupation rank corresponding with the ratio is selected for monitoring the ratio;
    Adjust submodule, the cache threshold for the data buffer area according to the EMS memory occupation rank adjusting;
    Wherein, the EMS memory occupation rank is the grade of the ratio.
  6. 6. device according to claim 5, it is characterised in that:
    The adjustment submodule selects cache threshold corresponding with the EMS memory occupation rank as the slow of the data buffer area Deposit threshold value.
  7. 7. a kind of mobile terminal, it is characterised in that including the device described in any claim in the claims 4-6.
CN201310180136.0A 2013-05-15 2013-05-15 A kind of data exhibiting process and device Active CN103294782B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310180136.0A CN103294782B (en) 2013-05-15 2013-05-15 A kind of data exhibiting process and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310180136.0A CN103294782B (en) 2013-05-15 2013-05-15 A kind of data exhibiting process and device

Publications (2)

Publication Number Publication Date
CN103294782A CN103294782A (en) 2013-09-11
CN103294782B true CN103294782B (en) 2018-02-16

Family

ID=49095644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310180136.0A Active CN103294782B (en) 2013-05-15 2013-05-15 A kind of data exhibiting process and device

Country Status (1)

Country Link
CN (1) CN103294782B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984781A (en) * 2014-06-11 2014-08-13 北京金山网络科技有限公司 Webpage loading method and device
CN106033397A (en) * 2015-03-17 2016-10-19 小米科技有限责任公司 Method and device for adjusting memory buffer, and terminal
CN105160045B (en) * 2015-10-29 2019-06-18 小米科技有限责任公司 Data copying method and device
CN106921870A (en) * 2015-12-24 2017-07-04 北京奇虎科技有限公司 A kind of video broadcasting method and device
CN105744342B (en) * 2016-01-28 2019-04-12 腾讯科技(深圳)有限公司 The data transmission method and device of mobile terminal
CN108111436B (en) * 2017-11-30 2023-04-18 浙江宇视科技有限公司 Network equipment cache scheduling method and system
CN110209502B (en) * 2019-06-05 2021-07-20 北京奇艺世纪科技有限公司 Information storage method and device, electronic equipment and storage medium
CN112416569B (en) * 2020-09-17 2022-12-06 上海哔哩哔哩科技有限公司 Cache memory adjusting method and device and computer equipment
CN112988078B (en) * 2021-04-27 2023-07-14 山东英信计算机技术有限公司 Management method and device for occupied cache memory in distributed storage application

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065146B (en) * 2011-01-05 2014-06-18 上海聚欣网络科技有限公司 Method and equipment for optimizing storage efficiency of embedded terminal in P2P application
CN102868908B (en) * 2011-07-04 2015-05-20 哈尔滨融智达网络科技有限公司 High-efficiency streaming media playing method and device
CN102984203B (en) * 2012-10-31 2016-12-21 深圳市深信服电子科技有限公司 The raising method of buffer memory device utilization rate, Apparatus and system of based on cloud computing

Also Published As

Publication number Publication date
CN103294782A (en) 2013-09-11

Similar Documents

Publication Publication Date Title
CN103294782B (en) A kind of data exhibiting process and device
CN102724584B (en) The online player method of Internet video, the online playing device of video and intelligent television
US8782276B2 (en) Method and system for selecting a delivery method for media on demand
CN107889160B (en) Small cell network edge part caching method considering user time delay
US11431777B2 (en) Adaptive bitrate streaming techniques
US8660181B2 (en) Method of compressing video data and a media player for implementing the method
US10887630B2 (en) Device supporting multipath transport control protocol and method by which device receives video data through streaming
CN103024593A (en) Online VOD (video on demand) acceleration system and online VOD playing method
CN105376607A (en) Live video method and device in network jittering environment
CN103399802A (en) Method and device for preloading of picture
US10728630B2 (en) Adaptive bitrate streaming techniques
CN104956683B (en) For transmitting the adaptive noise reduction engine of video as a stream
CN106791911A (en) A kind of loading method of picture and video
US11089346B2 (en) Adaptive bitrate streaming techniques
CN103067748B (en) A kind of streaming media video player method
AU2019380410A1 (en) Systems and methods for adaptive streaming of multimedia content
US20090172752A1 (en) Streaming multiple videos in a playlist
CN105392023A (en) Video live broadcasting method and device in network jitter environment
CN107295403A (en) The method that seamless connection is played between video
CN103873929A (en) Method and device for playing multimedia data
US20160346689A1 (en) Start-up performance improvement for remote video gaming
CN103248921B (en) Advertisement broadcast method, Apparatus and system
KR20230104602A (en) Dynamic user device upscaling of media streams
CN106937180A (en) A kind of player method and device of virtual reality video
CN105025343A (en) Caching method and device of TS video

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Beijing Xiaomi Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant