Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1

    Server Priority faulty? LMS 8.2.0 on RPi-OS

    I'm wondering if not Server Priority are faulty on this system running LMS 8.2.0 on RPi-OS?

    Changes I do from LMS Settings are not reflected in htop.

    If I do
    Code:
    sudo renice -5 -u squeezeboxserver
    I can see priorety take place.

  2. #2
    Speculating if the change to systemd are the reason for Service Priority not working on RPi-OS?

    Temporary I've made Material Skin and browsing Music Folder more snappy by adding these two lines to /lib/systemd/system/logitechmediaserver.service
    Code:
    [Service]
    
    #-----------------------------------------------------------------------
    # Set start up parameters, essentially replicating the SysV init script.
    #-----------------------------------------------------------------------
    
    CPUSchedulingPolicy=fifo
    CPUSchedulingPriority=20

  3. #3
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    9,422
    Quote Originally Posted by zzzap View Post
    I'm wondering if not Server Priority are faulty on this system running LMS 8.2.0 on RPi-OS?

    Changes I do from LMS Settings are not reflected in htop.

    If I do
    Code:
    sudo renice -5 -u squeezeboxserver
    I can see priorety take place.
    I've never looked at the priority settings before seeing your post but I see the same. Did you notice any difference after changing priority to -5?

    Sent from my Pixel 3a using Tapatalk

  4. #4
    Quote Originally Posted by slartibartfast View Post
    I've never looked at the priority settings before seeing your post but I see the same. Did you notice any difference after changing priority to -5?

    Sent from my Pixel 3a using Tapatalk
    -5 where only a test to see if lower values where ignored.
    From my old system I had nice set to -18, but configured from LMS.

    Before you alter the service file you can do a simple test
    sudo renice -18 -u squeezeboxserver
    and check if you notice any difference. My RPi3+ is notable faster. (edit: to clearify RPi3+ is not faster. But LMS respond faster)

    Note that CPUSchedulingPriority=20 does actually change the priorety. Nice only negotiate more CPU time. You can see this happen in htop
    Last edited by zzzap; 2022-08-13 at 01:36.

  5. #5
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    9,422
    Seems as though it hasn't worked for a long time. This is from 2014.
    https://forums.slimdevices.com/showthread.php?p=801171

    Sent from my Pixel 3a using Tapatalk

  6. #6
    I did try run LMS as root for test purpose. But it will not start.

  7. #7
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    5,219
    There are lots of posts about this:

    This is lms v 8.3.0 on Bullseye 64 bit Desktop rpi4b 4gb; using top

    Name:  nice.png
Views: 55
Size:  43.4 KB

    Watching it for a while and squeezeboxserver stay at the top (see what I did there ? )

    If I "renice" it to -15 it still stays at the top

    Not sure it is worth bothering about really ?

    ronnie

  8. #8
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    9,422
    Quote Originally Posted by Man in a van View Post
    There are lots of posts about this:

    This is lms v 8.3.0 on Bullseye 64 bit Desktop rpi4b 4gb; using top

    Name:  nice.png
Views: 55
Size:  43.4 KB

    Watching it for a while and squeezeboxserver stay at the top (see what I did there ? )

    If I "renice" it to -15 it still stays at the top

    Not sure it is worth bothering about really ?

    ronnie
    I suppose a good test would be to renice it to +19 to see if it negatively affects it

    Sent from my Pixel 3a using Tapatalk

  9. #9
    Also do a test and see if not browsing Music Folder and Material Skin respond more quickly. Real reason for me spending time on this

    Although my system only having 600Mhz on tap for each core. And as far as I can tell LMS only use a single core when serving its web content.

  10. #10
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    5,219
    Quote Originally Posted by slartibartfast View Post
    I suppose a good test would be to renice it to +19 to see if it negatively affects it

    Sent from my Pixel 3a using Tapatalk


    ronnie@lms:~ $ sudo renice -n 20 18369
    18369 (process ID) old priority 0, new priority 19

    ronnie@lms:~ $ top
    top - 10:33:53 up 1:11, 3 users, load average: 0.05, 0.08, 0.08
    Tasks: 195 total, 1 running, 194 sleeping, 0 stopped, 0 zombie
    %Cpu(s): 0.4 us, 0.5 sy, 1.2 ni, 97.8 id, 0.0 wa, 0.0 hi, 0.1 si, 0.0 st
    MiB Mem : 3794.5 total, 2561.3 free, 474.0 used, 759.2 buff/cache
    MiB Swap: 100.0 total, 100.0 free, 0.0 used. 3185.7 avail Mem

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    18369 squeeze+ 39 19 198860 185324 13976 S 5.0 4.8 0:16.04 squeezeboxserve
    18503 squeeze+ 20 0 2944 580 500 S 1.3 0.0 0:01.70 faad
    18504 squeeze+ 20 0 5904 1868 1620 S 1.0 0.0 0:01.23 flac
    69 root 0 -20 0 0 0 I 0.3 0.0 0:01.80 kworker/u9:0-brcmf_wq/mmc1:0001:1
    889 root 20 0 18852 11952 5452 S 0.3 0.3 0:01.20 python3
    19203 ronnie 20 0 10108 3512 2744 R 0.3 0.1 0:00.29 top
    1 root 20 0 166900 10120 7416 S 0.0 0.3 0:02.47 systemd
    2 root 20 0 0 0 0 S 0.0 0.0 0:00.03 kthreadd
    3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp
    4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par_gp
    8 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq
    I'm not going to sit around watching, though

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •