CN106502789A - A kind of resource access method and device - Google Patents

A kind of resource access method and device Download PDF

Info

Publication number
CN106502789A
CN106502789A CN201610888840.5A CN201610888840A CN106502789A CN 106502789 A CN106502789 A CN 106502789A CN 201610888840 A CN201610888840 A CN 201610888840A CN 106502789 A CN106502789 A CN 106502789A
Authority
CN
China
Prior art keywords
resource
storage location
access
threshold
frequency value
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
CN201610888840.5A
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.)
Codyy Education Technology Co Ltd
Original Assignee
Codyy Education Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Codyy Education Technology Co Ltd filed Critical Codyy Education Technology Co Ltd
Priority to CN201610888840.5A priority Critical patent/CN106502789A/en
Publication of CN106502789A publication Critical patent/CN106502789A/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/5061Partitioning or combining of resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/502Proximity

Abstract

The present invention provides a kind of resource access method and device, and above-mentioned resource access method includes:Obtain the accessed data of each resource;The storage location of each resource according to the accessed Data Control.Technical solution of the present invention can enter Mobile state management to resource, improve access efficiency.

Description

A kind of resource access method and device
Technical field
The invention belongs to field of computer technology, more particularly to a kind of resource access method and device.
Background technology
With enriching for platform resource, the quantity of visitor also rises increasingly, but at the same time accesses pressure also increasingly Greatly, the access efficiency of resource constantly reduces, and leverages Consumer's Experience.
Content of the invention
The present invention provides a kind of resource access method and device, to solve the above problems.
The invention discloses a kind of resource access method, including:Obtain the accessed data of each resource;According to described interviewed Ask the storage location of each resource described in Data Control.
The invention also discloses a kind of resource access device, including:Acquiring unit, for obtaining the accessed number of each resource According to being connected to control unit;Described control unit, for the storage position of each resource according to the accessed Data Control Put.
Compared to prior art, according to the technical scheme that the present invention is provided, based on access storage location of the data to resource Reasonable distribution management is carried out, the access efficiency of resource is improve.
Description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this Bright schematic description and description does not constitute inappropriate limitation of the present invention for explaining the present invention.In the accompanying drawings:
The flow chart that Fig. 1 show the resource access method for providing according to a preferred embodiment of the present invention;
Fig. 2 show the block diagram of the resource access device for providing according to a preferred embodiment of the present invention.
Specific embodiment
Below with reference to accompanying drawing and in conjunction with the embodiments describing the present invention in detail.It should be noted that not conflicting In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
The flow chart that Fig. 1 show the resource access method for providing according to a preferred embodiment of the present invention.Such as Fig. 1 institutes Show, the resource access method that presently preferred embodiments of the present invention is provided is comprised the following steps:
Step 102, obtains the accessed data of each resource.
Step 104, the storage location of each resource according to the accessed Data Control.
Wherein, step 102 is specifically included:
Recognize that each access side accesses the number of times of each resource, obtain access history data;
According to the visiting frequency value that the access history data calculates each resource, the accessed data are obtained.
Wherein, visiting frequency value p is calculated according to below equationa
Wherein, anIt is number of times that the resource is accessed by each access side, bnIt is each access side Weight, n are positive integers.
For resource a, it is assumed that currently there is two access sides, one is the central primary school in the A of region, and access times are a1, Access weight is b1, one is the Second Middle School in the B of region, and access times are a2, access weight is b2, then can calculate The visiting frequency of resource a is Pa=a1×b1+a2×b2.
The storage location of each resource according to the accessed Data Control, including:By the visiting frequency value The first storage location is called in more than or equal to the resource of first threshold;The visiting frequency value is less than the first threshold and big The second storage location is called in the resource of Second Threshold;The resource that the visiting frequency value is less than or equal to the Second Threshold The 3rd storage location is called in, wherein, first threshold is more than Second Threshold.First storage location includes caching, and described second Storage location includes internal memory, and the 3rd storage location includes hard disk.
Technology according to the present invention scheme is further illustrated with reference to embodiment.
Count the situation that each region or school access each resource within a predetermined period of time, following access tables of data can be generated:
According to the visiting frequency P that above-mentioned access tables of data is obtained each resource.
Resource A:A × 50%+a1× 30%=PA
Resource B:B × 50%+b1× 20%=PB
Resource C:C × 20%=PC
The visiting frequency value of the above-mentioned each resource for calculating is compared with default frequency value, default frequency value includes S1, S2, wherein, S1 is more than S2.
If the resource is called in caching more than or equal to S1 by the visiting frequency value of resource;If the visiting frequency of resource The resource is then called in internal memory less than S1 and more than S2 by value;If this is provided by the visiting frequency value of resource less than or equal to S2 Call in hard disk in source.
By said method, it is achieved that the dynamic management to resource, access efficiency is improve.
Fig. 2 show the block diagram of the resource access device for providing according to a preferred embodiment of the present invention.
As shown in Fig. 2 resource access device 200 includes according to an embodiment of the invention:
Acquiring unit 202, for obtaining the accessed data of each resource, is connected to control unit;
Described control unit 204, for the storage location of each resource according to the accessed Data Control.
Wherein, the acquiring unit 202 includes:
Identification subelement 2022, for recognizing that each access side accesses the number of times of each resource, obtains access history data;
Computation subunit 2024, for calculating the visiting frequency value of each resource according to the access history data, obtains The accessed data.
The computation subunit 2024 calculates visiting frequency value p according to below equationa
Wherein, anIt is number of times that the resource is accessed by each access side, bnIt is each access side Weight, n are positive integers.
Resource of the described control unit 204 by the visiting frequency value more than or equal to first threshold calls in the first storage position Put, by the visiting frequency value is less than the first threshold and resource more than Second Threshold calls in the second storage location, and, Resource of the visiting frequency value less than or equal to the Second Threshold is called in the 3rd storage location, wherein, first threshold is big In Second Threshold.
Wherein, first storage location includes caching, and second storage location includes internal memory, the 3rd storage position Put including hard disk.
Compared to prior art, according to the technical scheme that the present invention is provided, based on access storage location of the data to resource Reasonable distribution management is carried out, the access efficiency of resource is improve.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for the skill of this area For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, made any repair Change, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (10)

