59
Outline Simulator for Performance Evaluation of Distributed Software Systems Bhavesh A. Kotak 03305052 Guide: Prof. Varsha Apte Dept. of Computer Science IIT Bombay 25th February 2005 Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Outline

Simulator for Performance Evaluation of

Distributed Software Systems

Bhavesh A. Kotak 03305052Guide: Prof. Varsha Apte

Dept. of Computer ScienceIIT Bombay

25th February 2005

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 2: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Outline

Outline

1 Introduction and MotivationIntroductionMotivation for Performance Analysis tool

2 Approach to tool buildingStage IStage II

3 Simulator ImplementedSimulator FeaturesSimulator’s Output

4 Design ExampleOverviewMessage Flow Diagrams

5 Issues or limitations in current implementation6 Future Work and Conclusion

Future WorkConclusion

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 3: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Outline

Outline

1 Introduction and MotivationIntroductionMotivation for Performance Analysis tool

2 Approach to tool buildingStage IStage II

3 Simulator ImplementedSimulator FeaturesSimulator’s Output

4 Design ExampleOverviewMessage Flow Diagrams

5 Issues or limitations in current implementation6 Future Work and Conclusion

Future WorkConclusion

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 4: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Outline

Outline

1 Introduction and MotivationIntroductionMotivation for Performance Analysis tool

2 Approach to tool buildingStage IStage II

3 Simulator ImplementedSimulator FeaturesSimulator’s Output

4 Design ExampleOverviewMessage Flow Diagrams

5 Issues or limitations in current implementation6 Future Work and Conclusion

Future WorkConclusion

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 5: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Outline

Outline

1 Introduction and MotivationIntroductionMotivation for Performance Analysis tool

2 Approach to tool buildingStage IStage II

3 Simulator ImplementedSimulator FeaturesSimulator’s Output

4 Design ExampleOverviewMessage Flow Diagrams

5 Issues or limitations in current implementation6 Future Work and Conclusion

Future WorkConclusion

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 6: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Outline

Outline

1 Introduction and MotivationIntroductionMotivation for Performance Analysis tool

2 Approach to tool buildingStage IStage II

3 Simulator ImplementedSimulator FeaturesSimulator’s Output

4 Design ExampleOverviewMessage Flow Diagrams

5 Issues or limitations in current implementation6 Future Work and Conclusion

Future WorkConclusion

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 7: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Outline

Outline

1 Introduction and MotivationIntroductionMotivation for Performance Analysis tool

2 Approach to tool buildingStage IStage II

3 Simulator ImplementedSimulator FeaturesSimulator’s Output

4 Design ExampleOverviewMessage Flow Diagrams

5 Issues or limitations in current implementation6 Future Work and Conclusion

Future WorkConclusion

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 8: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

IntroductionMotivation

Introduction

Title

“To develop a tool for performance analysis of distributed softwaresystems.”

A distributed software system design will be evaluated to check forits performance capabilities. This would be done before deployingthe system. The tool’s output would help to predict theperformance that can be achieved by the system, thus rendering iteither fit or unfit for deployment...

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 9: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

IntroductionMotivation

Motivation

Designer’s questions that motivated the simulator

What external arrival rate can my system support?

What is the bottleneck resource?

Should one more physical server be introduced?

Should the software server be moved to another physicalserver?

Will a couple of more CPUs or Disks do the trick?

A performance analysis tool is needed that can easily capture such‘what-if’ questions and provide relevant performance measures

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 10: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Stage IStage II

Stage I work done

Literature Survey

‘Software Architecture (SA)’ specification mechanisms viz.Message Sequence Charts (MSC), Use Cases, Use CaseMaps (UCM)

‘Performance Models (PM)’ viz. Markov Chains, Petri Nets,Queuing Networks and their variants

Conversion mechanism from SAs to PMs

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 11: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Stage IStage II

Focus of Stage II work

Implementation of a simulation tool

Why?

A simple analytical model already implemented here a

The model is being extended to cover more design featuresResults of the extended analytical model need verification

Simulator can help to verify the extended analytical solver

Can be used independently as a performance evaluator

a at Networks Group - CSE, IIT Bombay by Ms. Rukma P. Verlekar

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 12: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Simulator FeaturesSimulator’s Output

Simulator Features

Model

SA description: Similar to Message Sequence Charts

Performance Model: Layered Queuing Network

Design features evaluated

Open queuing network

Multiple callflows

Deterministic/Probabilistic sequence

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 13: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Simulator FeaturesSimulator’s Output

Simulator Features

Model

SA description: Similar to Message Sequence Charts

Performance Model: Layered Queuing Network

Design features evaluated

Open queuing network

Multiple callflows

Deterministic/Probabilistic sequence

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 14: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Simulator FeaturesSimulator’s Output

Simulator Features...

Design features evaluated...

Asynchronous calls, Synchronous calls

Software servers modeled as queuing entities

Multiple s/w servers with multiple s/w services

Software servers mapped to Physical servers

Multiple physical servers with multiple resources

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 15: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Simulator FeaturesSimulator’s Output

Simulator Features...

Design features evaluated...

Physical resources also modeled as queuing entities

Finite/Infinite queue capacity support on each queuing entity

Finite/Infinite number of threads on each s/w server

Various scheduling policies supported at the resourcesviz. FCFS, Round Robin, Priority-Based and SJF

Network channel delay and Mean Transfer Unit restrictionsare captured

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 16: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Simulator FeaturesSimulator’s Output

Simulator’s Output

Response Times for

1 CallFlows

2 Software servers

3 Software services

4 Physical servers

5 Physical resources

6 Individual software queues on physical servers

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 17: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Simulator FeaturesSimulator’s Output

Simulator’s Output...

Waiting Times for

1 Software servers

2 Physical servers

3 Physical resources

4 Individual software queues on physical servers

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 18: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Simulator FeaturesSimulator’s Output

Simulator’s Output...

Average Queue Lengths for

1 Software servers

2 Physical servers

3 Physical resources

4 Individual software queues on physical servers

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 19: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Simulator FeaturesSimulator’s Output

Simulator’s Output...

Throughputs of

1 Software servers

2 Physical servers

3 Physical resources

4 Individual software queues on physical servers

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 20: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Simulator FeaturesSimulator’s Output

Simulator’s Output...

Utilizations of

1 Software servers

2 Physical servers

3 Physical resources

4 Individual software queues on physical servers

Helps to identify the bottleneck

Effect of different arrival rates on a given software system

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 21: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Web-based E-mail System

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 22: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Designer’s questions

What arrival rate can my system support?

What throughput will be achieved?

What will be the utilization of my physical servers?

What is the bottleneck resource, if any?

To answer these, we need to know the message flow of eachtransaction,their arrival rates, deployment of software and physical servers,resources used,service rates of these resources, and other things...

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 23: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Login Message Flow Diagram

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 24: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Read Message Flow Diagram

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 25: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Send Message Flow Diagram

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 26: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

List Message Flow Diagram

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 27: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Delete Message Flow Diagram

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 28: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Deployment and Configuration Scheme I

Physical Servers

Name Quantity CPU Disk

SUN 2 2 1HP 1 2 2

Software Servers

Name Threads Services

WEB1 4 send to auth, send to imapsend to smtp, change to html

AUTH1 2 verify passwd, verify sessionIMAP1 2 read messg, list messg, delete messgSMTP1 2 send messg

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 29: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Deployment and Configuration Scheme I

Physical Servers

Name Quantity CPU Disk

SUN 2 2 1HP 1 2 2

Software Servers

Name Threads Services

WEB1 4 send to auth, send to imapsend to smtp, change to html

AUTH1 2 verify passwd, verify sessionIMAP1 2 read messg, list messg, delete messgSMTP1 2 send messg

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 30: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Deployment and Configuration Scheme I

Mean Service Times

WEB1 {0.001, 0.007}, {0.00098, 0.007},{0.002, 0.008}, {0.001, 0.008}

AUTH1 {0.0072, 0.006}, {0.001, 0.008}IMAP1 {0.007, 0.003}, {0.0002, 0.007}, {0.004, 0.006}SMTP1 {0.001, 0.007}

Allocation table

SUN 1 SUN 2 HP 1

WEB 1 0 1

AUTH 0 1 1

IMAP 1 1 0

SMTP 0 0 1

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 31: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Deployment and Configuration Scheme I

Mean Service Times

WEB1 {0.001, 0.007}, {0.00098, 0.007},{0.002, 0.008}, {0.001, 0.008}

AUTH1 {0.0072, 0.006}, {0.001, 0.008}IMAP1 {0.007, 0.003}, {0.0002, 0.007}, {0.004, 0.006}SMTP1 {0.001, 0.007}

Allocation table

SUN 1 SUN 2 HP 1

WEB 1 0 1

AUTH 0 1 1

IMAP 1 1 0

SMTP 0 0 1

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 32: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Deployment and Configuration Scheme I

Input File Format

RESOURCES CPU,DISK;

PHYSICAL2 SUN 2,1;1 HP 2,2;

SOFTWAREWEB1 4 send to auth, send to imap, send to smtp,change to html;AUTH1 2 verify passwd, verify session;IMAP1 2 read messg, list messg, delete messg;SMTP1 2 send messg;

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 33: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Deployment and Configuration Scheme I

Input File Format

MAPPINGSWEB1 SUN 1, HP 1;AUTH1 SUN 2, HP 1;IMAP1 SUN 1, SUN 2;SMTP1 HP 1;

