Question
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 ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started