Announcement

Collapse
No announcement yet.

Kubuntu 26.04 LTS - important things to do after an installation

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Originally posted by JoshiFresa View Post
    In my case I have 32 Gb of Ram to avoid swapping as much as possible. You're saying that you've gone to zero swapping if I understand correctly. I think that's what I'm looking for myself. What is the correct command to operate it if you think that it can work in my conditions?
    No. Swappiness is a strange thing. Even with large amounts of ram, some systems still want to access swap at times, even just a tiny bit. The swappiness setting is just how much this might be delayed. The tendency to hit swap sooner *seems* to have improved in my usage, from that 8gb laptop (which seldom ever seems to access swap) and even 32Gb systems do.

    Basically, if you are not experiencing issues, don't mess with it. I, personally, have not had to mess with it myself, despite the same hardware needing it in the recent past.


    if you want zero swapping, then don't have a swap.
    Self-built: Asus PRIME B550M-K/Ryzen 5600GT/32Gb/Intel ARC B580 12Gb/KDE neon
    HP Elitedesk 800 G3 Mini: i5-7500T(35w)/32Gb/Kubuntu LTS
    HP Chromebook 14: i5-1135G7/8Gb/512Gb SSD/KDE Linux

    Comment


      #17
      Originally posted by claydoh View Post
      No. Swappiness is a strange thing. Even with large amounts of ram, some systems still want to access swap at times, even just a tiny bit. The swappiness setting is just how much this might be delayed. The tendency to hit swap sooner *seems* to have improved in my usage, from that 8gb laptop (which seldom ever seems to access swap) and even 32Gb systems do.
      Basically, if you are not experiencing issues, don't mess with it. I, personally, have not had to mess with it myself, despite the same hardware needing it in the recent past.
      if you want zero swapping, then don't have a swap.
      Thanks, much appreciated clarification.

      Comment


        #18
        Claydoh hi, look at this page: https://askubuntu.com/questions/1039...ure-swappiness

        In his description it says:

        Which swappiness should I use?


        I highly recommend vm.swappiness=0! It makes my machine run soooo much better. From my anecdote in my answer here:
        I have found that setting swappiness to 0 significantly improves the performance of my system which has 32 GB RAM, a 64 GB swap file on a high-speed m.2 SSD, and which is continually running out of RAM.

        With swappiness set to the default of 60, I'd regularly get 1 to 2 minute lockup periods while kswapd0 is running (as shown by top) to try to swap memory for some memory hog application like Chrome, Slack, Eclipse, or Google Meet (within Chrome). I'd start to get these lockups at 80% full RAM. The computer would be completely unusable during this time--unable even for me to type into a terminal or click on a menu.

        Setting swappiness to 0 significantly helped!. I started not getting really high CPU usage until 90% RAM full, swap space would still get used plenty--but more efficiently, and when my RAM did get almost full my computer would become very sluggish, but still barely usable rather than completely unusable!

        See some of my symptoms here, which I originally thought were due to a bug in Google Meet, but now think were due to memory swap making my computer slow: https://github.com/ElectricRCAircraf...sue-1177137900



        Is it random or serious allegation?
        And if I would choose to try swappiness=0 what is the best command to make it permanent, not just for the current session?
        Last edited by JoshiFresa; Today, 09:10 PM.

        Comment


          #19
          I have never seen setting it to 0 disable it. That does not mean the top response on the page is wrong.

          But if you want to test, then make permanent, just follow the howto from Schwarzer Kater and test changes for a number of days.


          Self-built: Asus PRIME B550M-K/Ryzen 5600GT/32Gb/Intel ARC B580 12Gb/KDE neon
          HP Elitedesk 800 G3 Mini: i5-7500T(35w)/32Gb/Kubuntu LTS
          HP Chromebook 14: i5-1135G7/8Gb/512Gb SSD/KDE Linux

          Comment

          Users Viewing This Topic

          Collapse

          There is 1 user viewing this topic.

          Working...
          X