• No results found

Resource-Efficiency Testing. Introduction to Resource Efficiency Testing

N/A
N/A
Protected

Academic year: 2021

Share "Resource-Efficiency Testing. Introduction to Resource Efficiency Testing"

Copied!
16
0
0

Loading.... (view fulltext now)

Full text

(1)

Resource-Efficiency Testing

Introduction to Resource‐

Efficiency Testing

(2)

Introduction

Metrics Acquisition - Windows Performance Monitor

OPC Server test plan model

OPC Client test plan model

Network Failure Simulation Batch File

Test Reports

Resource-Efficiency Testing

Contents

(3)

Resource-Efficiency Testing

Introduction

(1 of 3)

What is it?

36-hour stress-test to verify no resource leaks exist

in your product, e.g. CPU, memory, threads etc.

More info?

Windows Performance Monitor is used in the lab; the

performance counter details are available online:

www.opcfoundation.org/ua/ctt/help/testcases/server/all/testcases.html#Efficiency technet.microsoft.com/en-us/library/cc768048.aspx

What is tested?

UA Servers/Clients, OPC Classic Servers/Clients

Easy to test?

Yes, but several other OPC products are required to

generate a load on the product being tested.

(4)

Resource-Efficiency Testing

Introduction

(2 of 3)

How it works:

UA and Classic products are tested the same way:

Servers

:

- multiple device (PLC) connections; 1 is intermittent

- 5 or more OPC Client connections, 1 is intermittent

Clients

:

- 5 or more OPC Server connections, 1 is intermittent

Load is placed on the product for stress-testing.

Resources are measured over 36-hours.

(5)

Resource-Efficiency Testing

Introduction

(3 of 3)

How do I pass?

No resource leaks or performance degradation.

Am I Certified?

No. It means that your product is a good candidate

for certification testing in a Test Lab.

Lab tools used?

Windows Performance Monitor, network fault

simulation BAT file, also:

Servers

: 2 or more PLCs; 5 or more OPC Clients.

Clients

: 5 or more OPC Servers.

Test when?

As frequently as possible, and on any official build

whether it is alpha, beta, or release etc.

(6)

Resource-Efficiency Testing

Windows Performance Monitor

(1 of 6)

Configure

 

the

 

Windows

 

Performance

 

monitor

 

to

 

record

 

the

 

performance

 

counters

 

for

 

36

hour

 

duration

Click

 

Start,

 click

 

in

 

the

 

Search

 

box,

 

type

 

perfmon.msc

,

 

and

 

then

 

press

 

ENTER

.

Perfmon.msc

(7)

Resource-Efficiency Testing

Windows Performance Monitor

(2 of 6)

7

Create

 

a

 

Data

 

Collector

 

Set

 

to

 

store

 

the

 

data

 

values

 

recorded

 

for

 

the

 

36

hour

 

test.

Specify the directory 

you want to store the 

file

Create a new Data 

collector set to 

record the data

Click finish to create 

the Data collector 

(8)

Resource-Efficiency Testing

Windows Performance Monitor

(4 of 6)

Configure

 

the

 

Process

,

 

Processor,

 

Threads,

 

Handles,

and

 

other

 

counters

 

for

 

the

 

instances

 

of

 

your

 

product:

  

Step 4: Choose the 

performance counters 

from the list

Step 1: Double 

click “Performance 

Counter ” to select 

the counters

Step 2: Click “Add” 

to specify the 

resources to 

monitor

Step 5: Select the log 

format. Test lab uses 

comma separated 

format to record the 

values for the counters 

(9)

Resource-Efficiency Testing

Windows Performance Monitor

(5 of 6)

9

Setup

 

a

 

36

hour

 

stop

 

condition

 

in

 

the

 

Data

 

Collector

 

Set

 

properties

 

to

 

stop

 

recording:

Setup the 

duration to 36 

hours 

Click OK to apply the 

(10)

Resource-Efficiency Testing

Windows Performance Monitor

(6 of 6)

Setup

 

the

 

stop

 

condition

 

in

 

the

 

Data

 

Collector

 

Set

 properties

 

to

 

stop

 

recording

 

the

 

data

 

values

 

after

 

36

 

hours.

Measurements

 

can

 

be

 

displayed

 

in

 

a

 

chart,

 

as

 

well

 

as

 

being

 

logged

 

to

 

a

 

file

 

(as

 

previously

 

configured).

Click

 

the

 

Triangle

 

icon

 

to

 

start

 

(11)

Resource-Efficiency Testing

Test Plan Model – Server

(1 of 2)

11

Device

 

1

(e.g.

 

PLC)

Device

 

2

(e.g.

 

PLC)

Remote

 

PC1

Classic/UA Client 

with max no of Tags 

Supported

An

 

OPC

 

Server

 

is

 

configured

 

with

 

2

 

devices

 

(PLCs)

Typically,

 

5

 

Clients

 

are

 

connected,

 

with

 

approx.

 

1000+

 

items

 

each

Make

 

1

 

Device

 

and

 

1

 

Client

 

go

 

online/offline

 

every

 

