[PD] process control: startup priority/cpu weirdness?
damian.ml at frey.co.nz
Mon Aug 16 12:01:42 CEST 2010
apologies for cross-posting, and for off-topicness, but i need an answer kind of quick and i figure these channels will get a fastest response :-)
so i'm trying to start up my openFrameworks ofxPd app on my beagleboard, running Ubuntu 10.04. if i start it manually as a normal user from the console, in the foreground, it works fine, using about 77-80% cpu, peaking at 99% sometimes.
if i start it in the background as a normal user, it uses 99% cpu all the time, and i get buffer under-runs. if i start in the background as superuser, the pd engine thread gives itself real-time priority but the app still uses 99% cpu all the time and gives buffer under-runs. if i start it in the background using nice -19, it still gives buffer under-runs.
if i add an init.d script, it exhibits exactly the same behaviour as if it is run as superuser in the background.
so two questions:
a/ what could be going on here?
b/ how can i get the nice console behaviour in a startup script?
damian stewart . @damiannz . damian at frey.co.nz
frey . contemporary art . http://www.frey.co.nz
More information about the Pd-list