TIMESWEB1 {0.001,0.007} {0.00098,0.007} {0.002,0.008} {0.001,0.008};AUTH1 {0.0072,0.006} {0.001,0.008};IMAP1 {0.007,0.003} {0.0002,0.007} {0.004,0.006};SMTP1 {0.001,0.007};

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 34: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Result

0

50

100

150

200

250

10 20 30 40 50 60 70 80

Thro

ughput (r

equests

per

second)

Arrival Rate (requests per second)

Throughput of Software Servers

ID 0ID 1ID 2ID 3

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 35: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Result

0

100

200

300

400

500

600

700

800

10 20 30 40 50 60 70 80

Avera

ge q

ueue length

(re

quests

per

second)

Arrival Rate (requests per second)

Average Queue length on Software Servers

ID 0ID 1ID 2ID 3

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 36: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Observations and Inferences

1 The simulator started running out of Java Heap Space beyond62 arrivals per second to the system

2 This indicates ‘Stale-Mate’ situation

3 Throughputs started dipping and behaving unpredictably after62 arrivals per second

4 Queue Lengths suddenly increased mammothly for WEB1 andAUTH1 servers

5 Either WEB1 or AUTH1 is the bottleneck

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 37: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Observations and Inferences

Accept Design Scheme I and prevent more than 60 arrivalsper second to the system

Make Design Scheme II with more number of threads forAUTH1 and WEB1

Make Design Scheme III with faster service rate on AUTH1and WEB1

Make Design Scheme IV with lesser number of Synchronouscalls

Make Design Scheme V with more physical servers

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 38: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Observations and Inferences

Make Design Scheme VI with more number of resources onphysical server bottleneck

Make Design Scheme VII with different mapping between s/wand physical servers

Make Design Scheme VIII as a combination of any of theabove schemes

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 39: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Deployment and Configuration Scheme II

Increased number of threads of AUTH1 and WEB1 from 2 and 4respectively to 10 each

0

50

100

150

200

250

300

350

400

0 20 40 60 80 100 120 140

Thr

ough

put (

requ

ests

per

sec

ond)

Arrival Rate (requests per second)

Throughput of Software Servers

ID 0ID 1ID 2ID 3

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 40: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Deployment and Configuration Scheme II

0

0.5

1

1.5

2

2.5

3

0 20 40 60 80 100 120 140

Avera

ge q

ueue length

(re

quests

per

second)

Arrival Rate (requests per second)

Average Queue length on Software Servers

ID 0ID 1ID 2ID 3

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 41: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

... Deployment and Configuration Scheme II

0

0.01

0.02

0.03

0.04

0.05

0.06

0.07

0 20 40 60 80 100 120 140

Response tim

e (

seconds)

Arrival Rate (requests per second)

Response Time on Software Servers

ID 0ID 1ID 2ID 3

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 42: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

... Deployment and Configuration Scheme II

0

10

20

30

40

50

60

70

80

90

100

0 20 40 60 80 100 120 140

Utiliz

ation (

%)

Arrival Rate (requests per second)

Utilization of Software Servers

ID 0ID 1ID 2ID 3

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 43: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Observations and Inferences

The simulator ran smoothly, no ‘Stale-Mate’ situationencountered. (Good News !)

Arrival rates above 130 per second are now supported withoutany problem. (More Good News !)

Throughputs increased multi-fold, linearly (from 185 to upto400 requests per second for WEB1)

Queue Lengths for s/w servers and physical servers dippeddown to near 0 values, confirming that indeed the bottleneckwas a s/w server

Utilization of WEB1 and IMAP1 is reaching 100%, so is thecase with all the 3 physical servers

IMAP1, WEB1 and all 3 phy. servers are the new bottlenecks

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 44: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Deployment and Configuration Scheme III

Increased number of threads on all S/W servers, increased numberof resources on all physical servers

0

50

100

150

200

250

300

350

400

450

0 20 40 60 80 100 120 140 160

Thr

ough

put (

requ

ests

per

sec

ond)

Arrival Rate (requests per second)

Throughput of Software Servers

ID 0ID 1ID 2ID 3

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 45: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

... Deployment and Configuration Scheme II

0

10

20

30

40

50

60

70

80

90

100

0 20 40 60 80 100 120 140 160

Utiliz

ation (

%)

Arrival Rate (requests per second)

Utilization of Software Servers

ID 0ID 1ID 2ID 3

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 46: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Observations and Inferences

Throughput went even higher (450 req/sec for WEB1)

Arrival rates upto 150 per second supported

Utilization of WEB1 and IMAP1 is reaching 100% at a higherarrival rate (150 req/sec compared to 130 req/sec for WEB1as well as IMAP1)

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 47: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

Summarizing the example

