• Re: [gentoo-user] Video sometimes stuttering. Need help with ionice, ma

    From Michael@21:1/5 to All on Wed Jul 23 19:44:17 2025
    On Wednesday, 23 July 2025 08:18:04 British Summer Time Dale wrote:
    Howdy,

    As most know, I use my puter to watch TV. Most of the time, it works
    fine. On this new rig tho, it does something my much slower old rig
    didn't do. When I need to copy files from one set of drives to another,
    the video stutters a bit. Sometimes it will stop for several seconds
    and it is annoying. I'm thinking ionice might help with this but there
    could also be a option in the kernel that would help as well. There may
    even be another way to make it not do this.

    Would setting ionice somehow for smplayer and its child processes work? Should I try to set ionice within Dolphin, what I usually use to copy
    files over, to make it a lower priority. I'd think setting one program
    would be easier but maybe not. Is there a better way that someone knows
    of that I don't know about? Kernel option maybe??

    Ideas on best way to correct this? If you need info, let me know. I
    can attach the kernel config or grep for certain options if needed.

    Thanks.

    Dale

    :-) :-)

    In the first instance you should set a suitable scheduler for your drive(s).
    I understand with SSD the 'Deadline' is appropriate, but at least for spinning drives you should give BFQ a try. You can red about BFQ here:

    Documentation/block/bfq-iosched.rst


    If you prefer, you can even switch the IO scheduler in real time while monitoring performance, to verify which IO scheduler works best for your use case:

    Documentation/block/switching-sched.rst


    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmiBLYEACgkQseqq9sKV ZxnBjBAAiHgQdzHf9Ynf9HxjuioYO9bzS3+LhqLQtXXeQ6RdcQvapdINf3VTuk0P vH3vrgagtpAOEZ2KZAm3we1VfGX1BTVML/CdbM+HkiIKTTPlHsmua7VkUGn7FTz6 P+VduJGWedQF92vzgqtKouUvCG/J+G/HX/X8T11lSgzx119icZoiVvkF1Y3vMIOS 9e4xz5PE9bIA7ytYjo4wZWA1GJcD7ZvUgdC8137QjMwfLCVedFyoGe/YWnx/qdu5 ILg0dg1GYe1wnvasH4vuCGGB6rQE6EzLUAKfSUkV8ufJNowYQxFzWfRjYJ1SCa9I ZqGR3CvBCe3xKJgclBkFwiF3ZEiWmYH+bVPabK8/sdZvkFS0XBSnlNVexxRKM3Ts 7nq7fvUq1M+bQXjkqVrt/Y/pPlkN8SUurxt44lh47d+56dcEvmutpfFwZgSgqQsg ISUH0mAdGK4GYbB+aYRuyFzkBihDPQo64gsyjjHq/YuPhOZ4yc4tV7/X6wQDwwAN arXvo+SSqfJnJ+idhOQqmUMrbUQgwhqDKaBmqHVUyD8AphuU7HJ7s1AKPZOK7iRQ h6CNV1y/SV3Un961BSKyusjBpWYmIvk/x0kbkKD14nCwhBANT7afVAzmuZcDQW4N kI2fV/UAQqF2uYB6+1S9SafeB1WcxvWn1yhIAsaAhxJc+gxx3IE=
    =abeY
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Thu Jul 31 14:22:56 2025
    On Thursday, 31 July 2025 12:25:01 British Summer Time Dale wrote:
    Peter Humphrey wrote:
    On Wednesday, 30 July 2025 18:25:00 British Summer Time Dale wrote:
    I rebooted the new kernel and the BFQ setting is doing a GREAT job. I've >> copied several GBs of data since the change and my videos play like a
    champ. I've yet to see a single stutter or pause.

    Have you selected either of the other schedulers as well?

    From my understanding, you can only select one at a time. So far, this
    is working wonderfully. A lot better than the previous one. What
    scheduler ones uses depends on what one needs. For some applications,
    others may work better. For what I need, BFQ is awesome.

    Can one use more than one at a time?

    Dale

    :-) :-)

    With more than one scheduler trying to manage the IO data queues on the
    device, which scheduler will win the fight? The scheduler which messes up the others' queues faster? LOL! :-)

    On multi-queue SSDs the difference between IO schedulers is small, so setting it to none (noop) removes any pointless kernel load. However, some have reported mq-deadline performed slightly better on their gear.

    A quick test will prove what scheduler suits best each use case.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmiLbjAACgkQseqq9sKV ZxnIkxAAlVafZTx0KJZryAxe6sXvNz/a9jJUxYRuXOlFOYTSLx4v/k/t4YjtauiK q18FEAMegOIz7YpHQkuygEY0yPmcsAhLN1pDNTrnqvQ0cTPUDqA+KqOdR6MC7mwl 1ylpJhbCuDuavM00IF+kTkXlvlcAZcLb2Uq/3uRGxw50xw7aW2ExksdHBkPe6mev 2P0N8MYoBRT4xM6/cELDV7h6wNsODXGdFbJDxwn3tjLulYCMnufl8tv+Xt0a3qaY K5dH31L8t812zOTY3IrS6WRd0MmSrlVW1g1LMre9QgodVbOVhcI2O5wtnMdig95O FbF5M+7h97tCku03nMvrMy+SjBA/9YY93VF1GxOOhSy8dZ1JZHt3Ns8K+y5UEkKC gUeQiY+RWEa4C4Q0iC08MQkm//yh9AEdArUnFr28BYTuK+yMmg+GGxXiFgRB5FZN EUO83oRM0jJ/5oevz6TKS3bX6nBgcUEhqz00QJ8lUe8sLViIo5UcHOg2W3gMGBGb vLhqK9+LGDVgF+yo0WleW7Ad9FBI8TmoHPjiltp2RRfLze6yUcCxcVkse7FSnUk/ 9j9Fht1fiDFuwlHteZc2re6YTA1lcUFryqmhuFgCTB8r7E2U2GU6XPUB3gYag8Vt aMsq7qVgE5CMErSA/oVMHS4nwAFlDltgBkvPVK++sjFXswWQyOM=
    =22fF
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Thu Jul 31 12:40:02 2025
    On Wednesday, 30 July 2025 18:25:00 British Summer Time Dale wrote:

    I rebooted the new kernel and the BFQ setting is doing a GREAT job. I've copied several GBs of data since the change and my videos play like a
    champ. I've yet to see a single stutter or pause.

    Have you selected either of the other schedulers as well?

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)