View Single Post
Posts: 458 | Thanked: 783 times | Joined on Jan 2010 @ France
#1440
Originally Posted by traysh View Post
If you do install the new version 1.1.5, would you please run both as root and user the following commands and paste the result here?

Code:
/opt/fastern9/bin/ionice.real -c 1 -n 0 -p $(pidof meegotouchhome)
/opt/fastern9/bin/ionice.real -c 3 -p $(pidof tracker-store)
/opt/fastern9/bin/ionice.real -c 3 -p $(pidof tracker-miner-fs)
/opt/fastern9/bin/ionice.real -c 1 -n 7 -p $(pidof bme_RX-71)
/opt/fastern9/bin/ionice.real -c 3 -p $(pidof facebook-meego)
/opt/fastern9/bin/ionice.real -c 3 -p $(pidof twitter-meego)
/opt/fastern9/bin/ionice.real -c 3 -p $(pidof commhistoryd)
/opt/fastern9/bin/ionice.real -c 3 -p $(pidof msgindexer)
/opt/fastern9/bin/ionice.real -c 3 -p $(pidof messageserver)
/opt/fastern9/bin/ionice.real -c 3 -p $(pidof feedengine)
/opt/fastern9/bin/ionice.real -c 3 -p $(pidof msyncd)

/opt/fastern9/bin/ionice.real -p $(pidof meegotouchhome)
/opt/fastern9/bin/ionice.real -p $(pidof tracker-store)
/opt/fastern9/bin/ionice.real -p $(pidof tracker-miner-fs)
/opt/fastern9/bin/ionice.real -p $(pidof bme_RX-71)
/opt/fastern9/bin/ionice.real -p $(pidof facebook-meego)
/opt/fastern9/bin/ionice.real -p $(pidof twitter-meego)
/opt/fastern9/bin/ionice.real -p $(pidof commhistoryd)
/opt/fastern9/bin/ionice.real -p $(pidof msgindexer)
/opt/fastern9/bin/ionice.real -p $(pidof messageserver)
/opt/fastern9/bin/ionice.real -p $(pidof feedengine)
/opt/fastern9/bin/ionice.real -p $(pidof msyncd)
Hey traysh !!!

Tested with aegis installer hack by coderus and it work !!!

Obviously, your example need to be modified to take care of non existent processes to 'renice' and to use the binary 'ionice' in place of your 'ionice.real' binary.

To ease my tests I have made a quick & dirty script.

Look the code to use :

Code:
#!/bin/bash
if [ $(pidof meegotouchhome) ] ; then
	sudo ionice -c 1 -n 0 -p $(pidof meegotouchhome)
fi
if [ $(pidof tracker-store) ] ; then
	sudo ionice -c 3 -p $(pidof tracker-store)
fi
if [ $(pidof tracker-miner-fs) ] ; then
	sudo ionice -c 3 -p $(pidof tracker-miner-fs)
fi
if [ $(pidof bme_RX-71) ] ; then
	sudo ionice -c 1 -n 7 -p $(pidof bme_RX-71)
fi
if [ $(pidof facebook-meego) ] ; then
	sudo ionice -c 3 -p $(pidof facebook-meego)
fi
if [ $(pidof twitter-meego) ] ; then
	sudo ionice -c 3 -p $(pidof twitter-meego)
fi
if [ $(pidof commhistoryd) ] ; then
	sudo ionice -c 3 -p $(pidof commhistoryd)
fi
if [ $(pidof msgindexer) ] ; then
	sudo ionice -c 3 -p $(pidof msgindexer)
fi
if [ $(pidof messageserver) ] ; then
	sudo ionice -c 3 -p $(pidof messageserver)
fi
if [ $(pidof feedengine) ] ; then
	sudo ionice -c 3 -p $(pidof feedengine)
fi
if [ $(pidof msyncd) ] ; then
	sudo ionice -c 3 -p $(pidof msyncd)
fi
if [ $(pidof meegotouchhome) ] ; then
	sudo ionice -p $(pidof meegotouchhome)
fi
if [ $(pidof tracker-store) ] ; then
	sudo ionice -p $(pidof tracker-store)
fi
if [ $(pidof tracker-miner-fs) ] ; then
	sudo ionice -p $(pidof tracker-miner-fs)
fi
if [ $(pidof bme_RX-71) ] ; then
	sudo ionice -p $(pidof bme_RX-71)
fi
if [ $(pidof facebook-meego) ] ; then
	sudo ionice -p $(pidof facebook-meego)
fi
if [ $(pidof twitter-meego) ] ; then
	sudo ionice -p $(pidof twitter-meego)
fi
if [ $(pidof commhistoryd) ] ; then
	sudo ionice -p $(pidof commhistoryd)
fi
if [ $(pidof msgindexer) ] ; then
	sudo ionice -p $(pidof msgindexer)
fi
if [ $(pidof messageserver) ] ; then
	sudo ionice -p $(pidof messageserver)
fi
if [ $(pidof feedengine) ] ; then
	sudo ionice -p $(pidof feedengine)
fi
if [ $(pidof msyncd) ] ; then
	sudo ionice -p $(pidof msyncd)
fi
And here is the results :

Code:
~ $ ./fastern9-ionice 
realtime: prio 0
idle
idle
realtime: prio 7
idle
idle
idle
idle
idle
~ $
Hope it help you to made a new package with these informations ...

A++
 

The Following 6 Users Say Thank You to colin.stephane For This Useful Post: