mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00

Improvements: - increase width to 512 - pass -c option to show full command-line (From OE-Core rev: aeae9467af5609c3c7bf8d0379d5546d9797ead5) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
29 lines
707 B
Bash
Executable File
29 lines
707 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# oe-time-dd-test records how much time it takes to
|
|
# write <count> number of kilobytes to the filesystem.
|
|
# It also records the number of processes that are in
|
|
# running (R), uninterruptible sleep (D) and interruptible
|
|
# sleep (S) state from the output of "top" command.
|
|
# 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 <count>"
|
|
}
|
|
|
|
TIMEOUT=5
|
|
|
|
if [ $# -ne 1 ]; then
|
|
usage
|
|
exit 1
|
|
fi
|
|
|
|
uptime
|
|
timeout ${TIMEOUT} dd if=/dev/zero of=oe-time-dd-test.dat bs=1024 count=$1 conv=fsync
|
|
if [ $? -ne 0 ]; then
|
|
echo "Timeout used: ${TIMEOUT}"
|
|
top -c -b -n1 -w 512
|
|
fi
|