Programming Assignment 1: Transaction Management | COSC 6375, Assignments of Computer Science

Material Type: Assignment; Professor: Paris; Class: Computer Systems Perform Eval; Subject: (Computer Science); University: University of Houston; Term: Spring 2008;

Typology: Assignments

Pre 2010

Uploaded on 08/19/2009

koofers-user-wn6
koofers-user-wn6 🇺🇸

5

(1)

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
COSC 6375: Computer System Performance Evaluation
First Programming Assignment: Transaction Management
(Due March 11, 2008—No extensions)
OBJECTIVE
This very simple program should help you familiarize with CSIM and prepare you for a more serious
assignment.
SPECIFICATIONS
A small server is exclusively dedicated to processing remote transactions. Each transaction starts and
ends with 70ms of CPU time and requires between 10 and 12 disk I/Os, according to the following pattern
CPU 70ms
DISK 8ms
CPU 10 ms
DISK 8ms
CPU 70ms
Sixty percent of the transactions will require 10 disk accesses, 30 percent of them will require 11 accesses
and the remaining 10 percent will require 12 accesses.
You should write a CSIM program simulating the behavior of the server and answer the following
questions in a separate report:
a) What is the minimum request turnaround time?
b) How is this turnaround time affected by the system workload?
c) What are the CPU and disk utilizations while the request turnaround time is equal to two times
the minimum request turnaround time?
d) How do your results compare with the results of a bottleneck analysis of the system?
Your report should contain at least one graph. Please turn it in in class and mail your program directly to
J.-F. Pâris ([email protected]).
HINTS
Your program should run on one of the four Linux machines (linux01 to linux04) of our
department.
Do not forget to add to your program:
#include <cpp.h>
To compile your program with g++, you should use
g++ -DCPP program1.cpp –o program1 /usr/lib/libcsimcpp.a –lm
You might want to create an executable file named csim containing
g++ -DCPP $* /usr/lib/libcsimcpp.a –lm
in order to be able to write
csim program1.cpp –o program1
The specifications for this assignment were updated last this Wednesday, February 11, 2009.

Partial preview of the text

Download Programming Assignment 1: Transaction Management | COSC 6375 and more Assignments Computer Science in PDF only on Docsity!

COSC 6375: Computer System Performance Evaluation

First Programming Assignment: Transaction Management

(Due March 11, 2008—No extensions)

OBJECTIVE

This very simple program should help you familiarize with CSIM and prepare you for a more serious assignment.

SPECIFICATIONS A small server is exclusively dedicated to processing remote transactions. Each transaction starts and ends with 70ms of CPU time and requires between 10 and 12 disk I/Os, according to the following pattern

CPU 70ms DISK 8ms CPU 10 ms … DISK 8ms CPU 70ms

Sixty percent of the transactions will require 10 disk accesses, 30 percent of them will require 11 accesses and the remaining 10 percent will require 12 accesses.

You should write a CSIM program simulating the behavior of the server and answer the following questions in a separate report :

a) What is the minimum request turnaround time? b) How is this turnaround time affected by the system workload? c) What are the CPU and disk utilizations while the request turnaround time is equal to two times the minimum request turnaround time? d) How do your results compare with the results of a bottleneck analysis of the system?

Your report should contain at least one graph. Please turn it in in class and mail your program directly to J.-F. Pâris ([email protected]).

HINTS

  • Your program should run on one of the four Linux machines (linux01 to linux04) of our department.
  • Do not forget to add to your program: #include <cpp.h>
  • To compile your program with g++, you should use g++ -DCPP program1.cpp –o program1 /usr/lib/libcsimcpp.a –lm

You might want to create an executable file named csim containing g++ -DCPP $* /usr/lib/libcsimcpp.a –lm

in order to be able to write csim program1.cpp –o program

The specifications for this assignment were updated last this Wednesday, February 11, 2009.