Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following analyses are suggested to be run: An analysis using Amdahls law and the ratio of serial/parallel code for each method; time

The following analyses are suggested to be run:

• An analysis using Amdahl’s law and the ratio of serial/parallel code for each method;

• time comparison of pipes vs socketpair IPC and effect of different chunk sizes;

• analysis of total execution time for varying numbers of processes/threads;

• analysis of total resident memory for varying number of processes; and

• comparison of parallelization methods (processes vs threading vs OpenMP) using timing and total resident memory and discuss possible differences in speed, memory, communications delay, operating system overhead, etc.

You should write a bash script called performance analysis.sh that automatically runs the various analyses, collates the results for each parallelization strategy, prints a numerical report in the terminal, and generates plots using the gnuplot program. It should save the gnuplot plots into PNG formatted image files for inclusion into your Powerpoint slides. You are to use /usr/bin/time to do the timing and memory measurements. Also feel free to use any combination of bash, sed and awk to facilitate the analyses (e.g. using bash for loops to cycle through parameters to pass to your program, sed and awk to extract the relevant numbers, etc.).

 

Step by Step Solution

3.36 Rating (146 Votes )

There are 3 Steps involved in it

Step: 1

binbash Run amdahls analysis with different number of processes echo e Running Amdahls Law analysis for i in 1 2 4 8 16 do Run program usrbintime f M ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Elementary Statistics Picturing The World

Authors: Ron Larson, Betsy Farber

7th Edition

134683412, 978-0134683416

More Books

Students also viewed these Accounting questions

Question

=+c) What is the response?

Answered: 1 week ago