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

Block chain performance detection method and system based on pre-compiled contract

A detection method and pre-compiled technology, applied in the field of blockchain, can solve problems such as not wanting to install system modules, unable to monitor blockchain groups, and unable to form effective monitoring of node system performance, so as to achieve the effect of convenient deployment, operation and maintenance

Pending Publication Date: 2021-06-04
SHAN DONG MSUN HEALTH TECH GRP CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The inventors found that many organizations have the requirement to join the node group, but they do not want to install other system modules except the node. Therefore, it is impossible to effectively monitor the system performance of the node, and the performance problem of a single node is bound to affect the area. The overall node speed of the block chain cannot monitor the entire block chain group

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
  • Block chain performance detection method and system based on pre-compiled contract
  • Block chain performance detection method and system based on pre-compiled contract

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] Such as figure 1 with figure 2 As shown, the present disclosure provides a block chain performance detection method based on the precompiled contract, including the following steps:

[0032] S1: Write a C ++ pre-compilation contract, get the entire machine CPU, memory, disk, network transmission, etc.

[0033] S1.1: CPU usage calculation:

[0034] (a): Sampling from / Proc / Stat Sample two sufficiently short intervals of CPU snapshots, respectively 1 , T 2 Where t 1 T 2 The structure is: (User, Nice, System, Idle, Iowait, IRQ, Softirq, Stealstolen, Guest);

[0035] (b): Calculate the total CPU time TOTALCPUTIME

[0036] Seek all the first CPU usage, get S 1 , Seek all the use of all CPUs for the second time, get S 2 , S 2 -S 1 Get all time films within this time interval, ie Total CPUTime = S 2 -S 1 ;

[0037] (c) Calculate idle time IDLE, such as IDLE corresponding to the data of the nth column, using the second Numn N columns:

[0038] IDLE = Second Number N Column - The...

Embodiment 2

[0053] The present disclosure provides a block chain performance detection system based on the precompiled contract, including:

[0054] The data acquisition module is configured to obtain the process PID data of the current node;

[0055]The data processing module is configured to: obtain the CPU, memory, disk, and network transfer data of the current node thread, to obtain the monitoring data of the current node under the current process by using the precompiled contract contract within the node.

[0056] The block chain performance detection module is configured to: through each node consensus, each node saves all node performance data, gathering the monitoring data of each node, resulting in the final block chain performance test results.

[0057] The working method of the system is the same as the block chain performance detection method based on the precompiled contract provided by Example 1, and details are not described herein again.

Embodiment 3

[0059] The present disclosure Embodiment 3 provides a computer readable storage medium, which stores a program, which is performed when executed by the processor, implemented in the precompiled contract chain performance detection method according to Embodiment 1 of the present disclosure. The steps are:

[0060] Get the process PID data of the current node;

[0061] According to the acquired process PID data, use the precompiled contract within the node to obtain the CPU, memory, disk, and network transfer data of the current node thread, and get the monitoring data of the current node under the current process;

[0062] Through each node consensus, each node saves all node performance data to gather monitoring data for each node to obtain the final block chain performance test results.

[0063] The detailed steps are the same as the block chain performance detection method based on the precompiled contract based on the first embodiment, and details are not described herein.

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 provides a block chain performance detection method and system based on a pre-compiled contract. The method comprises the steps of obtaining process PID data of a current node; obtaining CPU, memory, disk and network transmission data of a current node thread by using a pre-compilation contract in the node according to the obtained process PID data, and obtaining monitoring data of the current node under the current process; through consensus of all nodes, each node stores all node performance data, monitoring data of each node is gathered, and a final block chain performance detection result is obtained; according to the method, the natural property of the block chain intelligent contract is utilized, an additional monitoring system does not need to be installed, the capability of monitoring all nodes at the same time is achieved, and great convenience is brought to later deployment, operation and maintenance; meanwhile, fine-grained system operation is supported, limitation of EVM is avoided, and infinite extension can be achieved.

Description

Technical field [0001] The present disclosure relates to the field of block chains, and in particular, to a block chain performance detection method and system based on the precompiled contract. Background technique [0002] The statement of this section is merely the background technology related to the present disclosure, and it is not necessarily constituting the prior art. [0003] The landing application of block chain technology is increasing in various industries, and there are also many open source blocking strains. However, the monitoring requirements based on the block chain are generally developed a separate system to read the CPU usage, network traffic, disk real-time transmission rate, etc. of the local physical server. [0004] The inventors have found that many institutions have the need to join the node group, but do not want to install other system modules other than nodes, so the system performance of nodes cannot form effective monitoring, and single-node perfo...

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): G06F11/30G06F8/41
CPCG06F11/3006G06F8/41
Inventor 陈冲高希余吴军赵华桥
Owner SHAN DONG MSUN HEALTH TECH GRP 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