Wrong swap info

Hi all,

I have a fresh installation of KDE.
Manual partitions


I set for swap partitions 12 GB, as it shows in Gparted.
but in System info it shows 17.7 GB.

Did I missed something or it is ok ?

> ╭─marko at hpenvy in ⌁
> ╰─λ inxi -Fazy
> System:
>   Kernel: 5.9.11-zen2-1-zen x86_64 bits: 64 compiler: gcc v: 10.2.0
>   parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
>   root=UUID=214ec332-14e2-41bb-b0a6-6be73b2a9c71 rw [email protected] quiet
>   splash rd.udev.log_priority=3 vt.global_cursor_default=0
>   systemd.unified_cgroup_hierarchy=1
>   resume=UUID=1104e77a-7374-4db5-8618-de24099d2618 loglevel=3
>   Desktop: KDE Plasma 5.20.4 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11
>   dm: SDDM Distro: Garuda Linux
> Machine:
>   Type: Convertible System: HP product: HP ENVY x360 Convertible 13-ar0xxx
>   v: N/A serial: <filter> Chassis: type: 31 serial: <filter>
>   Mobo: HP model: 85DE v: 41.36 serial: <filter> UEFI: AMI v: F.19
>   date: 12/26/2019
> Battery:
>   ID-1: BAT0 charge: 50.5 Wh condition: 50.5/50.5 Wh (100%) volts: 17.3/15.4
>   model: 333-2B-49-A KC04053XL type: Li-ion serial: <filter> status: Full
>   Device-1: hid-0018:04F3:23B9.0004-battery model: ELAN2514:00 04F3:23B9
>   serial: N/A charge: N/A status: N/A
> CPU:
>   Info: Quad Core model: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
>   bits: 64 type: MT MCP arch: Zen+ family: 17 (23) model-id: 18 (24)
>   stepping: 1 microcode: 8108102 L2 cache: 2048 KiB
>   flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
>   bogomips: 33538
>   Speed: 1273 MHz min/max: 1400/2100 MHz boost: disabled Core speeds (MHz):
>   1: 1273 2: 1472 3: 1674 4: 1352 5: 1763 6: 1668 7: 1660 8: 1354
>   Vulnerabilities: Type: itlb_multihit status: Not affected
>   Type: l1tf status: Not affected
>   Type: mds status: Not affected
>   Type: meltdown status: Not affected
>   Type: spec_store_bypass
>   mitigation: Speculative Store Bypass disabled via prctl and seccomp
>   Type: spectre_v1
>   mitigation: usercopy/swapgs barriers and __user pointer sanitization
>   Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP:
>   disabled, RSB filling
>   Type: srbds status: Not affected
>   Type: tsx_async_abort status: Not affected
> Graphics:
>   Device-1: AMD Picasso vendor: Hewlett-Packard driver: amdgpu v: kernel
>   bus ID: 04:00.0 chip ID: 1002:15d8
>   Device-2: Lite-On HP Wide Vision HD Camera type: USB driver: uvcvideo
>   bus ID: 3-1:2 chip ID: 04ca:709d
>   Display: x11 server: X.org 1.20.9 compositor: kwin_x11 driver: amdgpu,ati
>   unloaded: modesetting alternate: fbdev,vesa resolution: <missing: xdpyinfo>
>   OpenGL: renderer: AMD Radeon Vega 8 Graphics (RAVEN DRM 3.39.0
>   5.9.11-zen2-1-zen LLVM 11.0.0)
>   v: 4.6 Mesa 20.2.3 direct render: Yes
> Audio:
>   Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Hewlett-Packard
>   driver: snd_hda_intel v: kernel bus ID: 04:00.1 chip ID: 1002:15de
>   Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
>   vendor: Hewlett-Packard driver: N/A
>   alternate: snd_pci_acp3x, snd_rn_pci_acp3x bus ID: 04:00.5
>   chip ID: 1022:15e2
>   Device-3: AMD Family 17h HD Audio vendor: Hewlett-Packard
>   driver: snd_hda_intel v: kernel bus ID: 04:00.6 chip ID: 1022:15e3
>   Sound Server: ALSA v: k5.9.11-zen2-1-zen
> Network:
>   Device-1: Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter
>   vendor: Hewlett-Packard driver: rtw_8822be v: N/A modules: rtw88_8822be
>   port: f000 bus ID: 02:00.0 chip ID: 10ec:b822
>   IF: wlo1 state: up mac: <filter>
> Drives:
>   Local Storage: total: 476.94 GiB used: 7.71 GiB (1.6%)
>   SMART Message: Unable to run smartctl. Root privileges required.
>   ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEKNW512G8H size: 476.94 GiB
>   block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4
>   serial: <filter> rev: HPS0 scheme: GPT
> Partition:
>   ID-1: / raw size: 464.44 GiB size: 464.44 GiB (100.00%)
>   used: 7.71 GiB (1.7%) fs: btrfs dev: /dev/nvme0n1p3
>   ID-2: /home raw size: 464.44 GiB size: 464.44 GiB (100.00%)
>   used: 7.71 GiB (1.7%) fs: btrfs dev: /dev/nvme0n1p3
>   ID-3: /var/log raw size: 464.44 GiB size: 464.44 GiB (100.00%)
>   used: 7.71 GiB (1.7%) fs: btrfs dev: /dev/nvme0n1p3
>   ID-4: /var/tmp raw size: 464.44 GiB size: 464.44 GiB (100.00%)
>   used: 7.71 GiB (1.7%) fs: btrfs dev: /dev/nvme0n1p3
> Swap:
>   Kernel: swappiness: 10 (default 60) cache pressure: 75 (default 100)
>   ID-1: swap-1 type: partition size: 12.00 GiB used: 0 KiB (0.0%) priority: -2
>   dev: /dev/nvme0n1p2
>   ID-2: swap-2 type: zram size: 734.5 MiB used: 0 KiB (0.0%) priority: 32767
>   dev: /dev/zram0
>   ID-3: swap-3 type: zram size: 734.5 MiB used: 0 KiB (0.0%) priority: 32767
>   dev: /dev/zram1
>   ID-4: swap-4 type: zram size: 734.5 MiB used: 0 KiB (0.0%) priority: 32767
>   dev: /dev/zram2
>   ID-5: swap-5 type: zram size: 734.5 MiB used: 0 KiB (0.0%) priority: 32767
>   dev: /dev/zram3
>   ID-6: swap-6 type: zram size: 734.5 MiB used: 0 KiB (0.0%) priority: 32767
>   dev: /dev/zram4
>   ID-7: swap-7 type: zram size: 734.5 MiB used: 0 KiB (0.0%) priority: 32767
>   dev: /dev/zram5
>   ID-8: swap-8 type: zram size: 734.5 MiB used: 0 KiB (0.0%) priority: 32767
>   dev: /dev/zram6
>   ID-9: swap-9 type: zram size: 734.5 MiB used: 0 KiB (0.0%) priority: 32767
>   dev: /dev/zram7
> Sensors:
>   System Temperatures: cpu: 49.0 C mobo: 45.0 C gpu: amdgpu temp: 49.0 C
>   Fan Speeds (RPM): N/A
> Info:
>   Processes: 294 Uptime: 10m wakeups: 949 Memory: 5.74 GiB
>   used: 2.88 GiB (50.2%) Init: systemd v: 246 Compilers: gcc: 10.2.0
>   clang: 11.0.0 Packages: pacman: 1015 lib: 271 Shell: fish v: 3.1.2
>   running in: alacritty inxi: 3.1.09
> ╭─marko at hpenvy in ⌁

