CN103365658A - Resource access method and computer equipment - Google Patents

Resource access method and computer equipment Download PDF

Info

Publication number
CN103365658A
CN103365658A CN2013102697699A CN201310269769A CN103365658A CN 103365658 A CN103365658 A CN 103365658A CN 2013102697699 A CN2013102697699 A CN 2013102697699A CN 201310269769 A CN201310269769 A CN 201310269769A CN 103365658 A CN103365658 A CN 103365658A
Authority
CN
China
Prior art keywords
resource
group
core group
kernel
access
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
CN2013102697699A
Other languages
Chinese (zh)
Other versions
CN103365658B (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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310269769.9A priority Critical patent/CN103365658B/en
Publication of CN103365658A publication Critical patent/CN103365658A/en
Priority to PCT/CN2014/080923 priority patent/WO2014206331A1/en
Application granted granted Critical
Publication of CN103365658B publication Critical patent/CN103365658B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/507Low-level

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a resource access method and related equipment. The resource access method comprises the following steps: receiving a first resource access request; calling inner cores in a first inner core group to process first resources, wherein the first resources belong to a first resource group and are resources requested to be accessed by the first resource access request, the first inner core group comprises at least an inner core, and a mapping relationship between the first resource group and the first inner core group is formed. According to the technical scheme provided by the embodiment of the invention, the resource hit rate is increased and the performance is improved.

Description

A kind of resource access method and computer equipment
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of resource access method and computer equipment.
Background technology
Owing to being subjected to the restriction of chip power and thermal effect, simple pass through to improve dominant frequency to improve the way of processor travelling speed no longer feasible, therefore, the multi-core technology that integrated a plurality of computing engines (kernel) in a processor occurred, for example, usually the dual core processor of saying the has been exactly integrated processor of two kernels.Wherein, multi-core technology is fast-developing can ask in a large number so that the parallel processing performance of individual computing machine significantly improves in high performance processing, can replace the cluster of certain scale.Simultaneously, along with the lifting of central processing unit (CPU, Central Processing Unit) manufacturing process, the buffer memory capacity of CPU core significantly promotes, can the more data and instruction of buffer memory, so that the speed of data access better adapts to the processing speed of CPU, can take full advantage of cpu performance.
Yet in for example database field, database management system does not adapt to the development of main frame multi-core technology, underuses existing multicore architecture and comes improving performance.Traditional data base management system (DBMS) is based on client/server (C/S, Client/Server) pattern, for each user's request of access, server end can be set up corresponding user and process session, wherein, each user process session can corresponding operating system user attitude thread.Wherein, these user's attitude threads can be operated system's random schedule and go execution to different CPU core.CPU core can be gone according to user's request, the data resource of travel all over Database Systems or programmed instruction.Whole Database Systems are the existence of not perception multinuclear fully, relies on operating system scheduling fully.Resource access scene under existing other multicore architecture is similar with it.
The research and practice of prior art is found, traditional application layer (such as the data base management system) usually not the processor of aware host have multinuclear, the request of processing relies on the operating system internal schedule, is distributed to each CPU core by the polycaryon processor of main frame.Each CPU core access resources is global resource, and the information of buffer memory swaps out at continuous swap-in in the high-speed cache, and the resource hit rate is low, can't take full advantage of high-speed cache.The buffer memory synchronous efficiency is relatively low, when cache resources lost efficacy, need to notify all relevant CPU core to eliminate cache resources.
Summary of the invention
The embodiment of the invention provides a kind of resource access method and computer equipment, to improving resource hit rate and then improving performance.
First aspect present invention provides a kind of resource access method, can comprise:
Receive the first resource request of access;
Call the kernel processes first resource in the first core group, wherein, described first resource belongs to the first resource group, described first resource is the resource of described first resource request of access institute request access, described the first core group comprises at least one kernel, wherein, have mapping relations between described first resource group and described the first core group.
In conjunction with first aspect, in the possible embodiment of the first, carry sign and first session identification of first resource in the described first resource request of access;
Before the described kernel processes first resource that calls in the first core group, described method also comprises: the first represented session of inquiry and described the first session identification has the core group of mapping relations, and wherein, the core group that inquires is the first core group.
In conjunction with first aspect, in the possible embodiment of the second, the described kernel processes first resource that calls in the first core group, comprise: if carry the sign of first resource and the sign of first resource group in the described first resource request of access, and inquiring the core group that has mapping relations with the represented first resource group of the sign of described first resource group is the first core group, then calls the kernel processes first resource in described the first core group.
In conjunction with the possible embodiment of the first of first aspect or first aspect or the possible embodiment of the second of first aspect, in the third possible embodiment, described method also comprises:
Receive the Secondary resource request of access, wherein, carry the sign of the first session identification and Secondary resource in the described Secondary resource request of access, the core group that the first represented session of inquiry and described the first session identification has mapping relations is the first core group, if the represented Secondary resource of the sign of described Secondary resource does not belong to described first resource group, then the Secondary resource group of inquiry and described Secondary resource ownership has the core group of mapping relations, if it is the second core group that described that inquire and Secondary resource group have the core group of mapping relations, call the described Secondary resource of kernel processes in described the second core group, wherein, described the second core group comprises at least one kernel.
In conjunction with the third possible embodiment of first aspect, in the 4th kind of possible embodiment, any one kernel in described the first core group does not all belong to the second core group.
In conjunction with the possible embodiment of the first of first aspect or first aspect or possible embodiment or the third possible embodiment of first aspect or the 4th kind of possible embodiment of first aspect of the second of first aspect, in the 5th kind of possible embodiment, described first resource group comprises the subregion of at least one table and/or at least one table.
In conjunction with the 4th kind of possible embodiment of the third possible embodiment of the possible embodiment of the second of the possible embodiment of the first of first aspect or first aspect or first aspect or first aspect or first aspect or the 5th kind of possible embodiment of first aspect, in the 6th kind of possible embodiment, type of service corresponding to all resources in the described first resource group is identical, perhaps, all resources in the described first resource group are the resource that is associated in the same operation flow.
In conjunction with the 5th kind of possible embodiment of the 4th kind of possible embodiment of the third possible embodiment of the possible embodiment of the second of the possible embodiment of the first of first aspect or first aspect or first aspect or first aspect or first aspect or first aspect or the 6th kind of possible embodiment of first aspect, in the 7th kind of possible embodiment, described method also comprises: the first kernel is rejected from described the first core group, and/or, after the second kernel is rejected from described the second core group, the second kernel is added among described the first core group.
Second aspect present invention provides a kind of computer equipment, can comprise:
Receiving element is used for receiving the first resource request of access;
Call unit, be used for calling the kernel processes first resource of the first core group, wherein, described first resource belongs to the first resource group, described first resource is the resource of described first resource request of access institute request access, described the first core group comprises at least one kernel, has mapping relations between described first resource group and described the first core group.
In conjunction with second aspect, in the possible embodiment of the first,
Carry sign and first session identification of first resource in the described first resource request of access;
Wherein, described call unit specifically is used for, and the first represented session of inquiry and described the first session identification has the core group of mapping relations, and wherein, the core group that inquires is the first core group, calls the kernel processes first resource in described the first core group.
In conjunction with second aspect, in the possible embodiment of the second,
Described call unit specifically is used for, if carry the sign of first resource and the sign of first resource group in the described first resource request of access, and inquiring the core group that has mapping relations with the represented first resource group of the sign of described first resource group is the first core group, then calls the kernel processes first resource in described the first core group.
In conjunction with the possible embodiment of the first of second aspect or second aspect or the possible embodiment of the second of second aspect, in the third possible embodiment,
Described receiving element also is used for, and receives the Secondary resource request of access, wherein, carries the sign of the first session identification and Secondary resource in the described Secondary resource request of access;
Described call unit also is used for, the core group that the first represented session of inquiry and described the first session identification has mapping relations is the first core group, if the represented Secondary resource of the sign of described Secondary resource does not belong to described first resource group, then the Secondary resource group of inquiry and described Secondary resource ownership has the core group of mapping relations, if it is the second core group that described that inquire and Secondary resource group have the core group of mapping relations, call the described Secondary resource of kernel processes in described the second core group, wherein, described the second core group comprises at least one kernel.
In conjunction with the possible embodiment of the second of the possible embodiment of the first of second aspect or second aspect or second aspect or the third possible embodiment of second aspect, in the 4th kind of possible embodiment, described computer equipment also comprises:
The inner core managing unit is used for the first kernel is rejected from described the first core group, and/or, after the second kernel is rejected from described the second core group, the second kernel is added among described the first core group.
Third aspect present invention provides a kind of computer equipment, can comprise: network interface, bus and processor, described network interface be connected processor and connect by described bus, described processor comprises a plurality of kernels, described a plurality of kernel is divided at least two core group, wherein:
Described network interface is used for receiving the first resource request of access;
Described processor, be used for calling the kernel processes first resource of the first core group, wherein, described first resource belongs to the first resource group, described first resource is the resource of described first resource request of access institute request access, described the first core group comprises at least one kernel in described a plurality of kernel, has mapping relations between described first resource group and described the first core group.
In conjunction with the third aspect, in the possible embodiment of the first, carry sign and first session identification of first resource in the described first resource request of access; Wherein, described preparation implement body is used for, and the first represented session of inquiry and described the first session identification has the core group of mapping relations, and wherein, the core group that inquires is the first core group, calls the kernel processes first resource in described the first core group.
In conjunction with the third aspect, in the possible embodiment of the second, described preparation implement body is used for, if carry the sign of first resource and the sign of first resource group in the described first resource request of access, and inquiring the core group that has mapping relations with the represented first resource group of the sign of described first resource group is the first core group, then calls the kernel processes first resource in described the first core group.
In conjunction with the possible embodiment of the first of the third aspect or the third aspect or the possible embodiment of the second of the third aspect, in the third possible embodiment, described processor also is used for, the first kernel is rejected from described the first core group, and/or, after the second kernel is rejected from described the second core group, described the second kernel is added among described the first core group.
Can find out, the embodiment of the invention is by above technical scheme, after receiving the first resource request of access; Call the kernel processes first resource in the first core group, wherein, first resource belongs to the first resource group, and first resource is the resource of first resource request of access institute request access, the first core group comprises at least one kernel, has mapping relations between first resource group and the first core group.Because resource and kernel are divided into groups, and set up the mapping relations of resource group and core group, certain core group mainly special disposal has with it resource in the resource group of mapping relations, therefore, this mechanism is conducive to improve the hit rate of resource access, and then is conducive to improving performance.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet of a kind of resource access method of providing of the embodiment of the invention;
Fig. 2 is the schematic flow sheet of the another kind of resource access method that provides of the embodiment of the invention;
Fig. 3-a is the schematic diagram of the resource grouping that provides of the embodiment of the invention;
Fig. 3-b is the schematic diagram of the kernel grouping that provides of the embodiment of the invention;
Fig. 3-c is the schematic diagram of the resource group that provides of the embodiment of the invention and core group mapping;
Fig. 3-d is the schematic diagram that resource grouping that the embodiment of the invention provides is adjusted;
Fig. 3-e is the schematic diagram that kernel grouping that the embodiment of the invention provides is adjusted;
Fig. 3-f is resource group after the adjustment that provides of the embodiment of the invention and the schematic diagram of core group mapping;
Fig. 4-a is the schematic diagram based on the resource group of common hardware system and core group mapping that the embodiment of the invention provides;
Fig. 4-b is the schematic diagram based on the resource group of non-homogeneous memory access model hardware system and core group mapping that the embodiment of the invention provides;
Fig. 5-a is the schematic flow sheet of a kind of computer equipment of providing of the embodiment of the invention;
Fig. 5-b is the schematic diagram of the another kind of computer equipment that provides of the embodiment of the invention;
Fig. 5-c is the schematic diagram of the another kind of computer equipment that provides of the embodiment of the invention;
Fig. 6 is the schematic diagram of the another kind of computer equipment that provides of the embodiment of the invention;
Fig. 7 is the schematic diagram of the another kind of computer equipment that provides of the embodiment of the invention;
Fig. 8 is the schematic diagram of the another kind of computer equipment that provides of the embodiment of the invention;
Fig. 9 is the schematic diagram of a kind of multinuclear mobile phone of providing of the embodiment of the invention.
Embodiment
The embodiment of the invention provides resource access method and relevant device, to improving resource hit rate and then improving performance.
In order to make those skilled in the art person understand better the present invention program, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the embodiment of a part of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills should belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Below be elaborated respectively.
Term " first " in instructions of the present invention and claims and the above-mentioned accompanying drawing, " second ", " the 3rd " " 4th " etc. (if exist) are be used to distinguishing similar object, and needn't be used for describing specific order or precedence.The data that should be appreciated that such use suitably can exchanged in the situation, so as embodiments of the invention described herein for example can with except diagram here or describe those order enforcement.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, for example, comprised those steps or unit that process, method or system, product or the equipment of series of steps or unit are not necessarily limited to clearly list, but can comprise clearly do not list or for these processes, method, product or equipment intrinsic other step or unit.
Embodiment of the invention scheme can be applicable in the multiple-core server that is deployed with Database Systems, can certainly be applied in the general multi-core computer.
One embodiment of resource access method of the present invention, wherein, a kind of resource access method can comprise: receive the first resource request of access; Call the kernel processes first resource in the first core group, wherein, first resource belongs to the first resource group, and first resource is the resource of first resource request of access institute request access, the first core group comprises at least one kernel, has mapping relations between first resource group and the first core group.
Referring to Fig. 1, the schematic flow sheet of a kind of resource access method that Fig. 1 provides for one embodiment of the present of invention.As shown in Figure 1, a kind of resource access method of providing of one embodiment of the present of invention can comprise following content:
101, receive the first resource request of access.
For example, server can receive the first resource request of access from client, and perhaps, certain general computing machine can be from the first resource request of access of other computing machine.Wherein, resource access request can trigger corresponding resource treatment scheme.For instance, resource access request may be requesting query, calculating and/or store certain resource, also may be other processing of request certainly.
102, call kernel processes first resource in the first core group.
Wherein, first resource belongs to the first resource group, and first resource is the resource of first resource request of access institute request access, and the first core group comprises at least one kernel, has mapping relations between first resource group and the first core group.
In some embodiments of the invention, portability has the sign of first resource and the first session identification (certainly in the first resource request of access, go back simultaneously the sign of portability first resource and/or the sign of first resource group etc. in the first resource request of access), wherein, before the above-mentioned kernel processes first resource that calls in the first core group, method also comprises: the first represented session of inquiry and the first session identification has the core group of mapping relations, wherein, the core group that inquires is the first core group.One or more kernels that for example, can call in the first core group are processed first resource.
Be appreciated that, (session may send resource access request by the resource access request transmit leg trigger foundation in certain session that session identification (such as the first session identification) can represent to set up between resource access request transmit leg and the resource access request take over party, also can set up by the alternate manner machine), the type of session may be diversified logical session, wherein, but each session participant recording conversation the other side such as some status informations etc. also.Session identification may be comprised of or for other form a plurality of characters.
In other embodiment of the present invention, call the kernel processes first resource in the first core group, specifically can comprise: if it is (certain to carry the sign of first resource group in the first resource request of access, go back simultaneously the sign of portability first resource and/or session identification etc. in the first resource request of access), and inquiring the core group that has mapping relations with the represented first resource group of the sign of first resource group is the first core group, then can call the kernel processes first resource in the first core group.One or more kernel that can call in the first core group for instance, is processed first resource.
In other embodiment of the present invention, call the kernel processes first resource in the first core group, specifically can comprise: if it is (certain to carry the sign of first resource in the first resource request of access, go back simultaneously the sign of portability first resource and/or session identification etc. in the first resource request of access), and the represented first resource of the sign that inquires first resource belongs to the first resource group, and inquiring the core group that has mapping relations with the first resource group is the first core group, then calls the kernel processes first resource in the first core group.One or more kernels that for example, can call in the first core group are processed first resource.
Be appreciated that between certain core group and certain resource group to have mapping relations, then mainly be responsible for processing by this certain core group for the resource access request of this certain resource group.
In some embodiments of the invention, also first resource can be rejected from the first resource group, and/or the 5th resource is added among the resource group.For example may first resource be rejected from the first resource group according to user instruction, and/or the 5th resource added among the resource group, perhaps, may first resource be rejected from the first resource group according to the access situation of first resource group, and/or the 5th resource is added among the resource group.
In some embodiments of the invention, can record in several ways the mapping relations between resource group and the core group, for instance, can be by showing to record the mapping relations between first resource group and the first core group, other situation is by that analogy.
In some embodiments of the invention, mapping relations between recording conversation and the core group in several ways, for example can be by showing to record the mapping relations (can record the sign of the first session and sign of the first core group etc. in the table) between the first session and the first core group, other situation is by that analogy.
In some embodiments of the invention, also can receive the Secondary resource request of access; If carry the sign of the first session identification and Secondary resource in the Secondary resource request of access, can inquire about the core group that has mapping relations with represented the first session of the first session identification is the first core group, if the represented Secondary resource of the sign of Secondary resource does not belong to the first resource group and belongs to the Secondary resource group, then inquiry and Secondary resource group have the core group of mapping relations, if the core group that has mapping relations with the Secondary resource group that inquires is the second core group, then can call the kernel processes Secondary resource in the second core group, wherein, the second core group can comprise at least one kernel.One or more kernels that can call in the second core group for instance, are processed Secondary resource.
In some embodiments of the invention, any one kernel in the first core group does not all belong to the second core group, and wherein, the second core group is the core group that is different from the first core group, that is, different core group comprise different kernels, do not have overlapping.Certainly, in particular cases some kernel of the first core group may belong to simultaneously in the second core group and/or other and shares.
First kernel that for example can call in the first core group is processed first resource, wherein, endorses in first and comprises one or more kernels.Second kernel that can call in the second core group is processed Secondary resource, wherein endorses in second to comprise one or more kernels.
In some embodiments of the invention, also the first kernel can be rejected from the first core group, and/or the second kernel added among the first core group (for example, can be after the second kernel be rejected from the second core group, the second kernel is added among described the first core group).For example may the first kernel be rejected from the first core group according to user instruction, and/or the second kernel added among the first core group, perhaps, may the first kernel be rejected from the first core group according to the access situation of first resource group, and/or the second kernel added among the first core group, when being reduced to certain threshold value such as the access frequency when the first resource group, the first kernel can be rejected from the first core group; When the access frequency of first resource group is higher than certain threshold value, the second kernel can be added among the first core group, other scene is by that analogy.
In some embodiments of the invention, endorse in all in the same core group and belong to identical or different non-homogeneous memory access model node.
In some embodiments of the invention, also can receive the information resources request of access; If carry the sign of the first session identification and information resources in the information resources request of access, can be according to resource group under the represented information resources of the sign of the sign of information resources inquiry information resources, if be the information resources group according to resource group under the represented information resources of the sign of the sign of information resources inquiry information resources, then can inquire about the core group that has mapping relations with the information resources group, if inquiring the core group that has mapping relations with the information resources group is the 3rd core group, then call the kernel processes information resources in the 3rd core group, wherein, the 3rd core group comprises at least one kernel.One or more kernels that for example, can call in the 3rd core group are processed information resources.
In some embodiments of the invention, also can further receive the 4th resource access request; If carry the sign of the first session identification, the 4th resource group and the sign of the 4th resource in the information resources request of access, wherein, the 4th represented resource of the sign of the 4th resource belongs to the 4th represented resource group of sign of the 4th resource group, then can inquire about the core group that has mapping relations with the 4th resource group, wherein, if inquiring the core group that has mapping relations with the 4th resource group is the 4th core group, then can call kernel processes the 4th resource in the 4th core group, wherein, the 4th core group comprises at least one kernel.One or more kernel that can call in the 3rd core group for instance, is processed information resources.
In some embodiments of the invention, can select as required different grouping strategies to come resource and kernel are divided into groups, the grouping strategy under the different scenes may be not quite similar.
For example, the grouping strategy of resource can comprise following tactful a1, strategy a2, strategy a3, the combination of one or more among strategy a4 and the tactful a5: a1, the resource division that type of service is identical (is appreciated that in same resource group as far as possible, type of service may be relative concept, for example type of service can comprise talk business and flow business, wherein, it is professional that talk business can be divided into again fixed telephone service and mobile call, the mobile call business can be divided into again the roaming talk business and local call is professional, wherein, the roaming talk business can be divided into again inter-provincial roaming talk business and international roaming talk business etc., and other situation by that analogy); A2, strongly connected resource in the same operation flow can be divided into a resource group as far as possible; The hot point resource of a3, business association is divided into different resource groups as far as possible; A4, certain resource that data volume is larger can be processed according to the subregion of table, split into a plurality of resource groups.Can delete old resource group or projected resources group etc. again when a5, business reorganization.
Again for instance, the grouping strategy of kernel can comprise one or more the combination among following tactful b1, tactful b2 and the tactful b3: b1, core group and resource group can be one to one relation.The size of b2, core group is adapted to have with this core group the resource group of mapping relations as far as possible, for example for the upper strata key business resource group higher to performance requirement, and the relatively many core group of check figure in as far as possible shining upon with it.When b3, the professional variation, capable of dynamic is adjusted the interior check figure (for instance, increasing or reject the kernel of corresponding core group) of corresponding core group, and for example telecom charging is professional, and conversation increases sharply in the stage in the Spring Festival, can increase the interior check figure of corresponding core group in this time period.
In some embodiments of the invention, first resource group, Secondary resource group, information resources group or the 4th resource group can comprise the subregion of at least one table and/or at least one table.
In some embodiments of the invention, type of service corresponding to all resources in first resource group, Secondary resource group, information resources group or the 4th resource group is identical.
In some embodiments of the invention, all resources in first resource group, Secondary resource group, information resources group or the 4th resource group are the resource that is associated in the same operation flow.
Can find out, the present embodiment is after receiving the first resource request of access; Call the kernel processes first resource in the first core group, wherein, first resource belongs to the first resource group, first resource is the resource of first resource request of access institute request access, the first core group comprises at least one kernel, wherein, have mapping relations between first resource group and the first core group.Because resource and kernel are divided into groups, and the mapping relations of resource group and core group have been set up, certain core group mainly special disposal has with it resource in the resource group of mapping relations, therefore is conducive to improve the hit rate of resource, and then is conducive to improving performance.
Further, because resource is also carried out grouping management, therefore, can as required grouping be distinguished in key business and resource corresponding to general service, resource group corresponding to key business can be shone upon with the stronger core group of processing power, be conducive to so more reasonably distribute and manage kernel, and then be conducive to promote the coordinating and unifying of hardware layer management, be conducive to effectively improve the key business performance, also be conducive to not take full advantage of the multi-core technology of current popular, improve concurrency, for example be conducive to utilize more fully the parallel architectural frameworks such as non-homogeneous memory access model (NUMA, Non-Uniform Memory Access).
Further, group-based administrative mechanism, the possibility so that the database perception service becomes.When larger traffic pressure, capable of dynamic is adjusted interior check figure in the core group of traffic aided or the mapping relations of adjustresources group and core group, and the performance that as far as possible guarantees key business can fast reducing, so, can be so that Database Systems adaptability be stronger, the service optimization ability is stronger.
For ease of better understanding and implement the such scheme of the embodiment of the invention, the below is some above-described embodiment schemes application scenarios that may relate to for example, such as the scene of the application scenarios of dividing the resource group, the application scenarios of dividing core group, mapping resource group and core group etc.
See also Fig. 2, Fig. 2 shows a kind of resource access method that another embodiment of the present invention provides, and can comprise following content:
201, be a plurality of resource groups based on predetermined resource grouping strategy with resource division;
For example, the grouping strategy of resource can comprise that one or more the combination among following tactful a1, tactful a2, tactful a3, tactful a4 and the tactful a5: a1, as far as possible that type of service is identical resource division are in same resource group; A2, strongly connected resource in the same operation flow can be divided into a resource group as far as possible; The hot point resource of a3, business association is divided into different resource groups as far as possible; A4, certain resource that data volume is larger can be processed according to the subregion of table, split into a plurality of resource groups.Can delete old resource group or projected resources group etc. again when a5, business reorganization.
In some embodiments of the invention, the elementary cell of the resource in the resource group can be table, table subregion etc.Wherein, each resource group can visit resource in the resource group according to resource group sign to unique resource group sign should be arranged.
For example referring to shown in Fig. 3-a, suppose to exist traffic table 1, traffic table 2 and traffic table 3, wherein, the correlation comparison of traffic table 1 and traffic table 2 is strong, therefore traffic table 1 and traffic table 2 can be divided into 1 resource group (resource group s1), the data volume that traffic table 3 comprises is larger, higher to performance requirement, some field that can service based table 3 is divided into a plurality of table subregions (Fig. 3-a is to be divided into traffic table 3 two table subregions as example) with traffic table 3, each table subregion of traffic table 3 is divided into respectively different resource groups, wherein, Fig. 3-a table subregion a1 that example illustrates traffic table 3 that passes the imperial examinations at the provincial level is divided into resource group s2, and the table subregion a2 of traffic table 3 is divided into resource group s3.
202, based on predetermined kernel grouping strategy kernel is divided into a plurality of core group;
For instance, the grouping strategy of kernel can comprise one or more the combination among following tactful b1, tactful b2 and the tactful b3: b1, core group and resource group can be one to one relation.The size of b2, core group is adapted to have with this core group the resource group of mapping relations as far as possible, for example for the upper strata key business resource group higher to performance requirement, and the relatively many core group of check figure in as far as possible shining upon with it.When b3, the professional variation, capable of dynamic is adjusted the interior check figure (for example, increasing or reject the kernel of corresponding core group) of corresponding core group, and for example telecom charging is professional, and conversation increases sharply in the stage in the Spring Festival, can increase the interior check figure of corresponding core group in this time period.
In some embodiments of the invention, can or check that by system call system file obtains the kernel topology situation of CPU, and predetermined kernel grouping strategy logically is divided into different core group, owing to be the logical partitioning core group, so can not affect existing framework.Number of cores in the dynamically adjustment group of each core group.For example, for the important service hot spot data, can increase interior check figure guarantee the respective resources group the service process performance of corresponding core group.For the less data of some portfolio, can reduce in right amount the interior check figure of its corresponding core group, in order to take full advantage of hardware resource.
Wherein, core group also can be referred to as virtual box (VCR, Virtual Core Rack).
For example shown in Fig. 3-b, suppose to exist kernel 1~8, kernel 1~4 can be divided into core group c1, kernel 5~6 is divided into core group c2, kernel 7~8 is divided into core group c3.
203, set up the mapping relations of resource group and core group.
In some embodiments of the invention, but for example the User visit capacity is determined hot point resource, and different hot point resource groups are mapped to different core group, and then is conducive to software at this comparatively bottom of data base management system (DBMS) and carries out performance optimization to business.For example shown in Fig. 3-a~Fig. 3-c, can set up the mapping relations of resource group s1 and core group c1, can set up the mapping relations of resource group s2 and core group c2, can set up the mapping relations of resource group s3 and core group c3.
For instance, suppose that the user increases traffic table 3 visit capacities, for increasing concurrency, can again carry out subregion to traffic table 3, traffic table 3 is divided into more resource group, the division layout of the kernel that also capable of regulating is corresponding is dealt with professional the variation.
For example shown in Fig. 3-d, because traffic table 3 visit capacities increase, again to traffic table 3 subregions, traffic table 3 is divided into more resource group (resource group s2~s4).For example shown in Fig. 3-e, for tackling the professional special division layout of having adjusted kernel that changes, kernel 3~4 has been rejected core group c1, kernel 3~4 has been repartitioned core group c4.For example shown in Fig. 3-f, can set up the mapping relations of resource group s1 and core group c1, can set up the mapping relations of resource group s2 and core group c2, can set up the mapping relations of resource group s3 and core group c3, can set up the mapping relations of resource group s4 and core group c4.
204, receive resource access request, wherein, suppose that the resource access request that receives carries the to some extent resource identification of request access resource ss1.
In some embodiments of the invention, can inquire according to the resource identification that resource access request is carried the resource group s1 under the represented resource ss1 of this resource identification, and can inquire the core group c1 that has mapping relations with resource group s1 according to resource group s1.
In some embodiments of the invention, after the resource access request that receives first corresponding certain user or business (resource access request may be sent by certain business procedure), can create the service processing session (being similar to the connection that is created to certain core group) that is mapped to certain core group, wherein, this service processing session is to there being session identification, and this service processing conversational services is in whole user or service request cycle.If set up the mapping relations of service processing session and core group, then when resource access request is carried session identification, also can inquire the core group that has with it mapping relations according to session identification.Wherein, session identification can be used for representing corresponding session.
205, call kernel processes resource ss1 among the core group c1.
In some embodiments of the invention, because the resource in the resource group of the core instructions of a core group c1 execution access map, therefore corresponding buffer memory (cache) hit rate can significantly improve; And the change of resource group only has with it that kernel cache can be affected in the core group of mapping, and therefore, kernel is carried out efficient and can be greatly improved.
The below implements the scene of the present embodiment scheme for example in two kinds of hardware systems.
See also Fig. 4-a, Fig. 4-a is illustrated in and implements the present embodiment scheme in the common hardware system, supposes that hardware layer has 6 kernels, and it is divided into two core group, and two core group are related from different resource group mappings respectively.
See also Fig. 4-b, Fig. 4-b is illustrated in and implements the present embodiment scheme in the NUMA hardware systems.
Wherein, have a plurality of CPU modules (each CPU module can be regarded 1 NUMA node as) in the NUMA hardware systems, wherein, each CPU module by a plurality of CPU(such as 4) form, and have independently local internal memory, I/O notch etc., because can connect and information interaction by interconnect module between its node, therefore, each CPU can the travel all over Installed System Memory.Obviously, the speed of accessing local internal memory will be higher than the far speed of internal memory (being the internal memory of other node in the system) of access far away, in order to bring into play better system performance, need reduce the information interaction between the different CPU module as far as possible.
Can give full play to NUMA framework advantage in conjunction with embodiment of the invention scheme, core group and NUMA node are set up mapping relations, mapping relations have been set up between resource group and the core group, therefore the access of resource can be directed to concrete NUMA node, it is not accessed as far as possible stride the NUMA node memory, the performance of whole NUMA hardware systems will be greatly improved, and visible embodiment scheme has very strong application scalability.
Can find out, the technical scheme of the present embodiment is owing to dividing into groups to resource and kernel, and the mapping relations of resource group and core group have been set up, certain core group mainly special disposal has with it resource in the resource group of mapping relations, after receiving resource access request, then call the corresponding resource of kernel processes in the core group of associated mapping, therefore, scheme is conducive to improve the hit rate of resource, and then is conducive to improving performance.
And, be conducive to utilize the parallel characteristics of polycaryon processor and the cache of each CPU, by with session and accessed resource and CPU core mapping, be conducive to improve kernel cache hit rate, and then greatly promote each CPU core IO handling property, thereby improve the data bank service processing speed.Different resource groups and different CPU kernel mappings are conducive to reduce the synchronous consumption of CPU core cache inefficacy, promote the concurrency of CPU.
Further, because resource is also carried out grouping management, therefore, can as required grouping be distinguished in key business and resource corresponding to general service, resource group corresponding to key business can be shone upon with the stronger core group of processing power, be conducive to so more reasonably distribute and manage kernel, and then be conducive to promote the coordinating and unifying of hardware layer management, be conducive to effectively improve the key business performance, also be conducive to not take full advantage of current multi-core technology, improve concurrency, be conducive to utilize more fully the parallel architectural frameworks such as non-homogeneous memory access model.
Further, group-based administrative mechanism, the possibility so that the database perception service becomes.When larger traffic pressure, capable of dynamic is adjusted interior check figure in the core group of traffic aided or the mapping relations of adjustresources group and core group, and the performance that as far as possible guarantees key business can fast reducing, so, can be so that Database Systems adaptability be stronger, the service optimization ability is stronger.
For ease of better implementing the such scheme of the embodiment of the invention, the below also is provided for implementing the relevant apparatus of such scheme.
Referring to Fig. 5-a, the schematic diagram of the computer equipment 500 that Fig. 5-a provides for the embodiment of the invention, computer equipment 500 can comprise: receiving element 510 and call unit 520.
Wherein, receiving element 510 is used for receiving the first resource request of access.
For example, receiving element 510 can receive the first resource request of access from client, and resource access request can trigger corresponding resource treatment scheme.Wherein, resource access request may be requesting query, calculating and/or store certain resource, also may be other processing of request certainly.
In some embodiments of the invention, receiving element 510 can be realized based on devices such as network interface cards.
Call unit 520, be used for calling the kernel processes first resource of the first core group, first resource belongs to the first resource group, first resource is the resource of first resource request of access institute request access, the first core group comprises at least one kernel, has mapping relations between first resource group and the first core group.
In some embodiments of the invention, portability has the sign of first resource and the first session identification (certainly in the first resource request of access, go back simultaneously the sign of portability first resource and/or the sign of first resource group etc. in the first resource request of access), call unit 520 can specifically be used for, the first represented session of inquiry and the first session identification has the core group of mapping relations, the core group that inquires is the first core group, calls the kernel processes first resource in the first core group.
In other embodiment of the present invention, call unit 520 can specifically be used for, if carry the sign of first resource group in the first resource request of access (certainly, go back simultaneously the sign of portability first resource and/or session identification etc. in the first resource request of access), and inquiring the core group that has mapping relations with the represented first resource group of the sign of first resource group is the first core group, then can call the kernel processes first resource in the first core group.One or more kernels that can call in the first core group for instance, are processed first resource.
In some embodiments of the invention, receiving element 510 can also be used for, and receives the Secondary resource request of access, wherein, carries the sign of the first session identification and Secondary resource in the Secondary resource request of access.
Wherein, call unit 520 also can be used for, the core group that the first represented session of inquiry and the first session identification has mapping relations is the first core group, if the represented Secondary resource of the sign of Secondary resource does not belong to the first resource group and belongs to the Secondary resource group, then inquiry and Secondary resource group have the core group of mapping relations, if the core group that has mapping relations with the Secondary resource group that inquires is the second core group, call the kernel processes Secondary resource in the second core group, wherein the second core group comprises at least one kernel.One or more kernels that can call for instance in the second core group are processed Secondary resource.
Referring to Fig. 5-b, in some embodiments of the invention, computer equipment 500 also can comprise:
Inner core managing unit 530, be used for the first kernel is rejected from the first core group, and/or, the second kernel (is for example added among the first core group, can be after the second kernel be rejected from the second core group, the second kernel is added among described the first core group).For example may the first kernel be rejected from the first core group according to user instruction, and/or the second kernel added among the first core group, perhaps may the first kernel be rejected from the first core group according to the access situation of first resource group, and/or the second kernel added among the first core group, when being reduced to certain threshold value such as the access frequency when the first resource group, the first kernel can be rejected from the first core group; When the access frequency of first resource group is higher than certain threshold value, the second kernel can be added among the first core group, other scene is by that analogy.
Referring to Fig. 5-c, in some embodiments of the invention, computer equipment 500 also can comprise:
Rm-cell 540 is used for first resource is rejected from the first resource group, and/or, the 5th resource is added among the resource group.For example may first resource be rejected from the first resource group according to user instruction, and/or the 5th resource added among the resource group, perhaps, may first resource be rejected from the first resource group according to the access situation of first resource group, and/or the 5th resource is added among the resource group.
In some embodiments of the invention, can record in several ways the mapping relations between resource group and the core group, for instance, can be by showing to record the mapping relations between first resource group and the first core group, other situation is by that analogy.
In some embodiments of the invention, mapping relations between recording conversation and the core group in several ways, for example, can be by showing to record the mapping relations (can record the sign of the first session and sign of the first core group etc. in the table) between the first session and the first core group, other situation is by that analogy.
In some embodiments of the invention, any one kernel in the first core group does not all belong to the second core group, and wherein, the second core group is the core group that is different from the first core group, that is, different core group comprise different kernels, do not have overlapping.Certainly, in particular cases some kernel of the first core group may belong to simultaneously in the second core group and/or other and shares.
In some embodiments of the invention, receiving element 510 also can be used for, and receives the information resources request of access;
Wherein, call unit 520 also can be used for, if carry the sign of the first session identification and information resources in the information resources request of access, can be according to resource group under the represented information resources of the sign of the sign of information resources inquiry information resources, if be the information resources group according to resource group under the sign of the information resources inquiry information resources, then can inquire about the core group that has mapping relations with the information resources group, if inquiring the core group that has mapping relations with the information resources group is the 3rd core group, then call the kernel processes information resources in the 3rd core group, wherein, the 3rd core group comprises at least one kernel.One or more kernels that for example, can call in the 3rd core group are processed information resources.
In some embodiments of the invention, receiving element 510 also can be used for, and receives the 4th resource access request;
Wherein, call unit 520 also can be used for, if carry the first session identification in the information resources request of access, the sign of the sign of the 4th resource group and the 4th resource, wherein, the 4th represented resource of the sign of the 4th resource belongs to the 4th represented resource group of sign of the 4th resource group, then can inquire about the core group that has mapping relations with the 4th resource group, wherein, if inquiring the core group that has mapping relations with the 4th resource group is the 4th core group, then can call kernel processes the 4th resource in the 4th core group, wherein, the 4th core group comprises at least one kernel.One or more kernel that can call in the 3rd core group for instance, is processed information resources.
In some embodiments of the invention, inner core managing unit 530 can select different grouping strategies to come resource and kernel are divided into groups with rm-cell 540 as required, and the grouping strategy under the different scenes may be not quite similar.
For example the resource grouping strategy of rm-cell 540 can comprise that one or more the combination among following tactful a1, tactful a2, tactful a3, tactful a4 and the tactful a5: a1, as far as possible that type of service is identical resource division are in same resource group; A2, strongly connected resource in the same operation flow can be divided into a resource group as far as possible; The hot point resource of a3, business association is divided into different resource groups as far as possible; A4, certain resource that data volume is larger can be processed according to the subregion of table, split into a plurality of resource groups.Can delete old resource group or projected resources group etc. again when a5, business reorganization.
Again for instance, the kernel grouping strategy of inner core managing unit 530 can comprise one or more the combination among following tactful b1, tactful b2 and the tactful b3:
B1, core group and resource group can be one to one relation.The size of b2, core group is adapted to have with this core group the resource group of mapping relations as far as possible, for example for the upper strata key business resource group higher to performance requirement, and the relatively many core group of check figure in as far as possible shining upon with it.When b3, the professional variation, capable of dynamic is adjusted the interior check figure (for example, increasing or reject the kernel of corresponding core group) of corresponding core group,
For instance, telecom charging is professional, and conversation increases sharply in the stage in the Spring Festival, can increase the interior check figure of corresponding core group in this time period.
In some embodiments of the invention, first resource group, Secondary resource group, information resources group or the 4th resource group can comprise the subregion of at least one table and/or at least one table.
In some embodiments of the invention, type of service corresponding to all resources in first resource group, Secondary resource group, information resources group or the 4th resource group is identical.
In some embodiments of the invention, all resources in first resource group, Secondary resource group, information resources group or the 4th resource group are strongly connected resource in the same operation flow.
Be understandable that, the function of each functional module of the computer equipment 500 of the present embodiment can be according to the method specific implementation among the said method embodiment, its specific implementation process can be with reference to the associated description of said method embodiment, repeat no more herein, in addition, each functional module of computer equipment 500 can be the functional module of software realization, in the situation that disregard cost, also can realize with hardware circuit, can be network interface card such as receiving element 510, radio-frequency module, Wi-Fi chip etc. has the hardware cell of transmission-receiving function, call unit 520 can be central processing unit (Central Processing Unit, referred to as CPU), or specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or be configured to implement the one or more integrated circuit of function of the call unit of the embodiment of the invention.
Can find out, the present embodiment Computer equipment 500 is after receiving the first resource request of access; Call the kernel processes first resource in the first core group, wherein, first resource belongs to the first resource group, first resource is the resource of first resource request of access institute request access, the first core group comprises at least one kernel, wherein, have corresponding mapping relations between first resource group and the first core group.Because resource and kernel are divided into groups, and the mapping relations of resource group and core group have been set up, certain core group mainly special disposal has with it resource in the resource group of mapping relations, therefore is conducive to improve the hit rate of resource, and then is conducive to improving performance.
Further, because resource is also carried out grouping management, therefore, can as required grouping be distinguished in key business and resource corresponding to general service, resource group corresponding to key business can be shone upon with the stronger core group of processing power, be conducive to so more reasonably distribute and manage kernel, and then be conducive to promote the coordinating and unifying of hardware layer management, be conducive to effectively improve the key business performance, also be conducive to not take full advantage of current multi-core technology, improve concurrency, be conducive to utilize more fully the parallel architectural frameworks such as non-homogeneous memory access model.
Further, group-based administrative mechanism, the possibility so that the database perception service becomes.When larger traffic pressure, capable of dynamic is adjusted interior check figure in the core group of traffic aided or the mapping relations of adjustresources group and core group, and the performance that as far as possible guarantees key business can fast reducing, so, can be so that Database Systems adaptability be stronger, the service optimization ability is stronger.
Referring to Fig. 6, the schematic diagram of the computer equipment 600 that Fig. 6 provides for the embodiment of the invention, computer equipment 600 can comprise: mapping controller 610, explorer 620, inner core managing device 630, thread mapper 640 and mapping monitor 650.
Wherein, mapping controller 610 can be used for the mapping relations of management resource group and core group, and inquires corresponding core group according to resource access request, creates the mapping thread.
Explorer 620 can be used for according to the needs of business existing resource being divided into groups, as organizing several table subregions or table establishing resource group.And can dynamically adjust.
Inner core managing device 630 can dynamically be divided new core group, and adjusts the core group number of cores, also can be responsible for the load balancing of each kernel in the core group.
Thread mapper 640 can be used for setting up the thread mapping based on the kernel frame, and the mapping relations of the thread of leading subscriber attitude and kernel state thread can be shone upon kernel thread, also can discharge kernel thread, the MOS resource.When the hardware of NUMA system, set up the mapping relations of core group and NUMA node.
Mapping monitor 650 is used for each module running status of monitoring, and the functions such as statistics and alarm are provided.
Be understandable that, the function of each functional module of the computer equipment 600 of the present embodiment can be according to the method specific implementation among the said method embodiment, and its specific implementation process can with reference to the associated description of said method embodiment, repeat no more herein.
Fig. 7 is the structural representation of a kind of computer equipment provided by the invention, as shown in Figure 7, the computer equipment 700 of the present embodiment comprises at least one bus 701, at least one processor 702 that links to each other with bus 701 and the network interface 703 that links to each other with bus 701, processor 702 includes a plurality of kernels, and these a plurality of kernels are divided at least two core group.
Wherein, network interface 703 is used for receiving the first resource request of access; Processor 702 is used for calling the kernel processes first resource of the first core group, wherein, first resource belongs to the first resource group, first resource is the resource of first resource request of access institute request access, the first core group comprises at least one kernel in above-mentioned a plurality of kernel, has mapping relations between first resource group and the first core group.
For example, the first resource request of access from client that processor 702 can receive according to network interface 703 triggers corresponding resource treatment scheme.Wherein, resource access request may be requesting query, calculating and/or store certain resource, also may be other processing of request certainly.
In some embodiments of the invention, portability has the sign of first resource and the first session identification (certainly in the first resource request of access, go back simultaneously the sign of portability first resource and/or the sign of first resource group etc. in the first resource request of access), wherein, before the kernel processes first resource of processor 702 in calling the first core group, also can inquire about the core group that has mapping relations with represented the first session of the first session identification, wherein, the core group that inquires is the first core group.One or more kernels that for example, can call in the first core group are processed first resource.
In other embodiment of the present invention, the kernel processes first resource that processor 702 calls in the first core group can comprise: if it is (certain to carry the sign of first resource group in the first resource request of access, go back simultaneously the sign of portability first resource and/or session identification etc. in the first resource request of access), and inquiring the core group that has mapping relations with the represented first resource group of the sign of first resource group is the first core group, then can call the kernel processes first resource in the first core group.One or more kernel that can call in the first core group for instance, is processed first resource.
The first kernel that processor 702 can call in the first core group is processed first resource, wherein, endorses in first and comprises one or more kernels.Second kernel that can call in the second core group is processed Secondary resource, wherein endorses in second to comprise one or more kernels.
In some embodiments of the invention, processor 702 also can be rejected the first kernel from the first core group, and/or the second kernel (for example added among the first core group, can be after the second kernel be rejected from the second core group, the second kernel is added among described the first core group).For example may the first kernel be rejected from the first core group according to user instruction, and/or the second kernel added among the first core group, perhaps may the first kernel be rejected from the first core group according to the access situation of first resource group, and/or the second kernel added among the first core group, when being reduced to certain threshold value such as the access frequency when the first resource group, the first kernel can be rejected from the first core group; When the access frequency of first resource group is higher than certain threshold value, the second kernel can be added among the first core group, other scene is by that analogy.
In some embodiments of the invention, processor 702 also can be rejected first resource from the first resource group, and/or the 5th resource is added among the resource group.For example may first resource be rejected from the first resource group according to user instruction, and/or the 5th resource added among the resource group, perhaps, may first resource be rejected from the first resource group according to the access situation of first resource group, and/or the 5th resource is added among the resource group.
In some embodiments of the invention, processor 702 can record the mapping relations between resource group and the core group in several ways, for example, can be by showing to record the mapping relations between first resource group and the first core group, other situation is by that analogy.
In some embodiments of the invention, processor 702 is the mapping relations between recording conversation and the core group in several ways, for example, can be by showing to record the mapping relations (can record the sign of the first session and sign of the first core group etc. in the table) between the first session and the first core group, other situation is by that analogy.
In some embodiments of the invention, network interface 703 also can receive the Secondary resource request of access; If carry the sign of the first session identification and Secondary resource in the Secondary resource request of access, and it is the first core group that processor 702 inquires the core group that has mapping relations with represented the first session of the first session identification, determine then whether Secondary resource belongs to the first resource group, if determining the represented Secondary resource of the sign of Secondary resource does not belong to the first resource group and belongs to the Secondary resource group, then inquiry and Secondary resource group have the core group of mapping relations, if inquiring the core group that has mapping relations with the Secondary resource group is the second core group, then call the kernel processes Secondary resource in the second core group, wherein, the second core group comprises at least one kernel.One or more kernels that can call in the second core group for instance, are processed Secondary resource.
In some embodiments of the invention, any one kernel in the first core group does not all belong to the second core group, and wherein, the second core group is the core group that is different from the first core group, that is, different core group comprise different kernels, do not have overlapping.Certainly, in particular cases some kernel of the first core group may belong to simultaneously in the second core group and/or other and shares.
In some embodiments of the invention, network interface 703 also can receive the information resources request of access; If carry the sign of the first session identification and information resources in the information resources request of access, then processor 702 can be according to resource group under the sign inquiry information resources of information resources, if be the information resources group according to resource group under the represented information resources of the sign of the sign of information resources inquiry information resources, then can inquire about the core group that has mapping relations with the information resources group, if inquiring the core group that has mapping relations with the information resources group is the 3rd core group, then call the kernel processes information resources in the 3rd core group, wherein, the 3rd core group comprises at least one kernel.One or more kernels that for example, can call in the 3rd core group are processed information resources.
In some embodiments of the invention, network interface 703 also can receive the 4th resource access request; If carry the sign of the first session identification, the 4th resource group and the sign of the 4th resource in the information resources request of access, wherein, the 4th represented resource of the sign of the 4th resource belongs to the 4th represented resource group of sign of the 4th resource group, then processor 702 can be inquired about the core group that has mapping relations with the 4th resource group, wherein, if inquiring the core group that has mapping relations with the 4th resource group is the 4th core group, then can call kernel processes the 4th resource in the 4th core group, wherein, the 4th core group comprises at least one kernel.One or more kernel that can call in the 3rd core group for instance, is processed information resources.
In some embodiments of the invention, processor 702 can select different grouping strategies to come resource and kernel are divided into groups as required, and the grouping strategy under the different scenes may be not quite similar.
For example, the grouping strategy of resource can comprise that one or more the combination among following tactful a1, tactful a2, tactful a3, tactful a4 and the tactful a5: a1, as far as possible that type of service is identical resource division are in same resource group; A2, strongly connected resource in the same operation flow can be divided into a resource group as far as possible; The hot point resource of a3, business association is divided into different resource groups as far as possible; A4, certain resource that data volume is larger can be processed according to the subregion of table, split into a plurality of resource groups.Can delete old resource group or projected resources group etc. again when a5, business reorganization.
Again for instance, the grouping strategy of kernel can comprise one or more the combination among following tactful b1, tactful b2 and the tactful b3: b1, core group and resource group can be one to one relation.The size of b2, core group is adapted to have with this core group the resource group of mapping relations as far as possible, for example for the upper strata key business resource group higher to performance requirement, and the relatively many core group of check figure in as far as possible shining upon with it.When b3, the professional variation, capable of dynamic is adjusted the interior check figure (for example, increasing or reject the kernel of corresponding core group) of corresponding core group, and for example telecom charging is professional, and conversation increases sharply in the stage in the Spring Festival, can increase the interior check figure of corresponding core group in this time period.
In some embodiments of the invention, first resource group, Secondary resource group, information resources group or the 4th resource group can comprise the subregion of at least one table and/or at least one table.
In some embodiments of the invention, type of service corresponding to all resources in first resource group, Secondary resource group, information resources group or the 4th resource group is identical.
In some embodiments of the invention, all resources in first resource group, Secondary resource group, information resources group or the 4th resource group are strongly connected resource in the same operation flow.
Be understandable that, the function of each functional module of the computer equipment 700 of the present embodiment can be according to the method specific implementation among the said method embodiment, and its specific implementation process can with reference to the associated description of said method embodiment, repeat no more herein.
Can find out, the present embodiment is after network interface 703 receives the first resource request of access, processor 702 calls the kernel processes first resource in the first core group, wherein, first resource belongs to the first resource group, and first resource is the resource of first resource request of access institute request access, and the first core group comprises at least one kernel, wherein, have corresponding mapping relations between first resource group and the first core group.Because resource and kernel are divided into groups, and the mapping relations of resource group and core group have been set up, certain core group mainly special disposal has with it resource in the resource group of mapping relations, therefore is conducive to improve the hit rate of resource, and then is conducive to improving performance.
Further, because resource is also carried out grouping management, therefore, can as required grouping be distinguished in key business and resource corresponding to general service, resource group corresponding to key business can be shone upon with the stronger core group of processing power, be conducive to so more reasonably distribute and manage kernel, and then be conducive to promote the coordinating and unifying of hardware layer management, be conducive to effectively improve the key business performance, also be conducive to not take full advantage of current multi-core technology, improve concurrency, be conducive to utilize more fully the parallel architectural frameworks such as non-homogeneous memory access model.
Further, group-based administrative mechanism, the possibility so that the database perception service becomes.When larger traffic pressure, capable of dynamic is adjusted interior check figure in the core group of traffic aided or the mapping relations of adjustresources group and core group, and the performance that as far as possible guarantees key business can fast reducing, so, can be so that Database Systems adaptability be stronger, the service optimization ability is stronger.
Fig. 8 has described the structure of a kind of computer equipment 800 that the embodiment of the invention provides, and this computer equipment 800 comprises: at least one processor 801, CPU for example, at least one network interface 804, storer 805, at least one communication bus 802.Communication bus 802 is used for the connection communication between these assemblies of realization.This communication terminal 800 optionally comprises user interface 803, be used for to connect display, keyboard or pointing device (for example mouse, trace ball (trackball), touch-sensitive plate or touch sensitive display screen).
Storer 805 may comprise the high-speed RAM storer, also may also comprise non-unsettled storer (non-volatile memory), for example at least one magnetic disk memory.Storer 805 optionally can comprise at least one and be positioned at memory storage away from aforementioned processing device 801.
In some embodiments, storer 805 has been stored following element, executable module or data structure, perhaps their subset, perhaps their superset:
Operating system 8051 comprises various system programs, is used for realizing various basic businesses and processing hardware based task;
Application program module 8052 comprises various application programs, is used for realizing various applied business.
Include but not limited to receiving element 510 and call unit 520 in the application program module 8052.
Further, also can include but not limited to rm-cell 540 and inner core managing unit 530 in the application program module 8052.
The specific implementation of each module is not repeated herein referring to the corresponding module in Fig. 5-a~5-c illustrated embodiment in the application program module 8052.
In embodiments of the present invention, by calling program or the instruction of storer 808 storages, processor 801 is used for: receive the first resource request of access by network interface 804; Call the kernel processes first resource in the first core group, wherein, first resource belongs to the first resource group, and first resource is the resource of first resource request of access institute request access, the first core group comprises at least one kernel, has the binding mapping relation between first resource group and the first core group.
For instance, processor 801 can be by the first resource request of access of network interface 804 receptions from client, and resource access request can trigger corresponding resource treatment scheme.Wherein, resource access request may be requesting query, calculating and/or store certain resource, also may be other processing of request certainly.
In some embodiments of the invention, portability has the sign of first resource and the first session identification (certainly in the first resource request of access, go back simultaneously the sign of portability first resource and/or the sign of first resource group etc. in the first resource request of access), wherein, before the kernel processes first resource of processor 801 in calling the first core group, also can inquire about the core group that has mapping relations with represented the first session of the first session identification, wherein, the core group that inquires is the first core group.One or more kernels that for example, can call in the first core group are processed first resource.
In other embodiment of the present invention, the kernel processes first resource that processor 801 calls in the first core group can comprise: if it is (certain to carry the sign of first resource group in the first resource request of access, go back simultaneously the sign of portability first resource and/or session identification etc. in the first resource request of access), and inquiring the core group that has mapping relations with the represented first resource group of the sign of first resource group is the first core group, then can call the kernel processes first resource in the first core group.One or more kernel that can call in the first core group for instance, is processed first resource.
The first kernel that processor 801 can call in the first core group is processed first resource, wherein, endorses in first and comprises one or more kernels.Second kernel that can call in the second core group is processed Secondary resource, wherein endorses in second to comprise one or more kernels.
In some embodiments of the invention, processor 801 also can be rejected the first kernel from the first core group, and/or the second kernel (for example added among the first core group, can be after the second kernel be rejected from the second core group, the second kernel is added among described the first core group).For example may the first kernel be rejected from the first core group according to user instruction, and/or the second kernel added among the first core group, perhaps may the first kernel be rejected from the first core group according to the access situation of first resource group, and/or the second kernel added among the first core group, when being reduced to certain threshold value such as the access frequency when the first resource group, the first kernel can be rejected from the first core group; When the access frequency of first resource group is higher than certain threshold value, the second kernel can be added among the first core group, other scene is by that analogy.
In some embodiments of the invention, processor 801 also can be rejected first resource from the first resource group, and/or the 5th resource is added among the resource group.For example may first resource be rejected from the first resource group according to user instruction, and/or the 5th resource added among the resource group, perhaps, may first resource be rejected from the first resource group according to the access situation of first resource group, and/or the 5th resource is added among the resource group.
In some embodiments of the invention, processor 801 can record the mapping relations between resource group and the core group in several ways, for example, can be by showing to record the mapping relations between first resource group and the first core group, other situation is by that analogy.
In some embodiments of the invention, processor 801 is the mapping relations between recording conversation and the core group in several ways, for example, can be by showing to record the mapping relations (can record the sign of the first session and sign of the first core group etc. in the table) between the first session and the first core group, other situation is by that analogy.
In some embodiments of the invention, processor 801 also can receive the Secondary resource request of access by network interface 804; Wherein, if carry the sign of the first session identification and Secondary resource in the Secondary resource request of access, and inquiring the core group that has mapping relations with represented the first session of the first session identification is the first core group, determine then whether Secondary resource belongs to the first resource group, if determining the represented Secondary resource of the sign of Secondary resource does not belong to the first resource group and belongs to the Secondary resource group, then inquiry and Secondary resource group have the core group of mapping relations, if inquiring the core group that has mapping relations with the Secondary resource group is the second core group, then call the kernel processes Secondary resource in the second core group, wherein, the second core group comprises at least one kernel.One or more kernels that can call in the second core group for instance, are processed Secondary resource.
In some embodiments of the invention, any one kernel in the first core group does not all belong to the second core group, and wherein, the second core group is the core group that is different from the first core group, that is, different core group comprise different kernels, do not have overlapping.Certainly, in particular cases some kernel of the first core group may belong to simultaneously in the second core group and/or other and shares.
In some embodiments of the invention, processor 801 also can receive the information resources request of access by network interface 804; If carry the sign of the first session identification and information resources in the information resources request of access, can be according to resource group under the sign inquiry information resources of information resources, if be the information resources group according to resource group under the represented information resources of the sign of the sign of information resources inquiry information resources, then can inquire about the core group that has mapping relations with the information resources group, if inquiring the core group that has mapping relations with the information resources group is the 3rd core group, then call the kernel processes information resources in the 3rd core group, wherein, the 3rd core group comprises at least one kernel.One or more kernels that for example, can call in the 3rd core group are processed information resources.
In some embodiments of the invention, processor 801 also can receive the 4th resource access request by network interface 804; If carry the sign of the first session identification, the 4th resource group and the sign of the 4th resource in the information resources request of access, wherein, the 4th represented resource of the sign of the 4th resource belongs to the 4th represented resource group of sign of the 4th resource group, then can inquire about the core group that has mapping relations with the 4th resource group, wherein, if inquiring the core group that has mapping relations with the 4th resource group is the 4th core group, then can call kernel processes the 4th resource in the 4th core group, wherein, the 4th core group comprises at least one kernel.One or more kernel that can call in the 3rd core group for instance, is processed information resources.
In some embodiments of the invention, processor 801 can select different grouping strategies to come resource and kernel are divided into groups as required, and the grouping strategy under the different scenes may be not quite similar.
For example, the grouping strategy of resource can comprise that one or more the combination among following tactful a1, tactful a2, tactful a3, tactful a4 and the tactful a5: a1, as far as possible that type of service is identical resource division are in same resource group; A2, strongly connected resource in the same operation flow can be divided into a resource group as far as possible; The hot point resource of a3, business association is divided into different resource groups as far as possible; A4, certain resource that data volume is larger can be processed according to the subregion of table, split into a plurality of resource groups.Can delete old resource group or projected resources group etc. again when a5, business reorganization.
Again for instance, the grouping strategy of kernel can comprise one or more the combination among following tactful b1, tactful b2 and the tactful b3: b1, core group and resource group can be one to one relation.The size of b2, core group is adapted to have with this core group the resource group of mapping relations as far as possible, for example for the upper strata key business resource group higher to performance requirement, and the relatively many core group of check figure in as far as possible shining upon with it.When b3, the professional variation, capable of dynamic is adjusted the interior check figure (for example, increasing or reject the kernel of corresponding core group) of corresponding core group, and for example telecom charging is professional, and conversation increases sharply in the stage in the Spring Festival, can increase the interior check figure of corresponding core group in this time period.
In some embodiments of the invention, first resource group, Secondary resource group, information resources group or the 4th resource group can comprise the subregion of at least one table and/or at least one table.
In some embodiments of the invention, type of service corresponding to all resources in first resource group, Secondary resource group, information resources group or the 4th resource group is identical.
In some embodiments of the invention, all resources in first resource group, Secondary resource group, information resources group or the 4th resource group are strongly connected resource in the same operation flow.
Be understandable that, the function of each functional module of the computer equipment 800 of the present embodiment can be according to the method specific implementation among the said method embodiment, and its specific implementation process can with reference to the associated description of said method embodiment, repeat no more herein.
As seen, behind the employing such scheme, processor 801 receives after the first resource request of access; Call the kernel processes first resource in the first core group, wherein, first resource belongs to the first resource group, first resource is the resource of first resource request of access institute request access, the first core group comprises at least one kernel, wherein, have corresponding mapping relations between first resource group and the first core group.Because resource and kernel are divided into groups, and the mapping relations of resource group and core group have been set up, certain core group mainly special disposal has with it resource in the resource group of mapping relations, therefore is conducive to improve the hit rate of resource, and then is conducive to improving performance.
Further, because resource is also carried out grouping management, therefore, can as required grouping be distinguished in key business and resource corresponding to general service, resource group corresponding to key business can be shone upon with the stronger core group of processing power, be conducive to so more reasonably distribute and manage kernel, and then be conducive to promote the coordinating and unifying of hardware layer management, be conducive to effectively improve the key business performance, also be conducive to not take full advantage of current multi-core technology, improve concurrency, be conducive to utilize more fully the parallel architectural frameworks such as non-homogeneous memory access model.
Further, group-based administrative mechanism, the possibility so that the database perception service becomes.When larger traffic pressure, capable of dynamic is adjusted interior check figure in the core group of traffic aided or the mapping relations of adjustresources group and core group, and the performance that as far as possible guarantees key business can fast reducing, so, can be so that Database Systems adaptability be stronger, the service optimization ability is stronger.
The embodiment of the invention also provides a kind of schematic diagram of multinuclear mobile phone 900, and wherein, multinuclear mobile phone 900 can be used for realizing the part or all of function of above-described embodiment Computer equipment 500, computer equipment 600, computer equipment 700 or computer equipment 800.
As shown in Figure 9, for convenience of explanation, only showing some may the part relevant with the embodiment of the invention, and the concrete ins and outs of part do not disclose, and please refer to embodiment of the invention method part.
With reference to figure 9, the multinuclear mobile phone comprises radio frequency (Radio Frequency, RF) parts such as circuit 910, storer 920, input block 930, Wireless Fidelity (wireless fidelity, WiFi) module 970, display unit 940, sensor 950, voicefrequency circuit 960, processor 980 and power supply 990.
Wherein, it will be understood by those skilled in the art that the multinuclear handset structure shown in Fig. 9 does not consist of the restriction to the multinuclear mobile phone, can comprise the parts more more or less than diagram, perhaps make up some parts, perhaps different arrangements of components.
RF circuit 910 be used in receive and send messages or communication process in, the reception of signal and transmission especially, after the downlink information of base station received, process for processor 980; In addition, the up data of design are sent to the base station.Usually, the RF circuit includes but not limited to antenna, at least one amplifier, transceiver, coupling mechanism, low noise amplifier (Low Noise Amplifier, LNA), diplexer etc.In addition, RF circuit 910 can also be by radio communication and network and other devices communicatings.Above-mentioned radio communication can be used arbitrary communication standard or agreement, include but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA) (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE)), Email, Short Message Service (Short Messaging Service, SMS) etc.
Wherein, storer 920 can be used for storing software program and module, and processor 980 is stored in software program and the module of storer 920 by operation, thereby the various functions of carrying out the multinuclear mobile phone are used and the data processing.Storer 920 can mainly comprise storage program district and storage data field, wherein, but the required application program (such as sound-playing function, image player function etc.) of storage program district storage operating system, at least one function etc.; The data (such as voice data, phone directory etc.) that the use according to the multinuclear mobile phone creates etc. can be stored in the storage data field.In addition, storer 920 can comprise high-speed random access memory, can also comprise nonvolatile memory, for example at least one disk memory, flush memory device or other volatile solid-state parts.
Input block 930 can be used for receiving numeral or the character information of input, and generation is inputted with the key signals that the user arranges and function control is relevant of multinuclear mobile phone 900.Particularly, input block 930 can comprise contact panel 931 and other input equipments 932.Contact panel 931, be also referred to as touch-screen, can collect the user thereon or near touch operation (use such as the user any suitable objects such as finger, stylus or annex on the contact panel 931 or near the operation contact panel 931), and drive corresponding coupling arrangement according to predefined formula.Optionally, contact panel 931 can comprise touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detects user's touch orientation, and detects the signal that touch operation is brought, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, gives processor 980 again, and the order that energy receiving processor 980 is sent is also carried out.In addition, can adopt the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave to realize contact panel 931.Except contact panel 931, input block 930 can also comprise other input equipments 932.Particularly, other input equipments 932 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, the control lever etc.
Wherein, display unit 940 can be used for showing the information of being inputted by the user or offering user's information and the various menus of multinuclear mobile phone.Display unit 940 can comprise display panel 941, optionally, can adopt the forms such as liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) to configure display panel 941.Further, contact panel 931 can cover display panel 941, when contact panel 931 detect thereon or near touch operation after, send processor 980 to determining the type of touch event, provide corresponding vision output according to the type of touch event at display panel 941 with preprocessor 980.Although in Fig. 9, contact panel 931 and display panel 941 be as two independently parts realize input and the input function of multinuclear mobile phone, but in certain embodiments, can contact panel 931 and display panel 941 is integrated and realize the input and output function of multinuclear mobile phone.
Wherein, multinuclear mobile phone 900 also can comprise at least a sensor 950, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor can be regulated according to the light and shade of ambient light the brightness of display panel 941, proximity transducer can when the multinuclear mobile phone moves in one's ear, cut out display panel 941 and/or backlight.A kind of as motion sensor, accelerometer sensor can detect the acceleration magnitude that (is generally three axles) on all directions, size and the direction of gravity be can detect when static, application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as passometer, knock) of multinuclear mobile phone attitude etc. can be used for identifying; As for multinuclear mobile phone other sensors such as configurable gyroscope, barometer, hygrometer, thermometer and infrared ray sensor also, do not repeat them here.
Voicefrequency circuit 960, loudspeaker 961, microphone 962 can provide the audio interface between user and the multinuclear mobile phone.Voicefrequency circuit 960 can be transferred to loudspeaker 961 with the electric signal after the voice data conversion that receives, and is converted to voice signal output by loudspeaker 961; On the other hand, microphone 962 is converted to electric signal with the voice signal of collecting, by being converted to voice data after voicefrequency circuit 960 receptions, after again voice data output processor 980 being processed, to send to such as another multinuclear mobile phone, perhaps export voice data to storer 920 in order to further process through RF circuit 910.
WiFi belongs to the short range wireless transmission technology, the multinuclear mobile phone by WiFi module 970 can help that the user sends and receive e-mail, browsing page and access streaming video etc., it provides wireless broadband internet access for the user.Although Fig. 9 shows WiFi module 970, be understandable that, it does not belong to must consisting of of multinuclear mobile phone 900, fully can be as required in the scope of the essence that does not change invention and omit.
Processor 980 is control centers of multinuclear mobile phone, utilize the various piece of the whole multinuclear mobile phone of various interface and connection, by moving or carry out software program and/or the module that is stored in the storer 920, and call the data that are stored in the storer 920, carry out various functions and the deal with data of multinuclear mobile phone, thereby the multinuclear mobile phone is carried out integral monitoring.Optionally, processor 980 can comprise one or more processing units; Preferably, processor 980 can integrated application processor and modem processor, and wherein, application processor is mainly processed operating system, user interface and application program etc., and modem processor is mainly processed radio communication.
Be understandable that, above-mentioned modem processor also can not be integrated in the processor 980.
Multinuclear mobile phone 900 comprises that also the power supply 990(that powers to all parts is such as battery).
Preferably, power supply can link to each other with processor 980 logics by power-supply management system, thereby realizes the functions such as management charging, discharge and power managed by power-supply management system.Although not shown, multinuclear mobile phone 900 can also comprise camera, bluetooth module etc., does not repeat them here.
In some embodiments of the invention, processor 980 can be used for receiving the first resource request of access; Call the kernel processes first resource in the first core group, wherein, first resource belongs to the first resource group, and first resource is the resource of first resource request of access institute request access, the first core group comprises at least one kernel, has mapping relations between first resource group and the first core group.
The embodiment of the invention also provides a kind of computer-readable storage medium, and wherein, this computer-readable storage medium can have program stored therein, and this program comprises the part or all of step of the resource access method of putting down in writing among the said method embodiment when carrying out.
Need to prove, for aforesaid each embodiment of the method, for simple description, therefore it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the instructions all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, do not have the part that describes in detail among certain embodiment, can be referring to the associated description of other embodiment.
In several embodiment that the application provides, should be understood that disclosed device can be realized by another way.For example, device embodiment described above only is schematic, the for example division of described unit, only be that a kind of logic function is divided, during actual the realization other dividing mode can be arranged, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, the shown or coupling each other discussed or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically or other form.
Described unit as separating component explanation can or can not be physically to separate also, and the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select according to the actual needs wherein some or all of unit to realize the purpose of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing unit, also can be that the independent physics of unit exists, and also can be integrated in the unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, also can adopt the form of SFU software functional unit to realize.
If described integrated unit is realized with the form of SFU software functional unit and during as independently production marketing or use, can be stored in the computer read/write memory medium.Based on such understanding, part or all or part of of this technical scheme that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprises that some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) is carried out all or part of step of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: the various media that can be program code stored such as USB flash disk, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD.
The above, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (18)

