Ubuntu Allocate more resources to a software

Solved
ComCyber Posted messages 12 Status Member -  
mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   -
Hello everyone,

I would like to allocate more resources to an application (KRITA) on my Ubuntu (latest stable LTS version). I know that this can be done on Windows 10 by setting a high or even very high priority for the software we want to increase performance for.

Can we do the same on Ubuntu, and permanently, for these two software (Krita and Chrome) in particular?

Indeed, this computer is only used to run Chrome and Krita.

Thank you for your help!

3 answers

  1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 943
     
    Hello,

    You can use the
    nice
    command.

    To test it, you can run from a terminal:

    nice -n 1 krita


    If you want this change to be permanent, you just need to modify the shortcut you use to launch your application (e.g.
    krita
    or
    chrome
    ) in order to correct the executed command.

    For example, if the command was
    krita
    , you can simply change it to
    nice -n 1 krita
    . You can check that the priority has indeed been modified via
    top
    or a graphical equivalent (e.g.
    ksysguard
    under KDE).

    Finally, the
    renice
    command allows you to change the priority of an already running process.

    That said, the fact that you need to fiddle with the priorities of a process is not necessarily a good sign. You should try to see (e.g. with
    top
    ) what is causing the slowdown. Maybe your system is low on memory and is constantly swapping (in which case, you should consider opting for a less resource-intensive graphical environment and/or adding a RAM stick to your PC).

    Good luck.
    0
  2. ComCyber Posted messages 12 Status Member 1
     
    Thank you for your relevant response!

    I didn't know about the "nice" application or command. I'll look into that.

    Indeed, do you have any advice on how to improve the performance of Ubuntu? Let me explain, I have a rather slow computer (to be honest, it's an HP costing less than €400 with a 1.1 GHz processor, a regular hard drive replaced by a faster traditional hard drive, and 4 Gi of RAM). Windows 10 doesn't run on it because it's too resource-intensive (the processor is always maxed out). I switched to Windows 11 and it completely froze (even though it’s eligible).

    The solution is UBUNTU because it's less resource-hungry. I've lowered the screen resolution which has significantly increased its speed. I'm willing to sacrifice other settings to speed it up further. If you have any other solutions, I’m all ears!

    Thanks again! It’s nice to see people helping us with computing. It's an essential aspect today!

    Best regards, ComCyber :)
    0
  3. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 943
     
    Hello,

    One way to speed it up even further would be to opt for a lighter desktop environment. You just need to install the appropriate package (see the links on the previous page) via the software center or using
    apt
    commands, and when you log in, choose the environment you want to use. Of course, the lighter you go, the more basic it will be, but hey, for launching an application, you don't necessarily need a cutting-edge environment ;-)

    After that, if you want to give your Linux a boost, the best thing is to install it on an SSD and have 4GB of RAM or more.

    Good luck.
    0