You are Here:
Linux Lite 7.0 RC1 Released - See Release Announcement Section



about swap

Author (Read 12458 times)

0 Members and 1 Guest are viewing this topic.

Re: about swap
« Reply #3 on: January 29, 2024, 10:18:27 AM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1484
    Posts
  • Reputation: 215
  • Linux Lite Member
    • View Profile
    • dbts-analytics.com

  • CPU: i7 4 cores 8 threads

  • MEMORY: 16Gb

  • VIDEO CARD: Intel HD graphics

  • Kernel: 5.x
Nowadays swap is is quite relative to what a user is asking the system to do. Tweaking it one way or the other depends on the frequency of heavy loads on the system, i/e you may be back-grounding data analysis while browsing or running an office application. Torrent could also depend on the speed capability of your network card and its distribution across the internal port limitations which may access out slower recall pages to avoid bottlenecks. In Debian this has been a source of argument ever since onboard RAM began to exceed 4G. Years ago swap always used a partition which was equal to the available RAM. This is no longer the case and default Debian installs a 1G swap file or partition. Performance tweaking depends specifically on user needs. Many things can cause the use of swap regardless of available memory and usually the reasons for swap usage are advantageous and sensible. Finally it's difficult in some cases to change an application's memory mapping once it has mapped to swap, meaning reducing swappiness to lower numbers (go from 60 to 0) may not change a specific application's mapping and performance will get worse rather than better. In certain cases (heavy VM usage) vfs_cache pressure settings can affect performance as well. I guess the upshot here is that though your system seems to swapping out for no reason (though memory utilities that measure available RAM are generally inaccurate) it is probably advantageous that it is. If this was a specific single use occurrence I would stay with the default settings.
TC     
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: about swap
« Reply #2 on: January 29, 2024, 08:54:25 AM »
 

stevef

  • Global Moderator
  • Gold Level Poster
  • *****
  • 840
    Posts
  • Reputation: 148
  • Linux Lite Member
    • View Profile

  • CPU: Intel Core i5-4460

  • MEMORY: 16Gb

  • Kernel: 5.x
There's an article at this link, mainly about swappiness but it includes a brief overview of the swap trigger thresholds.

https://www.howtogeek.com/449691/what-is-swapiness-on-linux-and-how-to-change-it/#when-does-swap-actually-cut-in
clueless
 

about swap
« Reply #1 on: January 27, 2024, 08:22:56 AM »
 

Manessa

  • New to Forums
  • *
  • 3
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: 6

  • MEMORY: 8Gb

  • VIDEO CARD: Intel uhd grafics
I have a slightly strange question. I noticed that I have 8 GB of RAM, and when I consume 4 GB of RAM (I launched a torrent), and the RAM is not completely full, then for some reason the system goes into swap, although the memory is still remained. Why is this happening?
 

 

-->
X Close Ad

Linux Lite 7.0 RC1 Released - See Release Announcement Section