1. a resource access method is characterized in that, comprising:
Receive the first resource request of access;
Call the kernel processes first resource in the first core group, wherein, described first resource belongs to the first resource group, described first resource is the resource of described first resource request of access institute request access, described the first core group comprises at least one kernel, wherein, have mapping relations between described first resource group and described the first core group.
2. method according to claim 1 is characterized in that, carries sign and first session identification of first resource in the described first resource request of access;
Before the described kernel processes first resource that calls in the first core group, described method also comprises: the first represented session of inquiry and described the first session identification has the core group of mapping relations, and wherein, the core group that inquires is the first core group.
3. method according to claim 1, it is characterized in that, the described kernel processes first resource that calls in the first core group, comprise: if carry the sign of first resource and the sign of first resource group in the described first resource request of access, and inquiring the core group that has mapping relations with the represented first resource group of the sign of described first resource group is the first core group, then calls the kernel processes first resource in described the first core group.
4. according to claim 1 to 3 each described methods, it is characterized in that,
Described method also comprises:
Receive the Secondary resource request of access, wherein, carry the sign of the first session identification and Secondary resource in the described Secondary resource request of access, the core group that the first represented session of inquiry and described the first session identification has mapping relations is the first core group, if the represented Secondary resource of the sign of described Secondary resource does not belong to described first resource group, then the Secondary resource group of inquiry and described Secondary resource ownership has the core group of mapping relations, if it is the second core group that described that inquire and Secondary resource group have the core group of mapping relations, call the described Secondary resource of kernel processes in described the second core group, wherein, described the second core group comprises at least one kernel.
5. method according to claim 4 is characterized in that,
Described method also comprises:
The first kernel is rejected from described the first core group, and/or, after the second kernel is rejected from described the second core group, described the second kernel is added among described the first core group.
6. method according to claim 5 is characterized in that, any one kernel in described the first core group does not all belong to the second core group.
7. according to claim 1 to 6 each described methods, it is characterized in that, described first resource group comprises the subregion of at least one table and/or at least one table.
8. according to claim 1 to 7 each described methods, it is characterized in that, type of service corresponding to all resources in the described first resource group is identical, and perhaps, all resources in the described first resource group are the resource that is associated in the same operation flow.
9. a computer equipment is characterized in that, comprising:
Receiving element is used for receiving the first resource request of access;
Call unit, be used for calling the kernel processes first resource of the first core group, wherein, described first resource belongs to the first resource group, described first resource is the resource of described first resource request of access institute request access, described the first core group comprises at least one kernel, has mapping relations between described first resource group and described the first core group.
10. computer equipment according to claim 9 is characterized in that,
Carry sign and first session identification of first resource in the described first resource request of access;
Wherein, described call unit specifically is used for, and the first represented session of inquiry and described the first session identification has the core group of mapping relations, and wherein, the core group that inquires is the first core group, calls the kernel processes first resource in described the first core group.
11. computer equipment according to claim 9 is characterized in that,
Described call unit specifically is used for, if carry the sign of first resource and the sign of first resource group in the described first resource request of access, and inquiring the core group that has mapping relations with the represented first resource group of the sign of described first resource group is the first core group, then calls the kernel processes first resource in described the first core group.
12. to 11 each described computer equipments, it is characterized in that according to claim 9,
Described receiving element also is used for, and receives the Secondary resource request of access, wherein, carries the sign of the first session identification and Secondary resource in the described Secondary resource request of access;
Described call unit also is used for, the core group that the first represented session of inquiry and described the first session identification has mapping relations is the first core group, if the represented Secondary resource of the sign of described Secondary resource does not belong to described first resource group, then the Secondary resource group of inquiry and described Secondary resource ownership has the core group of mapping relations, if it is the second core group that described that inquire and Secondary resource group have the core group of mapping relations, call the described Secondary resource of kernel processes in described the second core group, wherein, described the second core group comprises at least one kernel.
13. each described computer equipment is characterized in that according to claim 12,
Described computer equipment also comprises:
The inner core managing unit is used for the first kernel is rejected from described the first core group, and/or, after the second kernel is rejected from described the second core group, described the second kernel is added among described the first core group.
14. a computer equipment is characterized in that, comprising: network interface, bus and processor, described network interface be connected processor and connect by described bus, described processor comprises a plurality of kernels, and described a plurality of kernels are divided at least two core group, wherein:
Described network interface is used for receiving the first resource request of access;
Described processor, be used for calling the kernel processes first resource of the first core group, wherein, described first resource belongs to the first resource group, described first resource is the resource of described first resource request of access institute request access, described the first core group comprises at least one kernel in described a plurality of kernel, has mapping relations between described first resource group and described the first core group.
15. computer equipment according to claim 14 is characterized in that,
Carry sign and first session identification of first resource in the described first resource request of access;
Wherein, described preparation implement body is used for, and the first represented session of inquiry and described the first session identification has the core group of mapping relations, and wherein, the core group that inquires is the first core group, calls the kernel processes first resource in described the first core group.
16. computer equipment according to claim 14 is characterized in that,
Described preparation implement body is used for, if carry the sign of first resource and the sign of first resource group in the described first resource request of access, and inquiring the core group that has mapping relations with the represented first resource group of the sign of described first resource group is the first core group, then calls the kernel processes first resource in described the first core group.
17. to 16 each described computer equipments, it is characterized in that according to claim 14,
Described network interface also is used for, and receives the Secondary resource request of access, wherein, carries the sign of the first session identification and Secondary resource in the described Secondary resource request of access;
Wherein, described processor also is used for, the core group that the first represented session of inquiry and described the first session identification has mapping relations is the first core group, if the represented Secondary resource of the sign of described Secondary resource does not belong to described first resource group, then the Secondary resource group of inquiry and described Secondary resource ownership has the core group of mapping relations, if it is the second core group that described that inquire and Secondary resource group have the core group of mapping relations, call the described Secondary resource of kernel processes in described the second core group, wherein, described the second core group comprises at least one kernel.
18. each described computer equipment is characterized in that according to claim 17,
Described processor also is used for, the first kernel rejected from described the first core group, and/or, after the second kernel is rejected from described the second core group, described the second kernel is added among described the first core group.
CN201310269769.9A 2013-06-28 2013-06-28 A kind of resource access method and computer equipment Active CN103365658B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310269769.9A CN103365658B (en) 2013-06-28 2013-06-28 A kind of resource access method and computer equipment
PCT/CN2014/080923 WO2014206331A1 (en) 2013-06-28 2014-06-27 Resource access method and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310269769.9A CN103365658B (en) 2013-06-28 2013-06-28 A kind of resource access method and computer equipment

