summaryrefslogtreecommitdiff
path: root/bin/topinfo_iorsize_stats.sh
diff options
context:
space:
mode:
authorbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-06-25 17:48:28 +0000
committerbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-06-25 17:48:28 +0000
commit4acc0c249385c338db02a4fc51da3162dd1eb8b8 (patch)
tree34de777f333bcc665586977dec151b09db0c3041 /bin/topinfo_iorsize_stats.sh
parent95b15471b8e976a38c6fced9a92a99a51eb9ea9c (diff)
downloadATCD-4acc0c249385c338db02a4fc51da3162dd1eb8b8.tar.gz
ChangeLogTag:Wed Jun 25 12:45:44 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'bin/topinfo_iorsize_stats.sh')
-rwxr-xr-xbin/topinfo_iorsize_stats.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/topinfo_iorsize_stats.sh b/bin/topinfo_iorsize_stats.sh
index ba3d11686be..86088779c0b 100755
--- a/bin/topinfo_iorsize_stats.sh
+++ b/bin/topinfo_iorsize_stats.sh
@@ -19,7 +19,7 @@ ACE_ROOT=$ROOT
export ACE_ROOT
LD_LIBRARY_PATH=$ACE_ROOT/ace
export LD_LIBRARY_PATH
-PATH=/usr/bin:$PATH
+PATH=/usr/bin:/bin:$PATH
export PATH
cd TAO/performance-tests/Memory/IORsize
@@ -33,7 +33,7 @@ fi
s_id=$!;
-server_start_size=`top -p $s_id -n 1 -b | grep $US| awk '{print $5}'`;
+server_start_size=`cat /proc/$s_id/status | grep VmRSS | awk '{print $2}'`;
# Just sleep for 2 seconds.
sleep 2;
@@ -47,8 +47,8 @@ if test -f $file
# Wait till all the invocations are done
sleep 30;
# Get the size once the client has made sufficient invocations.
- s_invocations=`top -p $s_id -n 1 -b | grep $US| awk '{print $5}'`;
- let "actual_server_growth= ${s_invocations}-${server_start_size}";
+ s_invocations=`cat /proc/$s_id/status | grep VmRSS | awk '{print $2}'`;
+ let "actual_server_growth=${s_invocations}-${server_start_size}";
if test $OPT == 1
then
echo $DATE $s_invocations >> $DEST/source/server_opt_ior_size.txt