oe-timeout-dd-test tries to write <count> number of kilobytes to the filesystem within a specified <timeout>. The purporse of this script is to find which part of the build system puts stress on the filesystem io and log all the processes.
To use and monitor a build, add to local.conf: BB_HEARTBEAT_EVENT = "<interval to log data>" BB_LOG_HOST_STAT_ON_INTERVAL = "1" BB_LOG_HOST_STAT_CMDS = "oe-timeout-dd-test.sh <timeout> <count>" Log can be found at: $TMPDIR/buildstats/<build_number>/host_stats file. Signed-off-by: Sakib Sajal <sakib.sa...@windriver.com> --- scripts/oe-timeout-dd-test.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 scripts/oe-timeout-dd-test.sh diff --git a/scripts/oe-timeout-dd-test.sh b/scripts/oe-timeout-dd-test.sh new file mode 100644 index 0000000000..40b3948c32 --- /dev/null +++ b/scripts/oe-timeout-dd-test.sh @@ -0,0 +1,26 @@ +#!/bin/sh +# +# oe-timeout-dd-test tries to write <count> number of +# kilobytes to the filesystem within a specified time +# constraint. The purporse of this script is to find +# which part of the build system puts stress on the +# filesystem io and log all the processes. + +usage() { + echo "Usage: $0 <timeout> <count>" +} + +if [ $# -ne 2 ]; then + usage + exit 1 +fi + +timeout $1 dd if=/dev/zero of=/tmp/foo bs=1024 count=$2 >/dev/null 2>&1 + +if [ $? -ne 0 ] +then + top -b -n 1 +else + echo "success" +fi + -- 2.29.2
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#149089): https://lists.openembedded.org/g/openembedded-core/message/149089 Mute This Topic: https://lists.openembedded.org/mt/81158947/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-