1. a kind of resource access method, it is characterised in that include:
Obtain the accessed data of each resource;
The storage location of each resource according to the accessed Data Control.
2. resource access method according to claim 1, it is characterised in that the accessed data of each resource of the acquisition, Including:
Recognize that each access side accesses the number of times of each resource, obtain access history data;
According to the visiting frequency value that the access history data calculates each resource, the accessed data are obtained.
3. resource access method according to claim 2, it is characterised in that calculated according to below equation and described access frequency
Angle value pa
Wherein, anIt is number of times that the resource is accessed by each access side, bnIt is the weight of each access side, n It is positive integer.
4. resource access method according to any one of claim 1 to 3, it is characterised in that described according to described interviewed The storage location of each resource described in Data Control is asked, including:
Resource of the visiting frequency value more than or equal to first threshold is called in the first storage location;
By the visiting frequency value is less than the first threshold and resource more than Second Threshold calls in the second storage location;
Resource of the visiting frequency value less than or equal to the Second Threshold is called in the 3rd storage location, wherein, the first threshold Value is more than Second Threshold.
5. resource access method according to claim 4, it is characterised in that first storage location includes caching, institute Stating the second storage location includes internal memory, and the 3rd storage location includes hard disk.
6. a kind of resource access device, it is characterised in that include:
Acquiring unit, for obtaining the accessed data of each resource, is connected to control unit;
Described control unit, for the storage location of each resource according to the accessed Data Control.
7. resource access device according to claim 6, it is characterised in that the acquiring unit includes:
Identification subelement, for recognizing that each access side accesses the number of times of each resource, obtains access history data;
Computation subunit, for calculating the visiting frequency value of each resource according to the access history data, obtains described interviewed Ask data.
8. resource access device according to claim 7, it is characterised in that the computation subunit is according to below equation meter Calculate visiting frequency value pa
Wherein, anIt is number of times that the resource is accessed by each access side, bnIt is the weight of each access side, n It is positive integer.
9. the resource access device according to any one of claim 6 to 8, it is characterised in that described control unit is by institute The resource that visiting frequency value is stated more than or equal to first threshold calls in the first storage location, by the visiting frequency value less than described The first threshold and resource more than Second Threshold calls in the second storage location, and, the visiting frequency value is less than or equal to The resource of the Second Threshold calls in the 3rd storage location, and wherein, first threshold is more than Second Threshold.
10. resource access device according to claim 9, it is characterised in that first storage location includes caching, institute Stating the second storage location includes internal memory, and the 3rd storage location includes hard disk.
CN201610888840.5A 2016-10-12 2016-10-12 A kind of resource access method and device Pending CN106502789A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610888840.5A CN106502789A (en) 2016-10-12 2016-10-12 A kind of resource access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610888840.5A CN106502789A (en) 2016-10-12 2016-10-12 A kind of resource access method and device

Publications (1)

Publication Number Publication Date
CN106502789A true CN106502789A (en) 2017-03-15

Family

ID=58293830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610888840.5A Pending CN106502789A (en) 2016-10-12 2016-10-12 A kind of resource access method and device

Country Status (1)

