11-20-2009, 10:15 PM
hi guys I jammed in that part of resched.sh
do not know how to fill! the result of grep is that:
xXXXXX@XXXXXxxx:~/Desktop# ps ax | grep hrtimer
11 ? S< 0:00 [sirq-hrtimer/0]
24 ? S< 0:00 [sirq-hrtimer/1]
36 ? S< 0:00 [sirq-hrtimer/2]
48 ? S< 0:00 [sirq-hrtimer/3]
60 ? S< 0:00 [sirq-hrtimer/4]
72 ? S< 0:00 [sirq-hrtimer/5]
84 ? S< 0:00 [sirq-hrtimer/6]
96 ? S< 0:00 [sirq-hrtimer/7]
6116 pts/0 S+ 0:00 grep hrtimer
what i need to change the reched.sh?
#!/bin/sh
PIDS=`ps ax | grep sirq-hrtimer | grep -v grep | sed -e "s/^ *//" -e "s/ .*$//"`
for p in $PIDS; do
chrt -f -p 99 $p
done
PIDS=`ps ax | grep sirq-timer | grep -v grep | sed -e "s/^ *//" -e "s/ .*$//"`
for p in $PIDS; do
chrt -f -p 51 $p
done
PIDS=`pidof srcds_i686`
for p in $PIDS; do
chrt -f -p 98 $p
done
PIDS=`pidof srcds_i486`
for p in $PIDS; do
chrt -f -p 98 $p
done
PIDS=`pidof srcds_amd`
for p in $PIDS; do
chrt -f -p 98 $p
done
PIDS=`pidof hlds_i686`
for p in $PIDS; do
chrt -f -p 98 $p
done
PIDS=`pidof hlds_i486`
for p in $PIDS; do
chrt -f -p 98 $p
done
PIDS=`pidof hlds_amd`
for p in $PIDS; do
chrt -f -p 98 $p
done
tanks in advance and sorry for the poor inglish
do not know how to fill! the result of grep is that:
xXXXXX@XXXXXxxx:~/Desktop# ps ax | grep hrtimer
11 ? S< 0:00 [sirq-hrtimer/0]
24 ? S< 0:00 [sirq-hrtimer/1]
36 ? S< 0:00 [sirq-hrtimer/2]
48 ? S< 0:00 [sirq-hrtimer/3]
60 ? S< 0:00 [sirq-hrtimer/4]
72 ? S< 0:00 [sirq-hrtimer/5]
84 ? S< 0:00 [sirq-hrtimer/6]
96 ? S< 0:00 [sirq-hrtimer/7]
6116 pts/0 S+ 0:00 grep hrtimer
what i need to change the reched.sh?
#!/bin/sh
PIDS=`ps ax | grep sirq-hrtimer | grep -v grep | sed -e "s/^ *//" -e "s/ .*$//"`
for p in $PIDS; do
chrt -f -p 99 $p
done
PIDS=`ps ax | grep sirq-timer | grep -v grep | sed -e "s/^ *//" -e "s/ .*$//"`
for p in $PIDS; do
chrt -f -p 51 $p
done
PIDS=`pidof srcds_i686`
for p in $PIDS; do
chrt -f -p 98 $p
done
PIDS=`pidof srcds_i486`
for p in $PIDS; do
chrt -f -p 98 $p
done
PIDS=`pidof srcds_amd`
for p in $PIDS; do
chrt -f -p 98 $p
done
PIDS=`pidof hlds_i686`
for p in $PIDS; do
chrt -f -p 98 $p
done
PIDS=`pidof hlds_i486`
for p in $PIDS; do
chrt -f -p 98 $p
done
PIDS=`pidof hlds_amd`
for p in $PIDS; do
chrt -f -p 98 $p
done
tanks in advance and sorry for the poor inglish