Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and apparatus for global statistics in multi-core system

A multi-core system, global technology, applied in the multi-core field, can solve problems such as large time overhead and increase time consumption, and achieve the effect of reducing time overhead, avoiding frequent access, and improving global statistical speed.

Active Publication Date: 2007-05-23
NEW H3C TECH CO LTD
View PDF0 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since each core may update the value of the statistical variable in turn, each core will always obtain the statistical variable from the L2 cache, the time overhead is relatively large, and the time spent on statistics is also greatly increased.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and apparatus for global statistics in multi-core system
  • Method and apparatus for global statistics in multi-core system
  • Method and apparatus for global statistics in multi-core system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040]The core idea of ​​the present invention is: before counting certain types of information, assign a sub-statistical variable of this type of statistical information for each core, and allocate non-overlapping cacheline spaces for the sub-statistical variables of each core, and each core is responsible for The sub-statistical variable assigned to itself is updated. When the statistical result of this type of statistical information needs to be displayed, the value of the sub-statistical variable assigned to each core is obtained from the secondary cache or memory, and the values ​​​​of each sub-statistical variable are added. , and the statistical results can be obtained.

[0041] It should be pointed out that the cacheline space mentioned in the present invention refers to the cache space with a cacheline length as the minimum unit, for example: if a cacheline length is 32 bytes, then the size of the cacheline space mentioned in the present invention is : n*32 bytes; the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method for processing globe statistic in multi-core system, wherein said method comprises that: each corn is distributed with sub statistic variable relative to each statistic information class; setting the cacheline spaces of sub statistic variables in same class not layered; therefore, each corn can accesses second buffer or memory to obtain itself and its class sub statistic variables when first refreshing the statistic information; then when refreshing the statistic information later, it can directly relative sub statistic variable in the first buffer. The invention also discloses a relative device, which comprises controller, the corns of multi-corn system, and the unit for keeping cache constant. The invention can avoid frequently accessing second buffer and memory, to reduce time consumption and improve statistic speed.

Description

technical field [0001] The invention relates to the field of multi-core technology, in particular to a method and device for performing global statistics in a multi-core system. Background technique [0002] In a multi-core system, for certain needs, it is usually necessary to perform global statistics on certain information, that is: all cores perform statistics on certain types of information. For example: in the process of packet forwarding processing, because the network management needs to obtain the statistical information of packet processing to display to the user, and at the same time, the statistical information can also be used as auxiliary information for debugging information to locate some abnormal problems. Therefore, whether it is a branch of normal processing For the branch of exception handling, it is necessary to record the statistical information of packet processing, including: the number of forwarded and received packets, the number of forwarded and sen...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/56H04L12/24G06F17/30G06F15/163H04L29/08
Inventor 孟丹常向青赵鲲鹏龚一斌
Owner NEW H3C TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products