* [PATCH 1/2] oe-time-dd-test.sh: make executable
@ 2021-04-13 16:59 Sakib Sajal
2021-04-13 16:59 ` [PATCH 2/2] oe-time-dd-test.sh: provide more information from "top" Sakib Sajal
0 siblings, 1 reply; 2+ messages in thread
From: Sakib Sajal @ 2021-04-13 16:59 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
---
scripts/oe-time-dd-test.sh | 0
1 file changed, 0 insertions(+), 0 deletions(-)
mode change 100644 => 100755 scripts/oe-time-dd-test.sh
diff --git a/scripts/oe-time-dd-test.sh b/scripts/oe-time-dd-test.sh
old mode 100644
new mode 100755
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 2/2] oe-time-dd-test.sh: provide more information from "top"
2021-04-13 16:59 [PATCH 1/2] oe-time-dd-test.sh: make executable Sakib Sajal
@ 2021-04-13 16:59 ` Sakib Sajal
0 siblings, 0 replies; 2+ messages in thread
From: Sakib Sajal @ 2021-04-13 16:59 UTC (permalink / raw)
To: openembedded-core
Improvements:
- increase width to 512
- pass -c option to show full command-line
Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
---
scripts/oe-time-dd-test.sh | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/scripts/oe-time-dd-test.sh b/scripts/oe-time-dd-test.sh
index 970a86dff08..5b25e6bd974 100755
--- a/scripts/oe-time-dd-test.sh
+++ b/scripts/oe-time-dd-test.sh
@@ -13,11 +13,16 @@ usage() {
echo "Usage: $0 <count>"
}
+TIMEOUT=5
+
if [ $# -ne 1 ]; then
usage
exit 1
fi
uptime
-/usr/bin/time -f "%e" dd if=/dev/zero of=foo bs=1024 count=$1 conv=fsync
-top -b -n 1 | grep -v "0 0 0" | grep -E ' [RSD] ' | cut -c 46-47 | sort | uniq -c
+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
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-13 16:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-13 16:59 [PATCH 1/2] oe-time-dd-test.sh: make executable Sakib Sajal
2021-04-13 16:59 ` [PATCH 2/2] oe-time-dd-test.sh: provide more information from "top" Sakib Sajal
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.