| 20 Apr 2025 |
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 |
Andrew | no, free RAM is wasted RAM | 15:57:38 |
Andrew | available RAM is what I need to compile stuff and what not. | 15:58:19 |
Andrew | If it will stay idle on 85%, then I won't be able to do anything. | 15:58:42 |
Andrew | After I opened Firefox and it peaked at 14.1, I then opened Element and it died with permanent flashbang instead of UI, so I had to restart the client. | 15:59:41 |
Andrew | total used free shared buff/cache available
Mem: 15Gi 14Gi 158Mi 1.1Gi 2.2Gi 895Mi
Swap: 0B 0B 0B
| 16:00:14 |
Andrew | Yeah, I don't wanna open a Rust project with 1 GiB to spare... | 16:01:20 |
Andrew | Download images.zip | 16:06:01 |
Andrew | Now I can see everything, since there is no swap:
59Mi 60197 fs/btrfs/inode.c:7694 [btrfs] func:btrfs_alloc_inode
70Mi 17882 drivers/iommu/dma-iommu.c:920 func:__iommu_dma_alloc_pages
84Mi 21252 arch/x86/mm/pgtable.c:44 func:pte_alloc_one
94Mi 4242 mm/slub.c:2425 func:alloc_slab_page
117Mi 29803 fs/btrfs/extent_io.c:631 [btrfs] func:btrfs_alloc_page_array
149Mi 38113 mm/memory.c:1062 func:folio_prealloc
392Mi 100167 fs/btrfs/compression.c:477 [btrfs] func:add_ra_bio_pages
699Mi 57225 mm/slub.c:2423 func:alloc_slab_page
1.2Gi 2790 drivers/gpu/drm/ttm/ttm_pool.c:97 [ttm] func:ttm_pool_alloc_page
1.5Gi 392553 mm/readahead.c:186 func:ractl_alloc_folio
1.8Gi 450592 mm/memory.c:1060 func:folio_prealloc
8.4Gi 2188492 mm/swap_state.c:476 func:__read_swap_cache_async
| 16:06:20 |
K900 | That's not really how it works | 16:06:38 |