| 20 Apr 2025 |
K900 | Swap is where things you don't use are dumped from memory | 15:31:26 |
K900 | * Swap is where things you don't use are dumped to from memory | 15:31:29 |
K900 | Yeah | 15:31:38 |
Andrew | well, yes, but are they dumped because there is more free space for that? or will this not happen if swap is disabled? | 15:35:40 |
Andrew | * well, yes, but are they dumped because there is more free space for that? or will this not happen if swap is disabled? | 15:35:49 |
Andrew | * well, yes, but are they dumped because there is more free space for that? will the same amount of memory be allocated if swap was disabled? | 15:36:25 |
K900 | If it doesn't happen, things will be kept in RAM | 15:36:15 |
Andrew | So my RAM usage would be 13.8 GiB by now? | 15:38:10 |
K900 | Swap should not count to your RAM usage | 15:38:21 |
Andrew | it should not? | 15:38:52 |
K900 | Generally no | 15:39:02 |
K900 | It's another thing | 15:39:04 |
K900 | That is used in addition to RAM | 15:39:08 |
Andrew | I always thought it's an extension of RAM. | 15:39:14 |
K900 | It is, but it also isn't | 15:39:24 |
Andrew | * I always thought it's an extension of RAM, because you don't have enough of it. | 15:39:29 |
Andrew | bruh | 15:39:34 |
K900 | Swap is basically a second storage space | 15:40:22 |
K900 | Where things that are not actively used in memory get offloaded ot | 15:40:36 |
K900 | * Where things that are not actively used in memory get offloaded to | 15:40:37 |
Andrew | I fear that if I were to remove swap now, it will populate ram and my system will choke to death again. Or very soon, since 13.8 GiB for idle system is way too much. | 15:41:49 |
Andrew | And I already experienced permanent freeze when doing swapoff. | 15:43:10 |
K900 | A lot of that is disk cache | 15:43:21 |
Andrew | And what does that change? | 15:44:18 |
Andrew | total used free shared buff/cache available
Mem: 15Gi 12Gi 167Mi 1.0Gi 3.8Gi 2.6Gi
Swap: 0B 0B 0B
| 15:50:56 |
Andrew | so the cached, available, free decreased, while used increased. And swapped converted from 7.4 GiB on disk, to 6.3 in RAM. | 15:52:49 |
Andrew | I stopped swapspace. Now I wanna know if these 12.5 GiB will die down a bit over time, or will it increase over time and freeze my system. | 15:54:02 |
K900 | It's complicated | 15:55:05 |
K900 | That's not how it works | 15:55:19 |
K900 | Unused RAM is wasted RAM | 15:55:25 |