Docsity

Block Transfer - Intro to Computer Architecture - Homework, Exercises of Computer Architecture and Organization

Toggle sidebar
bg1
Computer Architecture Homework #7
1. Suppose we had a block transfer from an I/O device to memory. The block consists of 2048
words and one word can be transferred to/from memory at a time. For each of the following,
indicate the number of interrupts needed to transfer a block using:
a) DMA (direct-memory access)
b) interrupt-driven I/O
c) programmed-I/O
2. Give an example where programmed-I/O might be used.
3. Explain the difference between programmed I/O and interrupt-driven I/O.
4. Explain the difference between interrupt-driven I/O and DMA.
5. Assume special I/O instructions are used to fill I/O-controller registers. Why can’t a user
program use these instructions to communicate with the I/O device directly and “by-pass” the
operating system’s protection checking?
6. Assume that memory-mapped I/O is used. Since Load and Store instructions are used to
communicate with the I/O-controller registers, why can’t a user program communicate with the
I/O device directly and “by-pass” the operating system’s protection checking?
7. Suppose that you are setting up a computer system as a database server for your company.
You have enough money to buy a 4 disk RAID array which can configured as either:
RAID 0 (nonredundant),
RAID 1 (mirrored)
RAID 3 (bit-interleaved with a parity disk)
RAID 5 (block-level with distributed parity blocks)
How would you configure the RAID array? (Justify you answer)
Docsity.com
pf2

Partial preview of the text

Download Block Transfer - Intro to Computer Architecture - Homework and more Exercises Computer Architecture and Organization in PDF only on Docsity!

Computer Architecture Homework

  1. Suppose we had a block transfer from an I/O device to memory. The block consists of 2048 words and one word can be transferred to/from memory at a time. For each of the following, indicate the number of interrupts needed to transfer a block using: a) DMA (direct-memory access)

b) interrupt-driven I/O

c) programmed-I/O

  1. Give an example where programmed-I/O might be used.
  2. Explain the difference between programmed I/O and interrupt-driven I/O.
  3. Explain the difference between interrupt-driven I/O and DMA.
  4. Assume special I/O instructions are used to fill I/O-controller registers. Why can’t a user program use these instructions to communicate with the I/O device directly and “by-pass” the operating system’s protection checking?
  5. Assume that memory-mapped I/O is used. Since Load and Store instructions are used to communicate with the I/O-controller registers, why can’t a user program communicate with the I/O device directly and “by-pass” the operating system’s protection checking?
  6. Suppose that you are setting up a computer system as a database server for your company. You have enough money to buy a 4 disk RAID array which can configured as either:  RAID 0 (nonredundant),  RAID 1 (mirrored)  RAID 3 (bit-interleaved with a parity disk)  RAID 5 (block-level with distributed parity blocks) How would you configure the RAID array? (Justify you answer)

Docsity.com

  1. Assume an 8-disk RAID array. Each disk has 100 MB/sec data transfer rate. a) Fill in the following table to compare the following RAID levels assuming no disk failures.

0 (bit-wise interleaving)

(large strip)

Number of concurrent, small WRITE requests

Number of concurrent, small READ requests

Data transfer rate for single, large I/O request

RAID Level

b) Fill in the following table to compare the following RAID levels assuming one disk failure.

0 (bit-wise interleaving)

(large strip)

Number of concurrent, small WRITE requests

Number of concurrent, small READ requests

Data transfer rate for single, large I/O request

RAID Level

Docsity.com