The initial design supported maximum 60 arrivals per second

WEB1, AUTH1 were candidates for being the bottleneck

Deployment and Configuration SCHEME II : increasednumber of threads on WEB1 and AUTH1

Throughput on WEB1 increased from 185 to 400 requests persecondSupported arrival rate increased from 62 to over 130 arrivalsper second

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 48: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

OverviewMessage Flow Diagrams

...Summarizing the example

Deployment and Configuration SCHEME III : increasednumber of threads as well as number of resources

Throuhput on WEB1 increased to from 185 to 450 requestsper second (243% gain over original design)Supported arrival rate increased to from 62 to 150 arrivals persecond (241% gain over original design)

Identical trend of improved performance was observed inphysical servers as well

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 49: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Issues or limitations in current implementation

Need to detect stale-mates and INFORM the same alongwiththe output.

If arrival rate is very large, and has a non-poisson distribution,the simulator consumes a large amount memory

For finite queuelength implementation, need to implement theaction to be taken when a request is dropped

Currently, no action is taken, request is simply dropped. Wontwork for synchronous forwarded calls

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 50: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Future WorkConclusion

Future Work

Verification has been done for Asynchronous calls andNon-layered design. Need to verify for Synchronous andLayered design.

Add following features

Closed queueing networkForks and JoinsSpecial resources like logs, buffersConstructs like loops, synchronization, triggers

Intense verification of implemented features usingMeasurement technique

Read design from a user interface and automate conversion ofthe design into input file format of the simulator

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 51: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Future WorkConclusion

Conclusion

Currently implemented simulator is giving fairly accurateresults

The simulator results help in making performance criticaldecisions in the design

This influences the decision as to whether the system is fit tobe deployed or not

More features are to be added

The simulator can then be used to verify results of analyticalmodel

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 52: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Future WorkConclusion

Thank You

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 53: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Future WorkConclusion

Tested against Analytical Results

IDs 0-3 are simulation results, IDs 4-7 are analytical results

0

0.05

0.1

0.15

0.2

0.25

0.3

0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5

Res

pons

e tim

e (s

econ

ds)

Arrival Rate (requests per second)

Response Time on Physical Servers

ID 0ID 1ID 2ID 3ID 4ID 5ID 6ID 7

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 54: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Future WorkConclusion

...Tested against Analytical Results

IDs 0-3 are simulation results, IDs 4-7 are analytical results

0

10

20

30

40

50

60

70

80

90

0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5

Util

izat

ion

(%)

Arrival Rate (requests per second)

Utilization of Physical Servers

ID 0ID 1ID 2ID 3ID 4ID 5ID 6ID 7

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 55: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Future WorkConclusion

...Tested against Analytical Results

IDs 0-3 are simulation results, IDs 4-7 are analytical results

0

2

4

6

8

10

12

14

16

0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5

Thr

ough

put (

requ

ests

per

sec

ond)

Arrival Rate (requests per second)

Throughput of Physical Servers

ID 0ID 1ID 2ID 3ID 4ID 5ID 6ID 7

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 56: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Future WorkConclusion

...Tested against Analytical Results

IDs 0-3 are simulation results, IDs 4-7 are analytical results

0

0.5

1

1.5

2

2.5

3

3.5

0.5 1 1.5 2 2.5 3 3.5 4 4.5 5

Ave

rage

que

ue le

ngth

(re

ques

ts p

er s

econ

d)

Arrival Rate (requests per second)

Average Queue length on Physical Servers

ID 0ID 1ID 2ID 3ID 4ID 5ID 6ID 7

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 57: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Future WorkConclusion

...Tested against Analytical Results

0.015

0.02

0.025

0.03

0.035

0.04

0.045

0.05

0.055

0 1 2 3 4 5 6 7 8

Response tim

e (

seconds)

Arrival Rate (requests per second)

Response Time on Resources

ID 0ID 1ID 2ID 3

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 58: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Future WorkConclusion

...Tested against Analytical Results

0

20

40

60

80

100

120

0 1 2 3 4 5 6 7 8 9 10

Response tim

e (

seconds)

Arrival Rate (requests per second)

Response Time of CallFlows

ID 0ID 1ID 2ID 3ID 4

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems

Page 59: Simulator for Performance Evaluation of Distributed Software Systemsvarsha/allpapers/btps/bhavesh2.pdf · Simulator for Performance Evaluation of Distributed Software Systems Bhavesh

Introduction and MotivationApproach to tool building

Simulator ImplementedDesign Example

Issues or limitations in current implementationFuture Work and Conclusion

Future WorkConclusion

...Testing the simulator

Need to test for

1 Synchronous calls on complex designs

2 Layered architecture

Testing using Measurement in Stage III

Bhavesh A. Kotak Performance Evaluation of Distributed Software Systems