Skip to content

Siemens S7 Driver Performance Testing

Test Purpose

In the scenario where Siemens S7 driver connects to devices for large-scale data collection and device control, verify the resource usage of NeuronEX, and continuously monitor: CPU, memory, network IO, and device control delay.

Test Architecture

alt text

Test Environment and Testing Tools

  • Snap7 is an open-source, cross-platform communication library designed for interfacing with Siemens S7 series PLCs (Programmable Logic Controllers). It enables users to exchange data with S7-200, S7-300, S7-400, S7-1200, and S7-1500 models of PLCs over Ethernet. Snap7 offers a simple yet powerful interface, making it easy for developers to read from and write to PLC data blocks, memory, and flags.

  • Hardware resources of the Linux machine deployed with NeuronEX:

NeuronEX VersionOperating SystemCPUMemoryCPU Model
NeuronEX 3.2.1Debian GNU/Linux 124 cores30GiIntel(R) Xeon(R) Platinum 8269CY CPU T 3.10GHz
  • Monitoring the usage of CPU, memory, network IO, and other resources of NeuronEX software on the Linux machine through Prometheus.

Test Scenarios

Data Collection Scenarios

  • Scenario 1

NeuronEX is configured with 1 Siemens S7 driver, which includes 10 collection groups, each group collecting 1,000 Float type data points per second, totaling 10,000 data points.

  • Scenario 2

NeuronEX is configured with 5 Siemens S7 drivers, each driver including 10 collection groups, each group collecting 1,000 Float type data points per second, totaling 50,000 data points.

  • Scenario 3

NeuronEX is configured with 10 Siemens S7 drivers, each driver including 10 collection groups, each group collecting 1,000 Float type data points per second, totaling 100,000 data points.

  • Scenario 4

NeuronEX is configured with 1 Siemens S7 driver, each driver including 1 collection group, each group collecting 1,000 Float type data points every 100 milliseconds, totaling 1,000 data points.

  • Scenario 5

NeuronEX is configured with 5 Siemens S7 drivers, each driver including 1 collection group, each group collecting 1,000 Float type data points every 100 milliseconds, totaling 5,000 data points.

  • Scenario 6

NeuronEX is configured with 10 Siemens S7 drivers, each driver including 1 collection group, each group collecting 1,000 Float type data points every 100 milliseconds, totaling 10,000 data points.

Device Control Scenarios

  • Scenario 7

In NeuronEX configured with 10 Siemens S7 drivers, each driver including 10 collection groups, each group collecting 1,000 Float type data points per second, totaling 100,000 data points, dispatch 100 data points.

Overview of Results

Data Collection Performance Test

ScenarioNumber of DriversNumber of Groups per DriverNumber of Points per GroupCollection IntervalTotal PointsPoint TypeMemory UsageCPU UsageNetwork IO
Scenario 111010001 second10,000Float175MB6%receive: 15kb/s transmit: 6kb/s
Scenario 251010001 second50,000Float355MB25%receive: 78kb/s transmit: 31kb/s
Scenario 3101010001 second100,000Float512MB57%receive: 155kb/s transmit: 62kb/s
Scenario 4111000100 ms1,000Float143MB3%receive: 15kb/s transmit: 6kb/s
Scenario 5511000100 ms5,000Float167MB16%receive: 78kb/s transmit: 31kb/s
Scenario 61011000100 ms10,000Float199MB37%receive: 156kb/s transmit: 63kb/s

Device Control Latency Test

ScenarioDispatch MethodNumber of Points DispatchedTest CountMinimum Response TimeMaximum Response TimeAverage Response Time
Configured 10 Siemens S7 drivers in NeuronEX, each driver containing 10 collection groups, each group collecting 1,000 Float type data points per second, totaling 100,000 data points under normal collection conditions.API Dispatch100100 times15ms47ms30ms

TIP

This test used simulator devices, and the data point addresses were all continuous segments, so the system resource usage when NeuronEX collects data from real devices will be higher than the results of this test.

If using NeuronEX data processing functions for data cleaning and filtering, edge computing, and algorithm integration, additional CPU and memory will be consumed.

Detailed Test Results

Scenario 1

NeuronEX is configured with 1 Siemens S7 driver, which includes 10 collection groups, each group collecting 1,000 Float type data points per second, totaling 10,000 data points.

  • Memory Usage :175MB

alt text

  • CPU Usage :6%

alt text

  • Network IO : receive:15KB/s; transmit:6KB/s

alt textalt text

Scenario 2

NeuronEX is configured with 5 Siemens S7 drivers, each driver including 10 collection groups, each group collecting 1,000 Float type data points per second, totaling 50,000 data points.

  • Memory Usage :355MB

alt text

  • CPU Usage :25%

alt text

  • Network IO : receive:78KB/s; transmit:31KB/s

alt textalt text

Scenario 3

NeuronEX is configured with 10 Siemens S7 drivers, each driver including 10 collection groups, each group collecting 1,000 Float type data points per second, totaling 100,000 data points.

  • Memory Usage :512MB

alt text

  • CPU Usage :57%

alt text

  • Network IO : receive:155KB/s; transmit:62KB/s

alt textalt text

Scenario 4

NeuronEX is configured with 1 Siemens S7 driver, each driver including 1 collection group, each group collecting 1,000 Float type data points every 100 milliseconds, totaling 1,000 data points.

  • Memory Usage :143MB

alt text

  • CPU Usage :3%

alt text

  • Network IO : receive:15KB/s; transmit:6KB/s

alt textalt text

Scenario 5

NeuronEX is configured with 5 Siemens S7 drivers, each driver including 1 collection group, each group collecting 1,000 Float type data points every 100 milliseconds, totaling 5,000 data points.

  • Memory Usage :167MB

alt text

  • CPU Usage :16%

alt text

  • Network IO : receive:78KB/s; transmit:31KB/s

alt textalt text

Scenario 6

NeuronEX is configured with 10 Siemens S7 drivers, each driver including 1 collection group, each group collecting 1,000 Float type data points every 100 milliseconds, totaling 10,000 data points.

  • Memory Usage :199MB

alt text

  • CPU Usage :37%

alt text

  • Network IO : receive:156KB/s; transmit:63KB/s

alt textalt text