This repository has been archived by the owner on May 12, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: Add scsi_mod.scan=none for virtio-scsi
As per [1], the default scan mode of scsi is sync. kata-agent already scans the SCSI buses [2], changing it to none can reduce the guest boot time. =Before this patch= [ 0.113828] [ T1] scsi host0: Virtio SCSI HBA [ 0.134006] [ T1] tun: Universal TUN/TAP device driver, 1.6 =After this patch= [ 0.105891] [ T1] scsi host0: Virtio SCSI HBA [ 0.107868] [ T1] tun: Universal TUN/TAP device driver, 1.6 It reduces about 17ms on arm64 for virtio-scsi. This patch changes the default kernel parameter: 1. If user specifies the scan mode, use that 2. If user doesn't specify it, and the block device is virtio-scsi, use "none" by default [1] https://lwn.net/Articles/201898/ [2] https://github.com/kata-containers/agent/blob/649d44117a/device.go#L322 Fixes: #2560 Signed-off-by: Jia He <[email protected]
- Loading branch information