126d2984361f5213d4e2c732a6b042698601e7706robbiew#!/bin/sh
226d2984361f5213d4e2c732a6b042698601e7706robbiew#
326d2984361f5213d4e2c732a6b042698601e7706robbiew#
426d2984361f5213d4e2c732a6b042698601e7706robbiew#   Copyright (c) International Business Machines  Corp., 2001
526d2984361f5213d4e2c732a6b042698601e7706robbiew#
626d2984361f5213d4e2c732a6b042698601e7706robbiew#   This program is free software;  you can redistribute it and/or modify
726d2984361f5213d4e2c732a6b042698601e7706robbiew#   it under the terms of the GNU General Public License as published by
826d2984361f5213d4e2c732a6b042698601e7706robbiew#   the Free Software Foundation; either version 2 of the License, or
926d2984361f5213d4e2c732a6b042698601e7706robbiew#   (at your option) any later version.
1026d2984361f5213d4e2c732a6b042698601e7706robbiew#
1126d2984361f5213d4e2c732a6b042698601e7706robbiew#   This program is distributed in the hope that it will be useful,
1226d2984361f5213d4e2c732a6b042698601e7706robbiew#   but WITHOUT ANY WARRANTY;  without even the implied warranty of
1326d2984361f5213d4e2c732a6b042698601e7706robbiew#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
1426d2984361f5213d4e2c732a6b042698601e7706robbiew#   the GNU General Public License for more details.
1526d2984361f5213d4e2c732a6b042698601e7706robbiew#
1626d2984361f5213d4e2c732a6b042698601e7706robbiew#   You should have received a copy of the GNU General Public License
176518012db8b99b04ef3e4df22aefe82fa487b809Rishikesh K Rajak#   along with this program;  if not, write to the Free Software
184548c6cf9bcdd96d8303caa4130ab638b61f8a30Wanlong Gao#   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1926d2984361f5213d4e2c732a6b042698601e7706robbiew#
2026d2984361f5213d4e2c732a6b042698601e7706robbiew#
2126d2984361f5213d4e2c732a6b042698601e7706robbiew#
2226d2984361f5213d4e2c732a6b042698601e7706robbiew#  FILE   : sched_stress
2326d2984361f5213d4e2c732a6b042698601e7706robbiew#
2426d2984361f5213d4e2c732a6b042698601e7706robbiew#  PURPOSE : Exports required environment variables and runs sched_driver
2526d2984361f5213d4e2c732a6b042698601e7706robbiew#
2626d2984361f5213d4e2c732a6b042698601e7706robbiew
2737550cf5a86c7ca7424a2a318dd64e550f13f5dfChris Dearman# The command below will only work on x86 setups, b/c other archs keep
282ebdddbd95cb06bcccb283db159069930039b9d9robbiew# their bootfiles other locations.
293a66056c4a91c947dc8d1f57bff1899e78bc7099robbiewexport KERNEL=./sched_datafile
306a09e9cce0ccab0fb7a9f1c20f171e360fd6235aplarstouch $KERNEL
3123e3e9f8af75b61ddaadcec34cfe868f0e8b2b4asubrata_modakecho 0.000000 > sch.measure
3226d2984361f5213d4e2c732a6b042698601e7706robbiewexport RAWDEV=`df / | grep dev | awk {'print $1'}`
3323e3e9f8af75b61ddaadcec34cfe868f0e8b2b4asubrata_modaksched_driver -s 0.9 -t 0.02 -p 2 > /tmp/tmp$$
3481db12ad7476d73be840259509b1362f1b6eee31yaberauneyatail -n 5 /tmp/tmp$$
3523e3e9f8af75b61ddaadcec34cfe868f0e8b2b4asubrata_modakrm -rf /tmp/tmp$$ ./sched_datafile sch.measure
36