Distributed reference counting system and method applied to multi-kernel system

A reference counting and multi-core system technology, applied in the fields of electrical digital data processing, calculation, computer, etc., can solve problems affecting system performance, CPU core jitter, complexity, etc., to reduce access frequency, high-efficiency reference, and avoid concurrent operations Effect

Active Publication Date: 2014-07-23
易有乐网络科技(北京)有限公司
View PDF2 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

A simple method is to define the counter as an atomic variable, and use the corresponding atomic addition and subtraction operations. However, the atomic counter uses a complex lock operation, requiring the current CPU to exclusively access the cache of the variable.
A frequently modified atomic counter may cause excessive jitter in the CPU core cache, seriously affecting system performance
[0003] The present invention overcomes the bottleneck of the reference counting mechanism of the traditional operating system, thereby solving the excessive "jitter" caused by the use of coarse-grained locks in the traditional operating system to protect the shared references in the kernel object, which seriously affects system performance issues

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
  • Distributed reference counting system and method applied to multi-kernel system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0025] The present invention designs a distributed reference counting system applied to a multi-core system, including at least two system kernels, a memory storage module, a task manager, and a system global reference counting module; it also includes several local resource reference modules, and a local resource reference module The number of system kernels is consistent with the number of system kernels; each system kernel communicates with each local resource reference module in a one-to-one correspondence; at the same time, each system kernel communicates with the memory storage module, task manager, and system global reference counting module respectively. On the basis of the existing technology, several local resource reference modules corresponding to each system kernel are introduced, which effectively reduces th...

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 distributed reference count system applied to a multi-kernel system. The distributed reference count system comprises at least two system kernels, an internal storage module, a task manager and a system global reference count module. The distributed reference count system further comprises a plurality of local resource reference modules which correspond to the system kernels one to one. According to the technical scheme designed on the basis of the distributed reference count system, the bottleneck of a traditional operation system reference resource mechanism is overcome, correspondingly, the invention further provides a count method based on the distributed reference count system, the access frequency that the system kernels have access to the global reference count module, the phenomenon that the excessive jitter occurs due to the fact that a certain system kernel monopolizes the system global reference count module is avoided effectively, the service capability of the operation system is improved effectively, and extendibility of the system is improved.

Description

technical field [0001] The invention relates to a distributed reference counting system and a counting method applied to a multi-core system. Background technique [0002] In order to manage various resources, modern operating systems (such as Linux) generally use a reference counting strategy to manage resources, and the reference counting of existing resources is a shared counter. The counters in the kernel can be used for network statistics, recording the usage of various resources, and so on. If multiple processors try to update the same counter, serious race conditions can result. Therefore, traditional operating systems typically use coarse-grained locks to protect shared reference counts in kernel objects. When a process acquires a reference to an object, it first applies for a lock. After the application is successful, the operation counter is incremented by 1, and finally unlocked; Zero, if zero, indicates that no process references the corresponding object, and ...

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): G06F15/177
Inventor 侯荣涛荣欢王琴
Owner 易有乐网络科技(北京)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products