CS3530 Assignment 1
Kennesaw
State University
Department
of Computer Science
CS3530
Operating Systems Section 01
Assignment
#1 Evaluating System Performance
Dalibor
Labudovic
06/5/2013
Initial
Problem Statement:
1.)
Copy
the "batch.cpp" source file from the system directory
/home/jgarrido/psim3 on CS3 compile and link using the "psim3c"
script file. The 'psim3c' script is a command file that uses the GNU C++
compiler on the CS3 server. Follow the instructions in the documents provided
in the course Web page.
2.)
Run
(execute) the program at least three times.
3.)
Write
a report describing the characteristics of the operating system modeled. Use
the guidelines for structuring the report.
4.)
Change
by a small amount a workload parameter (inter-arrival interval, memory requirements)
in the program by executing it again.
5.)
Include
at the end of the report your answers to the following questions.
a.)
What
aspect of an operating system is the model representing?
b.)
What
performance measures does the model compute?
c.)
What
is noticeable in the dynamic behavior of the system?
d.)
After
changing some of the parameters in the model (the workload) and recompiling.
What changes in the results do you notice?
e.)
What
other performance measures can this model compute?
f.)
If
the model needs to change the representation of a CPU twice as fast as the
previous one, how can you implement this modification?
Summary
and purpose of the assignment activity:
The summary and
purpose of the assignment activity is to evaluate the performance of the
computing machine. A testing program has the ability to analyze the performance
of a computing power and to alter the parameters and further analyze the
outcome. In this assignment, the purpose is to set job inter-interval arrival
time and adjust the memory to evaluate the outcome.
Detail
description of the solution and used in the project:
The solution for
this project is to review the best possible combination of parameter setting to
gain a faster processing time. With the current setting under the simuModidfied
output, the best combination is to set the inter-interval time set lower,
default is 10 and under my setting it was at 5. The other setting is the memory
requirements, the default is set at 40 while my settings are at 1000. This
combination set the faster service factor .019 time interval.
Table
of results:
1.) First
simulation:
a. Service
factor: 0.220307
b. Processor
utilization: 0.352694
c. Total
jobs arrived: 92
d. Total
jobs rejected: 0
e. Throughput
(jobs completed): 92
f. Proportion
Rejected: 0
g. Average
job wait period: 40.7031
h. Average
memory used: 3.97906
2.) Second simulation:
a. Service
factor: 0.0819463
b. Processor
utilization: 0.437355
c. Total
jobs arrived: 84
d. Total
jobs rejected: 0
e. Throughput
(jobs completed): 84
f. Proportion
Rejected: 0
g. Average
job wait period: 174.991
h. Average
memory used: 4.80327
3.) Third
simulation:
a. Service
factor: 0.108132
b. Processor
utilization: 0.400463
c. Total
jobs arrived: 97
d. Total
jobs rejected: 0
e. Throughput
(jobs completed): 97
f. Proportion
Rejected: 0
g. Average
job wait period: 102.154
h. Average
memory used: 4.2638
4.) Modified
simulation:
a. Service
factor: 0.0195652
b. Processor
utilization: 0.714141
c. Total
jobs arrived: 186
d. Total
jobs rejected: 0
e. Throughput
(jobs completed): 186
f. Proportion
Rejected: 0
g. Average
job wait period: 577.202
h. Average
memory used: 7.71982
Discussion
of how the system modeled can be improved and extended to include other
service:
The system could
be improved with further system adjustments of the memory parameters and
inter-intervals to gain a better balance between the service factor and the
average job wait period. With the balance be will be at an optimized processing
speed and reduced wait time. The optimization however could be fun through an
optimization model to gain results faster than trail and error.
Comments
and Conclusion:
Utilizing the C
program to further gain knowledge about the process of a operating system is
valuable and to analyze the process speed. I think, we need to test and
continue to research how to improve and better the collaborations between central
processing unit and random access memory. This type of research will further
improve the speed of the system as a whole.
List
of References:
Garrido C.,
Jose. Using CS3. CS 3530 .Web.Science.kennesaw.edu/~jgarrido/os/using_CS3.doc
05/03/2013
QUESTIONS:
a.)
What
aspect of an operating system is the model representing?
The
model represents the processing aspect of an operating system. This includes
the job queue waiting time, processed time and memory allocated.
b.)
What
performance measures does the model compute?
The
model computes Service factor, Processor Utilization and Average wait time,
average memory used performance measures.
c.)
What
is noticeable in the dynamic behavior of the system?
The
dynamic behavior of the system is the job are never in this instance rejected
but are sent back of the queue if they are taking too long to process.
d.)
After
changing some of the parameters in the model (the workload) and recompiling.
What changes in the results do you notice?
With
the increase of memory to the batch file, from 40 memory units to 1000 memory
units, the results yield service factor
.17 , processor utilization .36 and wait period of 58 time units. This change
has brought more efficiently to the system because processor is utilized about 50% less, wait time has dropped
dramatically from 577 time units to 58 time units, a 10 times less wait time.
e.)
What
other performance measures can this model compute?
This
model can compute total jobs arrived and throughput completed jobs, with the
necessary information of if jobs were rejected.
f.)
If
the model needs to change the representation of a CPU twice as fast as the
previous one, how can you implement this modification?
To
make the CPU twice as fast as previous one, we need to change the workload,
increase queue array and increase memory required, and finally increase
inter-interval time units.
Script:
Script started
on Sun 02 Jun 2013 12:03:01 PM EDT
]0;dlabudov@cs3:~/myos[dlabudov@cs3
myos]$ nano batch.cpp[3Ppsim3cbatch.cpp[1Psiml.txtls[Kcd myos./batch | tee
simul.txt[Kmv a.out batch./psim3c batch.cppcp /home/jgarrido/psim3/psim3c .
[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[14P./psim3c
batch.cpp[4Pmv a.out batch[7P./batch | tee simul.txt
[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[C[Ccd
myos[Kls[Kcd myos./batch | tee simul.txt[Kmv a.out
batch[K[K[K[K[K[K[K[K[K[K[K[K[K[K./psim3c batt[Kch.cpp
[H[2J[H[2J-------------------------------------------------------------------------------
------ Psim3 C++
(POSIX threads) package for object oriented simulation -------
------------------
(C) J. M. Garrido, 2004-2012 -----------
-------------------------------------------------------------------------------
a.out created.
]0;dlabudov@cs3:~/myos[dlabudov@cs3
myos]$ mv a.out batch
]0;dlabudov@cs3:~/myos[dlabudov@cs3
myos]$ ./batch tee simu1.txt
Psim3 project:
Simple Batch System
Simulation date:
Sun Jun 2 12:06:15 2013
Simulation
parameters
Simulation
interval: (3000)
Close arrival time:
(1000)
Workload
Parameters
Mean
inter-arrival: (10.55)
Mean CPU service
demand: (12.65)
Lower bound mean
memory demand: (8)
Upper bound mean
mem demand: (14)
Systems parameters
Queue capacity:
(200)
System memory:
(40)
Processor object
created
environment
created with 10.55 12.65
Service factor:
0.0658138
Processor
utilization: 0.423735
Total jobs
arrived: 98
Total jobs
rejected: 0
Throughput (jobs
completed): 98
Proportion
Rejected: 0
Average job wait
period: 184.122
Average memory
used: 4.61086
--------------------------------------------------
End of simulation Simple Batch System Sun
Jun 2 12:06:15 2013
]0;dlabudov@cs3:~/myos[dlabudov@cs3
myos]$
]0;dlabudov@cs3:~/myos[dlabudov@cs3
myos]$ .batch | tee simu2.txt
bash: .batch:
command not found
]0;dlabudov@cs3:~/myos[dlabudov@cs3
myos]$ ./batch | tee simu2.txt
Psim3 project:
Simple Batch System
Simulation date:
Sun Jun 2 12:07:36 2013
Simulation parameters
Simulation
interval: (3000)
Close arrival
time: (1000)
Workload Parameters
Mean
inter-arrival: (10.55)
Mean CPU service
demand: (12.65)
Lower bound mean
memory demand: (8)
Upper bound mean
mem demand: (14)
Systems parameters
Queue capacity:
(200)
System memory:
(40)
Processor object
created
environment
created with 10.55 12.65
CPU goes idle at
0
environment
generating at 21.0393
Service factor:
0.0819463
Processor
utilization: 0.437355
Total jobs
arrived: 84
Total jobs
rejected: 0
Throughput (jobs
completed): 84
Proportion
Rejected: 0
Average job wait
period: 174.991
Average memory
used: 4.80327
--------------------------------------------------
End of simulation Simple Batch System Sun
Jun 2 12:07:36 2013
]0;dlabudov@cs3:~/myos[dlabudov@cs3
myos]$ ./batch | tee simu3.txt
Psim3 project:
Simple Batch System
Simulation date:
Sun Jun 2 12:08:22 2013
Simulation parameters
Simulation
interval: (3000)
Close arrival
time: (1000)
Workload Parameters
Mean
inter-arrival: (10.55)
Mean CPU service
demand: (12.65)
Lower bound mean
memory demand: (8)
Upper bound mean
mem demand: (14)
Systems parameters
Queue capacity:
(200)
System memory:
(40)
Service factor:
0.108132
Processor
utilization: 0.400463
Total jobs
arrived: 97
Total jobs
rejected: 0
Throughput (jobs
completed): 97
Proportion
Rejected: 0
Average job wait
period: 102.154
Average memory
used: 4.2638
--------------------------------------------------
End of simulation Simple Batch System Sun Jun 2 12:08:22 2013
]0;dlabudov@cs3:~/myos[dlabudov@cs3
myos]$ .batch | tee simuModfied.txt
bash: .batch:
command not found
]0;dlabudov@cs3:~/myos[dlabudov@cs3
myos]$ ./batch | tee simuModified.txt
Psim3 project:
Simple Batch System
Simulation date:
Sun Jun 2 12:09:53 2013
Simulation parameters
Simulation
interval: (3000)
Close arrival
time: (1000)
Workload Parameters
Mean
inter-arrival: (10.55)
Mean CPU service demand: (12.65)
Lower bound mean
memory demand: (8)
Upper bound mean
mem demand: (14)
Systems parameters
Queue capacity:
(200)
System memory: (40)
Processor object created environment created
with 5 12.65
Service factor:
0.0195652
Processor
utilization: 0.714141
Total jobs
arrived: 186
Total jobs
rejected: 0
Throughput (jobs
completed): 186
Proportion
Rejected: 0
Average job wait
period: 577.202
Average memory
used: 7.71982
--------------------------------------------------
End of simulation Simple Batch System Sun
Jun 2 12:09:53 2013
]0;dlabudov@cs3:~/myos[dlabudov@cs3
myos]$ exit
exit
Script done on
Sun 02 Jun 2013 12:11:34 PM EDT
Comments
Post a Comment