Use a dedicated swap partition

Garuda-inxi given below -

System:
  Kernel: 5.19.10-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=ec56f045-0b46-48cb-ad41-c68705366f20 rw [email protected]
    quiet
    cryptdevice=UUID=a67a8316-52c4-4a8e-b15d-27bb91d58197:luks-a67a8316-52c4-4a8e-b15d-27bb91d58197
    root=/dev/mapper/luks-a67a8316-52c4-4a8e-b15d-27bb91d58197 quiet splash
    rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
  Desktop: KDE Plasma v: 5.25.5 tk: Qt v: 5.15.6 info: latte-dock
    wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: Micro-Star product: GL62M 7RD v: REV:1.0
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Micro-Star model: MS-16J9 v: REV:1.0 serial: <superuser required>
    UEFI: American Megatrends v: E16J9IMS.324 date: 03/23/2018
Battery:
  ID-1: BAT1 charge: 27.5 Wh (100.0%) condition: 27.5/43.2 Wh (63.7%)
    volts: 12.2 min: 10.8 model: MSI BIF0_9 type: Li-ion serial: N/A
    status: full
CPU:
  Info: model: Intel Core i7-7700HQ bits: 64 type: MT MCP arch: Kaby Lake
    gen: core 7 level: v3 built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 9 microcode: 0xF0
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 2587 high: 2800 min/max: 800/3800 scaling:
    driver: intel_pstate governor: powersave cores: 1: 2800 2: 1098 3: 2800
    4: 2800 5: 2800 6: 2800 7: 2800 8: 2800 bogomips: 44798
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS, IBPB: conditional, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel HD Graphics 630 vendor: Micro-Star MSI driver: i915
    v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports:
    active: eDP-1 empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0
    chip-ID: 8086:591b class-ID: 0300
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] vendor: Micro-Star MSI
    driver: nvidia v: 515.76 alternate: nouveau,nvidia_drm non-free: 515.xx+
    status: current (as of 2022-08) arch: Pascal code: GP10x
    process: TSMC 16nm built: 2016-21 pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0 chip-ID: 10de:1c8d
    class-ID: 0302
  Device-3: Acer BisonCam NB Pro type: USB driver: uvcvideo bus-ID: 1-11:4
    chip-ID: 5986:0683 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.3
    compositor: kwin_x11 driver: X: loaded: modesetting,nvidia
    unloaded: nouveau alternate: fbdev,intel,nv,vesa gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: ChiMei InnoLux 0x15d2 built: 2015 res: 1920x1080
    hz: 60 dpi: 142 gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 394mm (15.5")
    ratio: 16:9 modes: 1920x1080
  OpenGL: renderer: Mesa Intel HD Graphics 630 (KBL GT2) v: 4.6 Mesa 22.1.7
    direct render: Yes
Audio:
  Device-1: Intel CM238 HD Audio vendor: Micro-Star MSI driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a171 class-ID: 0403
  Sound Server-1: ALSA v: k5.19.10-zen1-1-zen running: yes
  Sound Server-2: PulseAudio v: 16.1 running: no
  Sound Server-3: PipeWire v: 0.3.58 running: yes
Network:
  Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0
    chip-ID: 8086:24fb class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  Device-2: Qualcomm Atheros QCA8171 Gigabit Ethernet
    vendor: Micro-Star MSI driver: alx v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: d000 bus-ID: 03:00.0 chip-ID: 1969:10a1 class-ID: 0200
  IF: enp3s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Wireless-AC 3168 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 1-10:3 chip-ID: 8087:0aa7 class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 931.51 GiB used: 81.83 GiB (8.8%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: HGST (Hitachi) model: HTS721010A9E630
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B
    speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter> rev: A3U0
    scheme: GPT
Partition:
  ID-1: / raw-size: 65.19 GiB size: 65.19 GiB (100.00%) used: 10.91 GiB
    (16.7%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-a67a8316-52c4-4a8e-b15d-27bb91d58197
  ID-2: /boot/efi raw-size: 500 MiB size: 499 MiB (99.80%) used: 984 KiB
    (0.2%) fs: vfat dev: /dev/sda2 maj-min: 8:2
  ID-3: /home raw-size: 65.19 GiB size: 65.19 GiB (100.00%) used: 10.91 GiB
    (16.7%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-a67a8316-52c4-4a8e-b15d-27bb91d58197
  ID-4: /var/log raw-size: 65.19 GiB size: 65.19 GiB (100.00%) used: 10.91
    GiB (16.7%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-a67a8316-52c4-4a8e-b15d-27bb91d58197
  ID-5: /var/tmp raw-size: 65.19 GiB size: 65.19 GiB (100.00%) used: 10.91
    GiB (16.7%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-a67a8316-52c4-4a8e-b15d-27bb91d58197
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 7.68 GiB used: 505 MiB (6.4%) priority: 100
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 14.9 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/sda5 maj-min: 8:5
Sensors:
  System Temperatures: cpu: 59.0 C pch: 48.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 310 Uptime: 1h 32m wakeups: 1 Memory: 7.68 GiB used: 4.28 GiB
  (55.7%) Init: systemd v: 251 default: graphical tool: systemctl
  Compilers: gcc: 12.2.0 Packages: 1237 pm: pacman pkgs: 1227 libs: 311
  tools: octopi,paru pm: snap pkgs: 10 Shell: Bash v: 5.1.16
  running-in: tilix inxi: 3.3.21
Garuda (2.6.7-1):
  System install date:     2022-09-24
  Last full system update: 2022-09-24 ↻
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       No/Undetected
  Snapshots:               Snapper
  Failed units:            

I need some help with swap -

swapon
NAME       TYPE       SIZE   USED PRIO
/dev/zram0 partition  7.7G 505.5M  100
/dev/sda5  partition 14.9G     0B   -2

I have /dev/sda5 dedicated swap - How can I make sure Garuda is utilizing this for swap and to its fullest ? Any suggestions please. In manual partition this was an option but I needed the disc encryption and hence went for replace partition option during installation.

Garuda prioritizes zram use for swap, which is faster and does not waste writes to the disk like regular swap. If you run out of zram the regular swap partition will be used automatically; you do not need to make any additional changes.

5 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.