1. Type the following command and list and describe the output lsblk¶
The lsblk command lists information about all available or specified block devices. The information includes the device name, size, type, mount point, and other information. The command can be used to list all block devices or only the ones of a specific type. The command can also be used to list information about a specific block device (Linux manual, lsblk (8)).
As you can see this is a remote Linux instance I just launched for this assignment; the main block is xvda with 8GB of storage which in turn is divided into three partitions xvda1, xvda15 ,and xvda14.
The xvda1 partition is mounted as the root file system and the xvda15 as boot.
There are also a few loop devices indicating that this is a virtual machine on another machine. The loop devices are used to mount a file as a block device (Linux manual, loop (4)).
2. From the information gathered in the first command output the contents of the disk scheduler for one of your disks using the cat command cat /sys/block/<disk>/queue/scheduler¶
I displayed the scheduler information for the xvda disk using the following command cat /sys/block/xvda/queue/scheduler and the output is as follows:
The xvda disk is using the mq-deadline scheduler.
According to (RedHat, n.d), the mq-deadline scheduler groups requests into batches according to their logical block address. this scheduler suits traditional HHD devices.