Effect of chunk size on pipe system-call overhead

A single producer sends 512 MiB to a consumer through a pipe. The producer writes, and the consumer reads, in equal fixed-size chunks, and every call transfers one full chunk. Each system call costs 1.5 µs. Counting every write() and every read() call, find the total number of system calls with 4 KiB chunks, the total number with 64 KiB chunks, and the system-call time saved by switching to 64 KiB chunks, in milliseconds to one decimal place.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Inter Process Communication Questions: