• Swap file

    From Albert Arkwright@21:1/5 to All on Sun Jul 17 18:38:00 2022
    Do you see any reason to create a swap file on a system with 24GB ram
    and 200 GB disk space?

    I don't have a swap file but wondered if there will be some improvement
    if 1GB is allocated to the swap file.

    https://i.imgur.com/Areqwn3.png

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike Easter@21:1/5 to Albert Arkwright on Sun Jul 17 10:55:44 2022
    Albert Arkwright wrote:
    Do you see any reason to create a swap file on a system with 24GB ram
    and 200 GB disk space?

    I don't have a swap file but wondered if there will be some improvement
    if 1GB is allocated to the swap file.

    I 'scanned' a couple of articles; I didn't read them carefully because
    there was too much discussion.

    The 'unified' answer is YES, you should have some swap, even if you have
    plenty of ram.

    Some of those answers recommended the swap be zram instead of hdd.

    --
    Mike Easter

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Joerg Lorenz@21:1/5 to All on Sun Jul 17 20:28:41 2022
    Am 17.07.22 um 19:55 schrieb Mike Easter:
    The 'unified' answer is YES, you should have some swap, even if you have plenty of ram.

    Explain why. There is no reason.

    --
    Gutta cavat lapidem (Ovid)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Joerg Lorenz@21:1/5 to All on Sun Jul 17 20:27:52 2022
    Am 17.07.22 um 19:38 schrieb Albert Arkwright:
    Do you see any reason to create a swap file on a system with 24GB ram
    and 200 GB disk space?

    No.

    --
    Gutta cavat lapidem (Ovid)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Moock@21:1/5 to All on Sun Jul 17 21:12:08 2022
    Am Sonntag, 17. Juli 2022, um 18:38:00 Uhr schrieb Albert Arkwright:

    Do you see any reason to create a swap file on a system with 24GB ram
    and 200 GB disk space?

    In case the RAM is full, no application needs to be stopped.
    But I also run Linux without swap on many machines with enough RAM -
    no problems yet because I never used the entire RAM.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bobbie Sellers@21:1/5 to Marco Moock on Sun Jul 17 12:43:14 2022
    On 7/17/22 12:12, Marco Moock wrote:
    Am Sonntag, 17. Juli 2022, um 18:38:00 Uhr schrieb Albert Arkwright:

    Do you see any reason to create a swap file on a system with 24GB ram
    and 200 GB disk space?

    In case the RAM is full, no application needs to be stopped.
    But I also run Linux without swap on many machines with enough RAM -
    no problems yet because I never used the entire RAM.


    So it depends on how hard you are going to be using the machine. If
    your programs and data are large enough to use up the RAM memory then
    you might want to create a similar sized swap so that you don't lose
    anything if some one sends you something bulky.

    Previous owner of very bulky files in the days when 32 Megabytes
    was a large memory.

    bliss - it is all relative and the human race is all relatives.

    --
    bliss dash SF 4 ever at dslextreme dot com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jonathan N. Little@21:1/5 to Joerg Lorenz on Sun Jul 17 15:19:29 2022
    Joerg Lorenz wrote:
    Am 17.07.22 um 19:55 schrieb Mike Easter:
    The 'unified' answer is YES, you should have some swap, even if you have
    plenty of ram.

    Explain why. There is no reason.


    The only reason I would think is if you use hibernate

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike Easter@21:1/5 to Joerg Lorenz on Sun Jul 17 12:50:16 2022
    Joerg Lorenz wrote:
    schrieb Mike Easter:
    The 'unified' answer is YES, you should have some swap, even if you have
    plenty of ram.

    Explain why. There is no reason.

    https://unix.stackexchange.com/questions/190398/do-i-need-swap-space-if-i-have-more-than-enough-amount-of-ram
    Do I need swap space if I have more than enough amount of RAM?

    https://haydenjames.io/linux-performance-almost-always-add-swap-space/
    Linux Performance: Why You Should Almost Always Add Swap Space

    https://superuser.com/questions/810170/should-i-disable-swap-file-if-i-have-lots-of-ram-or-should-i-move-it-to-a-virtua
    Should I disable swap file if I have lots of RAM or should I move it
    to a virtual RAM drive?

    This one even created a table for all kinds of different sizes of ram w/
    & w/o hibernation:

    RAM Size - Swap Size (Without Hibernation) - Swap size (With Hibernation)
    24GB - 5GB - 29GB
    https://itsfoss.com/swap-size/


    --
    Mike Easter

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Joerg Lorenz@21:1/5 to All on Sun Jul 17 22:43:48 2022
    Am 17.07.22 um 22:29 schrieb Joerg Lorenz:
    For this the swap partition would have to be larger than the installed
    RAM. But believe me: Linux will use the HDD/SSD to hibernate even
    without a dedicated swap-partition.

    My Mint machines both have no swap-partition.

    MacBook Pro has a swap-partition of currently 222 MB which is nothing
    given the 16 GB RAM and a utilisation of less than 3 GB RAM. Mac OS is
    managing the thing also on its own.

    --
    Gutta cavat lapidem (Ovid)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Joerg Lorenz@21:1/5 to All on Sun Jul 17 22:29:35 2022
    Am 17.07.22 um 21:19 schrieb Jonathan N. Little:
    Joerg Lorenz wrote:
    Am 17.07.22 um 19:55 schrieb Mike Easter:
    The 'unified' answer is YES, you should have some swap, even if you have >>> plenty of ram.

    Explain why. There is no reason.


    The only reason I would think is if you use hibernate

    For this the swap partition would have to be larger than the installed
    RAM. But believe me: Linux will use the HDD/SSD to hibernate even
    without a dedicated swap-partition.

    My Mint machines both have no swap-partition.


    --
    Gutta cavat lapidem (Ovid)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Joerg Lorenz@21:1/5 to All on Sun Jul 17 22:33:34 2022
    Am 17.07.22 um 21:43 schrieb Bobbie Sellers:
    So it depends on how hard you are going to be using the machine.

    No. Linux is using free HDD/SSD-space for this purpose and manages it on
    its own.

    --
    Gutta cavat lapidem (Ovid)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anton Ertl@21:1/5 to Albert Arkwright on Mon Jul 18 10:49:02 2022
    Albert Arkwright <Albert.Arkwright@gmail.com> writes:
    Do you see any reason to create a swap file on a system with 24GB ram
    and 200 GB disk space?

    I don't have a swap file but wondered if there will be some improvement
    if 1GB is allocated to the swap file.

    If performance is ok as-is, there is little reason to add a swap file.
    In general swapping to HDDs is so slow that I don't recommend it.
    With SSDs it may be better.

    - anton
    --
    M. Anton Ertl Some things have to be seen to be believed anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen http://www.complang.tuwien.ac.at/anton/home.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dan Purgert@21:1/5 to Joerg Lorenz on Mon Jul 18 11:47:34 2022
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA512

    Joerg Lorenz wrote:
    Am 17.07.22 um 21:43 schrieb Bobbie Sellers:
    So it depends on how hard you are going to be using the machine.

    No. Linux is using free HDD/SSD-space for this purpose and manages it on
    its own.

    If you have zero swap, the only available "management" option for the
    kernel is oom-killer.


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

    iQIzBAEBCgAdFiEE3asj+xn6fYUcweBnbWVw5UznKGAFAmLVSG0ACgkQbWVw5Uzn KGBcNRAApeQt/wQIS44fmT3gXdOGXiYSH3F4CE5Yf4ffCBXvxLJXETErzjHJMLkz gYtjWQ41hOYv40ijBlVqBvGVaiSm8Rg8IG1HtqM9cDoQ8/XsL/4CQOY3KIUnPaYV 6fOkuRPtRR4hjaVEEJ1vwrbisfxZJ3zyGfNd65SO1Dqw01Dx5rCryKH1dGkBhJjV qpalboXkVMft0KIP7Eg3QcrZC/Nn8iCoxYIKOj+qhGQTZadEwd56vdWS6lOxoopH D2pM49W4YzrB4+VdaJEX2HILAdmI2Svufk/jApxjd8NJ3wZENkxiUG2bLSCavD5y w7TfKCfx1YYHUJDfYfeJmW3FA0E0T8cnIbL1lsptnnIGbdLHmOqk7zQ5hENmd1Y2 kfDVuXZHiFpMjVHlTc58wc3YhjmfDJF3wKYADrx0YIf6cIJQZAfCnAWiyJc04LUO p66bJpeh140qUt9OL8YXtXA9iLsz1s3PJ/6tJ3+h1xcwIzA3CJX5OF4MlrP+2Cth JuzkyRK/ymh+tPvmDmCHsI0T+Pvrh13GBWNrGKhuSd2QrTNuwa9pjCqemD4noizs l8Ghe6XzUX6lfIJ2ETe3kIdogdYg4jzy2CaaiI+NdAIFbuipUgVZ4d3wJzQNDZCj oJZxMVD3p1EitEI+r2/2L+7c1sZ5K0qxTukBw+Kogef43hzvNps=
    =i1ks
    -----END PGP SIGNATURE-----

    --
    |_|O|_|
    |_|_|O| Github: https://github.com/dpurgert
    |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From bilou@21:1/5 to Albert Arkwright on Tue Jul 19 01:21:59 2022
    On 17/07/2022 19:38, Albert Arkwright wrote:
    Do you see any reason to create a swap file on a system with 24GB ram
    and 200 GB disk space?

    I don't have a swap file but wondered if there will be some improvement
    if 1GB is allocated to the swap file.

    https://i.imgur.com/Areqwn3.png

    A swapfile is a bad thing a swap partition is a good one.
    If your 24G ram system has not got one it is bad.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bit Twister@21:1/5 to Albert Arkwright on Mon Jul 18 20:00:17 2022
    On Sun, 17 Jul 2022 18:38:00 +0100, Albert Arkwright wrote:
    Do you see any reason to create a swap file on a system with 24GB ram
    and 200 GB disk space?

    Disk space is not decision maker unless there is not room for swap partition.


    I don't have a swap file but wondered if there will be some improvement
    if 1GB is allocated to the swap file.


    If you never need swap then there is no need for swap. Since you have
    no swap it is kinda hard to tell if it is needed. Requirement is application dependent.

    On the other hand If you want to hibernate/sleep you need swap to be
    size of ram + 1 meg.

    Take my setup as an example. My web browsing node is used to read mail
    with claws-mail, firefox brwowsing and slrn for Usenet. And yet we see
    $ free -h
    total used free shared buff/cache available
    Mem: 7.8Gi 772Mi 721Mi 14Mi 6.3Gi 6.7Gi
    Swap: 8.0Gi 45Mi 8.0Gi

    On my MythTv node which is only doing Over the Air tv recording/transcribing/showings we see
    # free -h
    total used free shared buff/cache available
    Mem: 5.8Gi 1.3Gi 108Mi 1.0Mi 4.4Gi 4.2Gi
    Swap: 9.3Gi 794Mi 8.5Gi

    My guess is the file integrity / host intrusion detection Environment system (aide)
    is using a whole bunch of ram checking the system for any changes when it runs daily.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Taylor@21:1/5 to bilou on Mon Jul 18 21:55:21 2022
    On 7/18/22 5:21 PM, bilou wrote:
    A swapfile is a bad thing a swap partition is a good one.

    I think a swap partition is better than a swap file.

    I also think that a swap file is better than no swap at all.

    How much swap is situationally dependent.



    --
    Grant. . . .
    unix || die

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