Skip to content

benchmark: modify RAID0 handling function in MySQL workload

Aishwarya Rambhadran requested to merge aisram01/patch-reprocoll-raid into main

Relocate the create_and_mount_raid function from install:sut process to configure:sut process in repro_collection script. Previously, this step was part of the SUT install phase, which is run only once during the benchmark Docker image build in fastpath. As a result, the function did not perform the intended actions of creating or mounting RAID0 array on the SUT. In fastpath, configure:sut process is triggered after the docker container for the benchmark is launched and actively running. This change ensures that create_and_mount_raid function is invoked as the initial step of configuration on the SUT, prior to running the workload.

Additionally, fix create_and_mount_raid function to correctly detect and mount existing unmounted RAID0 arrays on the SUT. Previously the function failed to handle this scenario because lsblk output doesn't show updated filesystem type if the disk gets formatted within the benchmark docker container. Also, incorrect parsing of lsblk output, using whitespace as a separator impacts the subsequent steps. These bugs in the function caused improper assignment of local variables storing device information (dev, type, pk, fs, mp, raid etc.), thus failing the script. Update Dockerfile for copying and applying this patch to the workload script.

Finally, enable CONFIG_MD_RAID0 kernel config which is required for creating/handling RAID0 array on SUT.

Signed-off-by: Aishwarya Rambhadran aishwarya.rambhadran@arm.com

Merge request reports

Loading