Publications (2)

Publication Number Publication Date
CN103365658A true CN103365658A (en) 2013-10-23
CN103365658B CN103365658B (en) 2016-09-07

Family

ID=49367093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310269769.9A Active CN103365658B (en) 2013-06-28 2013-06-28 A kind of resource access method and computer equipment

Country Status (2)

Country Link
CN (1) CN103365658B (en)
WO (1) WO2014206331A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182534A (en) * 2014-08-28 2014-12-03 无锡天脉聚源传媒科技有限公司 Data search method and device
WO2014206331A1 (en) * 2013-06-28 2014-12-31 华为技术有限公司 Resource access method and computer device
CN104714781A (en) * 2013-12-17 2015-06-17 中国移动通信集团公司 Multi-mode signal data processing method, device and terminal device
CN107846367A (en) * 2016-09-20 2018-03-27 华为技术有限公司 A kind of data transmission method and device
CN108319598A (en) * 2017-01-16 2018-07-24 腾讯科技(北京)有限公司 data cache method, device and system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608717B (en) * 2016-07-12 2021-02-12 迈普通信技术股份有限公司 User mode information collection method, device and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060230246A1 (en) * 2005-04-08 2006-10-12 Mather Clifford J Memory allocation technique using memory resource groups
CN101110043A (en) * 2007-09-04 2008-01-23 杭州华三通信技术有限公司 Resource management method of multiple nucleus system and its controlling nucleus
CN101131652A (en) * 2006-08-21 2008-02-27 英业达股份有限公司 Performing thread distribution method for multi-nucleus multi-central processing unit
CN101896886A (en) * 2007-10-31 2010-11-24 艾科立方公司 Uniform synchronization between multiple kernels running on single computer systems
CN101968746A (en) * 2010-09-02 2011-02-09 北京航空航天大学 Method for implementing organizational architecture mode of kernel-based virtual machine (KVM)
CN102831015A (en) * 2012-08-01 2012-12-19 华为技术有限公司 Method and equipment for scheduling multi-core processor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365658B (en) * 2013-06-28 2016-09-07 华为技术有限公司 A kind of resource access method and computer equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060230246A1 (en) * 2005-04-08 2006-10-12 Mather Clifford J Memory allocation technique using memory resource groups
CN101131652A (en) * 2006-08-21 2008-02-27 英业达股份有限公司 Performing thread distribution method for multi-nucleus multi-central processing unit
CN101110043A (en) * 2007-09-04 2008-01-23 杭州华三通信技术有限公司 Resource management method of multiple nucleus system and its controlling nucleus
CN101896886A (en) * 2007-10-31 2010-11-24 艾科立方公司 Uniform synchronization between multiple kernels running on single computer systems
CN101968746A (en) * 2010-09-02 2011-02-09 北京航空航天大学 Method for implementing organizational architecture mode of kernel-based virtual machine (KVM)
CN102831015A (en) * 2012-08-01 2012-12-19 华为技术有限公司 Method and equipment for scheduling multi-core processor

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014206331A1 (en) * 2013-06-28 2014-12-31 华为技术有限公司 Resource access method and computer device
CN104714781A (en) * 2013-12-17 2015-06-17 中国移动通信集团公司 Multi-mode signal data processing method, device and terminal device
CN104714781B (en) * 2013-12-17 2017-11-03 中国移动通信集团公司 A kind of multi-modal signal-data processing method, device and terminal device
CN104182534A (en) * 2014-08-28 2014-12-03 无锡天脉聚源传媒科技有限公司 Data search method and device
CN107846367A (en) * 2016-09-20 2018-03-27 华为技术有限公司 A kind of data transmission method and device
WO2018054271A1 (en) * 2016-09-20 2018-03-29 华为技术有限公司 Method and device for data transmission
US11023373B2 (en) 2016-09-20 2021-06-01 Huawei Technologies Co., Ltd. Data transmission method and apparatus using resources in a resource pool of a same NUMA mode
CN107846367B (en) * 2016-09-20 2021-09-21 华为技术有限公司 Data transmission method and device
CN114024962A (en) * 2016-09-20 2022-02-08 华为技术有限公司 Data transmission method and device
CN114024962B (en) * 2016-09-20 2023-04-18 华为技术有限公司 Data transmission method and device
US11734172B2 (en) 2016-09-20 2023-08-22 Huawei Technologies Co., Ltd. Data transmission method and apparatus using resources in a resource pool of a same NUMA node
CN108319598A (en) * 2017-01-16 2018-07-24 腾讯科技(北京)有限公司 data cache method, device and system

