Week 01 A
Week 01 A
COMP9334 1
About your lecturer
• Research in Computer Networks and Embedded Systems
• Example research projects
• Derive efficient algorithms for embedded devices
• Enabling biological computers to talk to each other
https://research.unsw.edu.au/people/associate-professor-chun-tung-chou
• Consultation:
• In-person consultation: Thur 12:45-1:15pm in 608/K17
• Online on Zoom (different link from lectures): Wed 3-3:30pm
• Time may change. Please check “Timetable” in the course website to
confirm.
• https://www.youtube.com/watch?v=bjUwSHGsG9o
performance
Workload capacity
• Importance of performance
• Can be life and death
• Availability of critical infrastructure e.g. emergency services
• Customer satisfaction
• Availability
• Response time
• The italicised terms are examples of computer system
related performance metrics
• Also known as Quality of service (QoS) metrics
Request arrives
at time t1
Request
completes
and leaves
at time t2
• Queueing theory
time
2ms
time
• Can you find a formula relating throughout, offered load and max
capacity?
• Throughput = min( offered load, max capacity)
Thrasing== congestion
Thrashing congestion collapse
collapse
1 time
2 4
Job #1 is admitted into the server immediately since the
server is idle.
Job #1 is completed and leaves the system at time 4.
T1, 2024 COMP9334 40
Job index Arrival time Processing time required
1 2 2
2 6 4
3 8 4
4 9 3
1 2 time
2 4 6 10
Job #2 arrives when the server is idle. It gets admitted
immediately.
Job #2 will be completed at time 10.
T1, 2024 COMP9334 41
Job index Arrival time Processing time required
1 2 2
2 6 4
3 8 4
4 9 3
1 2 3 time
2 4 6 10 14
1 2 3 4 time
2 4 6 10 14 17
Job #4 arrives when the server is processing Job#2 and Job#3
is in the queue. Job #4 joins the queue. It gets served at time
14, immediately after Job#3 is completed.
T1, 2024 COMP9334 43
Job index Arrival time Processing time required
1 2 2
2 6 4
3 8 4
4 9 3
1 2 3 4 time
2 4 6 10 14 17
• Definition: Response time = Departure time - arrival time
Ex: Response time for Job#4 = 17 – 9 = 8 (= 5 + 3)
• Response time = Waiting time + Processing time
T1, 2024 COMP9334 44
Job index Arrival time Processing time required
1 2 2
2 6 4
3 8 4
4 9 3
1 2 3 4 time
2 4 6 10 14 17
• Definition: Utilisation = Percentage of time over which the
server is busy
•What is the utilisation of the server over the first 12s?
• 8/12 = 66.7%
T1, 2024 COMP9334 45
Single server FIFO queues
1 time
2 3
What is the waiting time for each job?
What is the response time for each job?
• Performance metrics
• Response time, waiting time, throughput