Results 1 to 4 of 4

Thread: Thinkpad T 520 with 4 Gigs ; created a swap-file: what do you say to this performance

  1. #1
    Join Date
    Sep 2024
    Beans
    8

    Thinkpad T 520 with 4 Gigs ; created a swap-file: what do you say to this performance

    dear community

    i run a thinkpad with a linux

    the notebook has got 4 g of ram

    i have created a SWAP file: see below what i have done:;



    Code:
    [martin@martin-4243f53 ~]$ sudo swapon --show
    [sudo] Passwort für martin: 
    NAME      TYPE SIZE USED PRIO
    /swapfile file 1,9G   0B   -2

    question; How to adjust the swappiness value: do i need to use the swappiness-option:

    note: Swappiness is a Linux kernel property - a option that may help here: swapiness defines how often the system will use the swap space.
    well do you think that i need Swappiness to improve the behavior:

    swapiness - friends told me that it can have a value between 0 and 100. A low value will make the kernel to try to avoid swapping whenever possible,
    while a higher value will make the kernel to use the swap space more aggressively.
    The default swappiness value is told to be somewhat like 60. Friends told me that i can check the current swappiness value by typing the following command:


    Code:
    [martin@martin-4243f53 ~]$ cat /proc/sys/vm/swappiness
    60
    
    Für weitere Einzelheiten siehe free(1).
    [martin@martin-4243f53 ~]$ sudo free -h
    [sudo] Passwort für martin: 
                  gesamt       benutzt     frei      gemns.  Puffer/Cache verfügbar
    Speicher:      3,7Gi       2,3Gi       560Mi       316Mi       1,4Gi       1,4Gi
    Swap:          1,9Gi          0B       1,9Gi
    [martin@martin-4243f53 ~]$
    well over all - what do you say - what can i do to get a good performance!?

    any and all idas are wellcome

    look forward !

  2. #2
    Join Date
    Dec 2014
    Beans
    2,711

    Re: Thinkpad T 520 with 4 Gigs ; created a swap-file: what do you say to this perform

    Swapping always impacts performance negatively because no matter how fast a drive is it is slower than RAM by orders of magnitude. 4 GB of RAM are enough for a lot of things, with the important exception of web browsers which have developed over the last two decades into RAM-devouring monstrosities. I know from experience that running Firefox on a system with 4 GB is horribly slow and - if you open too many tabs or pages which use especially memory hungry features - potentially unstable. Your best option is to get more RAM. A quick search tells me that the T520 can take up to 16 GB of RAM.

    Holger

  3. #3
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Thinkpad T 520 with 4 Gigs ; created a swap-file: what do you say to this perform

    Besides more RAM, faster drive also helps. And a lighter weight flavor.

    I have used my external SSD with Kubuntu on my 2006 laptop with only 1.5GGB. With full install to old slow internal HDD, it would go gray for 2 sec while it swapped to HDD if I loaded too many programs at once. With SSD, it was very quick, but I still only tried to load a minimal set of applications at once.
    Laptop would not even install Ubuntu. It installed server & I was able to add a lightweight gui. I was a bit surprised that Kbuntu installed and worked reasonably well. But SSD made it even better. Kubuntu is more of a mid-weight flavor.

    https://ubuntu.com/download/flavours
    Light weight flavors:
    Lubuntu, Xubuntu, Ubuntu MATE, Budgie
    Flavors of Ubuntu only come with three years of supported life (five years applies to Ubuntu Desktop, Ubuntu Server but not flavors)
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #4
    Join Date
    Oct 2019
    Beans
    85

    Re: Thinkpad T 520 with 4 Gigs ; created a swap-file: what do you say to this perform

    Quote Originally Posted by alsacien View Post
    dear community

    i run a thinkpad with a linux

    the notebook has got 4 g of ram

    i have created a SWAP file: see below what i have done:;



    Code:
    [martin@martin-4243f53 ~]$ sudo swapon --show
    [sudo] Passwort für martin: 
    NAME      TYPE SIZE USED PRIO
    /swapfile file 1,9G   0B   -2

    question; How to adjust the swappiness value: do i need to use the swappiness-option:

    note: Swappiness is a Linux kernel property - a option that may help here: swapiness defines how often the system will use the swap space.
    well do you think that i need Swappiness to improve the behavior:

    swapiness - friends told me that it can have a value between 0 and 100. A low value will make the kernel to try to avoid swapping whenever possible,
    while a higher value will make the kernel to use the swap space more aggressively.
    The default swappiness value is told to be somewhat like 60. Friends told me that i can check the current swappiness value by typing the following command:


    Code:
    [martin@martin-4243f53 ~]$ cat /proc/sys/vm/swappiness
    60
    
    Für weitere Einzelheiten siehe free(1).
    [martin@martin-4243f53 ~]$ sudo free -h
    [sudo] Passwort für martin: 
                  gesamt       benutzt     frei      gemns.  Puffer/Cache verfügbar
    Speicher:      3,7Gi       2,3Gi       560Mi       316Mi       1,4Gi       1,4Gi
    Swap:          1,9Gi          0B       1,9Gi
    [martin@martin-4243f53 ~]$
    well over all - what do you say - what can i do to get a good performance!?

    any and all idas are wellcome

    look forward !
    How come you can't ask your 'friends' who told you about this for information? And haven't you asked about swap many many many times over the 10+yrs you've been using linux?
    https://forums.opensuse.org/t/settin...ap-42-1/118206

Bookmarks

Posting Permissions

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