Thanks


Edit by SGS, please use ~~~ at first and last line.

In terminal

lsblk          
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT

zram0  253:0    0   1,9G  0 disk [SWAP]
zram1  253:1    0   1,9G  0 disk [SWAP]
zram2  253:2    0   1,9G  0 disk [SWAP]
zram3  253:3    0   1,9G  0 disk [SWAP]
zram4  253:4    0   1,9G  0 disk [SWAP]
zram5  253:5    0   1,9G  0 disk [SWAP]
1 Like
> λ lsblk
> NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
> zram0       254:0    0 734,5M  0 disk [SWAP]
> zram1       254:1    0 734,5M  0 disk [SWAP]
> zram2       254:2    0 734,5M  0 disk [SWAP]
> zram3       254:3    0 734,5M  0 disk [SWAP]
> zram4       254:4    0 734,5M  0 disk [SWAP]
> zram5       254:5    0 734,5M  0 disk [SWAP]
> zram6       254:6    0 734,5M  0 disk [SWAP]
> zram7       254:7    0 734,5M  0 disk [SWAP]
> nvme0n1     259:0    0 476,9G  0 disk
> ├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
> ├─nvme0n1p2 259:2    0    12G  0 part [SWAP]
> └─nvme0n1p3 259:3    0 464,4G  0 part /run/timeshift/backup
1 Like

Youre swap + zram = :slight_smile:

1 Like

Is this ok ? Should I try new installation but with less swap ? I am totally confused ,hehe

All fine, if possible buy more RAM :slight_smile:

2 Likes

Nope, not possible. I need to buy new laptop than, because 8 gb is max for this laptop, unfortunately

2 Likes

No.

You have 12GB swap on the physical disk.

You have another 6GB of "virtual" swap within RAM.

The RAM-based "virtual" swap is used first and so helps keep paging away from the disk-based swap.

Having the disk-based swap is a good thing as it allows old pages to be swapped to disk, provides extra capacity, and allows you to hibernate your PC.

7 Likes

Thanks @jonathon for your explanation.

Now it is clear. Well explained :slight_smile:

2 Likes