One can use at the CLI:

#> ps -ef | grep squee

to see list of the processes that include "squee" which will show the
primary LMS processes and the Scanning process if running. Note the
Proccess ID (PID) of the scanning process. In my output from earlier:

squeeze+ *1480* 396 34 00:16 ? 00:29:53 /usr/bin/perl
/usr/sbin/squeezeboxserver-scanner
--logconfig=/var/lib/squeezeboxserver/prefs/log.conf
--logdir=/var/log/squeezeboxserver/ --priority=0 --novideo --noimage
--prefsdir=/var/lib/squeezeboxserver/prefs --wipe --debug
scan=ERROR,database.info=ERROR,scan.auto=DEBUG,art
work=ERROR,scan.import=ERROR,scan.scanner=ERROR

Renice uses this format:

#> renice <number> -p <pid_from_above>

Default niceness value is 0, 1-19 is REMOVING priority. -1 to -20 is
INCREASING process priority. I did

#> renice 15 -p 1480

And using top I can clearly see that the new Nice value and, within 60
seconds I also saw that the primary LMS process stopped using 100% CPU
and I can now connect to it:

top - 02:33:32 up  3:12,  6 users,  load average: 1.04, 1.24, 1.61
Tasks: 143 total,   2 running, 141 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.6 us,  2.2 sy, 23.0 ni, 74.2 id,  0.0 wa,  0.0 hi,  0.0 si, 
0.0 st
KiB Mem :   949580 total,    26196 free,   297584 used,   625800
buff/cache
KiB Swap:   102396 total,    98372 free,     4024 used.   573788 avail
Mem 

PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+
COMMAND                                            
*1480 squeeze+  35  15  131924 126508   9800 R 100.0 13.3  81:07.40
perl *                                              
396 squeeze+  20   0  142060 135456   9756 S   2.0 14.3  80:21.71
squeezeboxserve                                    
1868 pi        20   0    8536   3440   2868 R   1.0  0.4   0:04.42 top 

1434 root      20   0   12548  10768   4240 S   0.7  1.1   0:52.48
squeezelite-arm  

So, the better question is how I can get LMS to use such a niceness
value by default?


------------------------------------------------------------------------
gstalnaker's Profile: http://forums.slimdevices.com/member.php?userid=63504
View this thread: http://forums.slimdevices.com/showthread.php?t=108720

_______________________________________________
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to