Country Link
CN (1) CN106502789A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684093A (en) * 2018-12-24 2019-04-26 成都四方伟业软件股份有限公司 Data processing method and system

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101370030A (en) * 2008-09-24 2009-02-18 东南大学 Resource load stabilization method based on contents duplication
US20090193064A1 (en) * 2008-01-29 2009-07-30 Ying Chen Method and system for access-rate-based storage management of continuously stored data
CN101645888A (en) * 2009-06-02 2010-02-10 中国科学院声学研究所 Data distribution method based on access frequency variable-length logic section
CN101668046A (en) * 2009-10-13 2010-03-10 成都市华为赛门铁克科技有限公司 Resource caching method, resource obtaining method, device and system thereof
CN101788995A (en) * 2009-12-31 2010-07-28 成都市华为赛门铁克科技有限公司 Hotspot data identification method and device
CN102511043A (en) * 2011-11-26 2012-06-20 华为技术有限公司 Method for replacing cache files, device and system thereof
CN103186566A (en) * 2011-12-28 2013-07-03 中国移动通信集团河北有限公司 Data classification storage method, device and system
CN103838680A (en) * 2012-11-23 2014-06-04 北京四达时代软件技术股份有限公司 Data caching method and device
CN104035925A (en) * 2013-03-04 2014-09-10 深圳市腾讯计算机系统有限公司 Data storage method and device and storage system
CN104111900A (en) * 2013-04-22 2014-10-22 中国移动通信集团公司 Method and device for replacing data in cache
CN105306578A (en) * 2015-11-11 2016-02-03 中国联合网络通信集团有限公司 Method and device for storing content
CN105447062A (en) * 2014-09-30 2016-03-30 中国电信股份有限公司 Hot spot data identification method and device
CN105653642A (en) * 2015-12-25 2016-06-08 曙光信息产业股份有限公司 Data management method and device of distributed file system

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090193064A1 (en) * 2008-01-29 2009-07-30 Ying Chen Method and system for access-rate-based storage management of continuously stored data
CN101370030A (en) * 2008-09-24 2009-02-18 东南大学 Resource load stabilization method based on contents duplication
CN101645888A (en) * 2009-06-02 2010-02-10 中国科学院声学研究所 Data distribution method based on access frequency variable-length logic section
CN101668046A (en) * 2009-10-13 2010-03-10 成都市华为赛门铁克科技有限公司 Resource caching method, resource obtaining method, device and system thereof
CN101788995A (en) * 2009-12-31 2010-07-28 成都市华为赛门铁克科技有限公司 Hotspot data identification method and device
CN102511043A (en) * 2011-11-26 2012-06-20 华为技术有限公司 Method for replacing cache files, device and system thereof
CN103186566A (en) * 2011-12-28 2013-07-03 中国移动通信集团河北有限公司 Data classification storage method, device and system
CN103838680A (en) * 2012-11-23 2014-06-04 北京四达时代软件技术股份有限公司 Data caching method and device
CN104035925A (en) * 2013-03-04 2014-09-10 深圳市腾讯计算机系统有限公司 Data storage method and device and storage system
CN104111900A (en) * 2013-04-22 2014-10-22 中国移动通信集团公司 Method and device for replacing data in cache
CN105447062A (en) * 2014-09-30 2016-03-30 中国电信股份有限公司 Hot spot data identification method and device
CN105306578A (en) * 2015-11-11 2016-02-03 中国联合网络通信集团有限公司 Method and device for storing content
CN105653642A (en) * 2015-12-25 2016-06-08 曙光信息产业股份有限公司 Data management method and device of distributed file system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684093A (en) * 2018-12-24 2019-04-26 成都四方伟业软件股份有限公司 Data processing method and system

Similar Documents

Publication Publication Date Title
CN103617547B (en) A kind of business recommended method and system
WO2019196542A1 (en) Image processing method and apparatus
CN106713028B (en) Service degradation method and device and distributed task scheduling system
CN107908677A (en) Cell source of houses methods of exhibiting and device based on intelligent terminal
GB2580268A (en) System and method for constructing a plane for planar prediction
CN111310784B (en) Resource data processing method and device
CN110191494B (en) Network selection method, device and equipment
US10783203B2 (en) Data processing method and apparatus
CN104391879B (en) The method and device of hierarchical clustering
TWI718379B (en) Evaluation method, device and equipment for users using shared items
CN105890117A (en) Method and device for controlling air conditioner and server
CN110413286B (en) Application deployment method, device and equipment
WO2018192506A1 (en) Method and apparatus for recommending social information, and storage medium
CN110473249A (en) A kind of control methods, device and the terminal device of web user interface and design original text
CN109324796A (en) Quick interface arrangement method and device
CN106326012A (en) Web application cluster buffer utilization method and system
CN110598333B (en) Determination method and device for light source position and electronic equipment
CN106502789A (en) A kind of resource access method and device
CN109325015A (en) A kind of extracting method and device of the feature field of domain model
CN110167034A (en) The method and device for planning of base station
SG10201809536XA (en) Systems and methods for quantification of postural balance of users in an augmented reality environment
CN108595731B (en) Design method and device for dynamic table entry in Ethernet chip
CN106599527A (en) Score change processing method and device, and scoring system
CN107085727B (en) Method and device for determining image boundary function
CN112487968A (en) Partitioning method of mattress and partitioned mattress

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170315

WD01 Invention patent application deemed withdrawn after publication