Also Published As

Publication number Publication date
CN103365658B (en) 2016-09-07
WO2014206331A1 (en) 2014-12-31

Similar Documents

Publication Publication Date Title
CN103458305B (en) Video broadcasting method, device, terminal unit server
CN104618217B (en) Share method, terminal, server and the system of resource
CN103365658A (en) Resource access method and computer equipment
CN104123120B (en) A kind of browser page data filtering method, device and system
CN104834529A (en) Method and device for optimizing performance of application
CN104618440A (en) Intelligent equipment control method and device
CN104518953A (en) Message deleting method, instant messaging terminal and system
CN103475914B (en) Video playing method, video playing device, terminal equipment and server
CN106708554B (en) Program operating method and device
CN104219617A (en) Service acquiring method and device
CN103546766A (en) Video processing method, related equipment and communication system
CN104142862A (en) Overload protection method and device for server
CN104992342A (en) Method for determining the effectiveness of popularizing information release, monitoring server, and terminal
CN104142868A (en) Connection establishment method and device
CN104460934A (en) Scheduling method and device for multi central processing units (CPU)
CN104426962A (en) Multi-terminal binding method, binding server, terminal and multi-terminal binding system
CN104065693A (en) Method, device and system for accessing network data in webpage applications
CN103870339A (en) Cluster resource allocation method and cluster resource allocation device
CN104301315A (en) Method and device for limiting information access
CN103346921A (en) User management method, relevant equipment and communication system
CN104123276A (en) Method, device and system for intercepting popup windows in browser
CN104133761A (en) Memory usage analysis method, device and system of mobile terminal
CN103945241A (en) Streaming data statistical method, system and related device
CN104424211A (en) Microblog-based service data release method, device and system
CN103312907A (en) Voice channel distribution management method, related device and communication system

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220215

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.