[Vm-dev] pthread_setschedparam failed: Not owner
stes
stes at telenet.be
Sat Mar 28 18:56:44 UTC 2020
On Solaris when running the
bash-4.4$ bin/squeak Squeak5.3-19431-32bit.image
*pthread_setschedparam failed: Not owner*
(the Squeak image starts up despite the warning/error, it seems to warn that
"for best operation, this thread should run at a higher priority, however
the VM was unable to change the priority.")
I'm not really sure what the right Solaris way to fix this is,
but by default the shell has for me
bash-4.4$ priocntl -d $$
INTERACTIVE CLASS PROCESSES:
PID[/LWP] IAUPRILIM IAUPRI IAMODE
3246 0 0 1
priority limit 0 and priority set to 0
I can raise this with "priocntl -s -m 10 -p 1 $$" to set the limit to 10 and
the priority of the shell to 1 (not sure whether that is good idea)
in any case in that case
bash-4.4$ priocntl -d $$
INTERACTIVE CLASS PROCESSES:
PID[/LWP] IAUPRILIM IAUPRI IAMODE
3246 10 1 1
the limit is then 10
when starting from that shell the squeak VM it does *not print the warning*,
so perhaps it can succesfully issue the pthread_setschedparam() call.
the LWP (light weight process) with "ps" (report process status) shows a
difference indeed
# ps -eLo class,pri,lwp,pid,comm | grep squeak
IA 40 1 3256 bin/../lib/squeak/5.0-202003240214-solaris/squeak
IA 51 2 3256 bin/../lib/squeak/5.0-202003240214-solaris/squeak
while if the error/warning is printed the "pri' (priority) is the same for
the 2 LWP (threads?)
# ps -eLo class,pri,lwp,pid,comm | grep squeak
IA 49 1 3306 bin/../lib/squeak/5.0-202003240214-solaris/squeak
IA 49 2 3306 bin/../lib/squeak/5.0-202003240214-solaris/squeak
--
Sent from: http://forum.world.st/Squeak-VM-f104410.html
More information about the Vm-dev
mailing list