2

minutes

Remote

 

PC2

Classic/UA Client 

with max no of Tags 

Supported

Remote

 

PC3

Classic/UA Client 

with max no of Tags 

Supported

Remote

 

PC4

Classic/UA Client 

with max no of Tags 

Supported

Remote

 

PC5

Classic/UA Client 

with max no of Tags 

Supported

Local Client 

(if available)

UA/Classic

 

Server

 

(12)

Resource-Efficiency Testing

Test Plan Model – Server

(1 of 2)

Remote

 

PC1

Classic/UA Server 

with max no of Tags 

Supported

An

 

OPC

 

Client

 

is

 

connected

 

to

 

5

 

or

 

more

 

OPC

 

Servers,

 

each

 

approx.

 

1000+

 

items

Make

 

1

 

Server

 

go

 

online/offline

 

every

 

2

minutes

Remote

 

PC2

Classic/UA Server 

with max no of Tags 

Supported

Remote

 

PC3

Classic/UA Server 

with max no of Tags 

Supported

Remote

 

PC4

Classic/UA Server 

with max no of Tags 

Supported

Remote

 

PC5

Classic/UA Server 

with max no of Tags 

Supported

Local Server 

(if available)

UA/Classic

 

Client

(13)

@echo off

SETDTIME=120

CLS

ECHO Delay time is: %DTIME%

ECHO Network Connection Enabler/Disabler started at: %date% %time%

:start

ECHO Disabling network adapter at %time%

netshinterface set interface "Local Area Connection" DISABLED

timeout/t %DTIME%

ECHO Enabling network adapter at %date% %time%

netshinterface set interface "Local Area Connection" ENABLED

choice/c:yn /m "Repeat network adapter recycle (y/n)?" /t %DTIME% /d y

ECHO %ERRORLEVEL%

IF ERRORLEVEL 2 GOTO end

IF ERRORLEVEL 1 GOTO start :end

ECHO.

ECHO Network adapter recycle complete at %date% %time%

@echo off

SETDTIME=120

CLS

ECHO Delay time is: %DTIME%

ECHO Network Connection Enabler/Disabler started at: %date% %time%

:start

ECHO Disabling network adapter at %time%

netshinterface set interface "Local Area Connection" DISABLED

timeout/t %DTIME%

ECHO Enabling network adapter at %date% %time%

netshinterface set interface "Local Area Connection" ENABLED

choice/c:yn /m "Repeat network adapter recycle (y/n)?" /t %DTIME% /d y

ECHO %ERRORLEVEL%

IF ERRORLEVEL 2 GOTO end

IF ERRORLEVEL 1 GOTO start :end

ECHO.

ECHO Network adapter recycle complete at %date% %time%

Resource-Efficiency Testing

Batch File

13

To

 

toggle

 

the

 

enabled

 

state

 

of

 

the

 

“Local

 

Area

 

Connection”

 

network

 

adapter

 

in

 

a

 

windows

 

environment

 

use

 

the

 

below

 

batch

 

file.

Replicate

 

the

 

following

 

text

 

into

 

file

 

“NIC.BAT”

 

and

 

run

 

it

 

using

 

Administrator/elevated

 

permission.

(14)

Resource-Efficiency Testing

Reports

In

 

Certification

 

testing,

 

the

 

Test

 

Lab

 

will

 

generate

 

a

 

resource

 

Data

 

report

 

that

 

is

 

generated

 

from

 

the

 

data

 

collected

 

by

 

the

 

Windows

 

Performance

 

Monitor:

  

(15)

Resource-Efficiency Testing

Next Steps…

If no growth is detected in your Classic/UA product then you

are ready for Lab Certification:

• Request Certification in the Test Lab:

(16)

Certification

:

www.opcfoundation.org/certification

Lab Testing

:

www.opcfoundation.org/

certification/schedule-testing

Bug Tracker

:

www.opcfoundation.org/mantis

Contact

:

[email protected]

Resource-Efficiency Testing

The End!

References

Related documents

“Testimony made it clear that due to the current and worsening shortage of public health nurses, during a time of significant medical emergency, Georgia will not be able to perform

To do this, we produce various scatter plots, showing a smoothed least squares line for the analysis period, which allows observing the pattern of behavior of the data

collaborative relationship among Eastern Michigan University (EMU), Michigan Sea Grant (http:// www.miseagrant.umich.edu), the National Oceanic and Atmospheric Administration’s

In 2010, San Juan Island community leaders finalized the purchase agreement on a 22-acre parcel of land for the new PeaceHealth Peace Island Medical Center, a critical access

liquid detergent with biological stainbuster for the cleaning of sensitive textiles, nil phosphate.

Instrumentalists tend to grip too hard with their hands. 5 Playing with relaxed muscles improves your power and range of motion as well as endurance, speed, and control. Breaks

The ongoing tariff war among the domestic telecom operators is likely to intensify further with the industry major, Reliance Communications (RCom) reviewing its options to launch

That leaves ministry staff to carry out the policy role, which means that some proponent- driven processes which the industry currently claims to struggle with could become the