67% found this document useful (3 votes)
4K views5 pages

Design of UNIX Operating System M.J Bach MCQ UNIT - II

The document discusses the Linux kernel buffer cache. [1] The kernel uses a buffer cache to read data from disk into memory buffers and write data from memory buffers back to disk. [2] It uses algorithms like getblk to allocate buffers from the buffer pool and bread/brelse to handle buffers no longer needed by processes. [3] The kernel must write modified buffer contents back to disk before reallocating buffers using delayed write to improve performance.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
67% found this document useful (3 votes)
4K views5 pages

Design of UNIX Operating System M.J Bach MCQ UNIT - II

The document discusses the Linux kernel buffer cache. [1] The kernel uses a buffer cache to read data from disk into memory buffers and write data from memory buffers back to disk. [2] It uses algorithms like getblk to allocate buffers from the buffer pool and bread/brelse to handle buffers no longer needed by processes. [3] The kernel must write modified buffer contents back to disk before reallocating buffers using delayed write to improve performance.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Buffer Cache

1.The-------------- may read data from the disk to the buffer and manipulate it or write data to the
buffer and possibly to the disk.
a.Kernal.
b.Controller
c.Disk Controller
d.getblk algorithm

2.The kernal involves algorithm ----------------- when a process has no more need for buffer.
a. Brelse
b.bread
c.breada
d.iget

3.The kernal must write the ------------------------- buffer to disk and allocate another buffer.
a.write
b. delayed write
c.pre write
d.delayed read

4.The algorithm for reading and writing disk block use the algorithm ------------------------------.
a.iget
b.iput
c.inode
d. getblk
5. Buffer cache helps to...............................
a. Store data
b. Improved read/write performance
c. Allocate memory
d. None of the above

6. A memory buffer used to accommodate a speed differential is called


a. stack pointer
b. cache
c. accumulator
d. disk buffer

7. Information about a process is maintained in a _________.


a. Stack
b. Translation Lookaside Buffer
c. Process Control Block
d. Program Control Block

8. Kernel minimizes the frequency of disk access by keeping a pool of internal data buffer which
helps to increase the response time, this is known as ?
a. Buffer cache
b. Spooling
c. Pooling
d. Virtual Memory

9. When a process wants to access the data from a file, the ______brings the data into main
memory.

a. Driver
b. Controller
c. Kernel
d. None

10.The kernel attempts to minimize the frequency of disk access by keeping a pool of internal
data buffers, called the __________.
a.Buffer pool
b.Buffer cache
c.Buffer Header
d.Free Buffer

11.A memory array that contains data from the disk and a ________that identifies the buffer.

a. Hash Queue
b. Buffer pool
c.Buffer Header
d. Buffer Cache

12.The kernel must write the buffer contents to disk before reassigning the buffer, this condition
is
known as _________.

a.Delayed-read
b.Unlocked
c.Locked
d.Delayed-write

13. The system places number of data alignment restrictions on user processes doing input,
because the kernel aligns _________.
a.Data externally
b.Data internally-externally
c.Data internally
d.Data externally-internally

14.The buffer algorithm help ____________integrity, because they maintain a common, single
image of
a disk blocks contained in the cache.
a. to storage file system
b. to managing the file system
c. to modified file system
d. to insure file system

15.A process reading data has the ___________from disk into the kernel, and from the kernel to
the user process.
a. Data write
b. Data read
c. Data read-write
d.Data write-read

16.Kernel minimizes the frequency of disk access by keeping a pool of internal data buffer which
helps to increase the response time, this is known as ?
a) Buffer cache
b) Spooling
c) Pooling
d) Virtual Memory

17.How applications communicates with kernel ?


a) Not disclosed by linux team
b) SSL
c) System Calls
d) Shell

18. Kernel is known as core of operating system.

a) True
b) False

19. Which among following is considered as super daemon ?


a) sysinit
b) grep
c) init
d) locate
20. To display disk consumption of a specific directory which command is used ?
a) dd
b) du
c) dt
d) dl
21. Which command is used to determine the path of an executable file ?
a) which
b) whom
c) locate
d) wex

22.------------- is “in memory” representation of the disk blocks.

a) Buffer Cache
b) Buffer Header
c) main Memory
d) disk memory
23.The buffer header also contains the status of the buffer. The status of the buffer could be
a) Locked/unlocked
b) Buffer contains a valid data or not.
c) Whether the kernel should write the contents to disk immediately or before
reassigning the buffer(write delay)
d) Kernel is currently reading the data or writing the data.
e) Is there any process waiting for the buffer to get free.
f) All of the above
24.The algorithm for reading and writing disk blocks uses the algorithm -------- to allocate buffer
from the pool.

a) getblk
b) read
c) bread
d) get

25. Advantages of the buffer cache


a) Uniform disk access => system design simpler
b) Copying data from user buffers to system buffers => eliminates the need for
special alignment of user buffers.
c) Use of the buffer cache can reduce the amount of disk traffic.
d) Single image of of disk blocks contained in the cache => helps insure file system
integrity
e) All of the above

26.Disadvantages of the buffer cache


a) Delayed write => vulnerable to crashes that leave disk data in incorrect state
b) An extra data copy when reading and writing to and from user
processes => slow down when transmitting large data
c) All of the above

You might also like