Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3423

[Software] zswap or zram? Which one to use in debian 12 with KDE Plasma

$
0
0
Hi, I was scrolling through the debian wiki and suddenly found out about zram and zswap. I have an 8gb swap partition (recommended size by the linux community when I used to have 3gb ram). I was just wondering if I should stick with zswap or use zram OR both. Will there be any performance improvement when using both? If not, then which one should I use?
output of inxi -Fxxxxz

Code:

ak@debian:~$ inxi -FxxxxzSystem:  Kernel: 6.1.0-30-amd64 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0    Desktop: KDE Plasma v: 5.27.5 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 7 dm: SDDM    Distro: Debian GNU/Linux 12 (bookworm)Machine:  Type: Desktop Mobo: Gigabyte model: G31M-ES2L serial: <superuser required>    BIOS: Award v: FI date: 08/09/2010CPU:  Info: quad core model: Intel Core2 Quad Q9550 bits: 64 type: MCP    smt: <unsupported> arch: Penryn rev: A cache: L1: 256 KiB L2: 12 MiB  Speed (MHz): avg: 2833 min/max: N/A cores: 1: 2833 2: 2833 3: 2833 4: 2833    bogomips: 22665  Flags: ht lm nx pae sse sse2 sse3 sse4_1 ssse3Graphics:  Device-1: NVIDIA GK107 [GeForce GT 740] driver: nvidia v: 470.256.02    arch: Kepler pcie: speed: 2.5 GT/s lanes: 16 bus-ID: 01:00.0    chip-ID: 10de:0fc8 class-ID: 0300  Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9    compositor: kwin_x11 driver: X: loaded: nvidia gpu: nvidia display-ID: :0    screens: 1  Screen-1: 0 s-res: 1920x1080 s-dpi: 101 s-size: 483x261mm (19.02x10.28")    s-diag: 549mm (21.61")  Monitor-1: HDMI-0 res: 1920x1080 hz: 100 dpi: 102    size: 480x260mm (18.9x10.24") diag: 546mm (21.49") modes: N/A  API: OpenGL v: 4.6.0 NVIDIA 470.256.02 renderer: NVIDIA GeForce GT    740/PCIe/SSE2 direct-render: YesAudio:  Device-1: Intel NM10/ICH7 Family High Definition Audio    vendor: Gigabyte GA-D525TUD driver: snd_hda_intel v: kernel bus-ID: 00:1b.0    chip-ID: 8086:27d8 class-ID: 0403  Device-2: NVIDIA GK107 HDMI Audio driver: snd_hda_intel v: kernel pcie:    speed: 2.5 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:0e1b class-ID: 0403  API: ALSA v: k6.1.0-30-amd64 status: kernel-api  Server-1: PulseAudio v: 16.1 status: activeNetwork:  Device-1: Qualcomm Atheros AR8131 Gigabit Ethernet    vendor: Gigabyte GA-G31M-ES2L driver: atl1c v: kernel pcie: speed: 2.5 GT/s    lanes: 1 port: bf00 bus-ID: 03:00.0 chip-ID: 1969:1063 class-ID: 0200  IF: enp3s0 state: down mac: <filter>  Device-2: Ralink RT5370 Wireless Adapter type: USB driver: rt2800usb    bus-ID: 5-5:3 chip-ID: 148f:5370 class-ID: 0000 serial: <filter>  IF: wlxc83a35c9505a state: down mac: <filter>  IF-ID-1: enx72cf021cdffe state: unknown speed: -1 duplex: half    mac: <filter>Bluetooth:  Device-1: Xiaomi Mi/Redmi series (RNDIS) type: USB driver: rndis_host    v: kernel bus-ID: 5-2:7 chip-ID: 2717:ff80 class-ID: 0a00 serial: <filter>Drives:  Local Storage: total: 1.38 TiB used: 16.2 GiB (1.1%)  ID-1: /dev/sda vendor: A-Data model: SU800 size: 476.94 GiB    speed: <unknown> type: SSD serial: <filter> rev: 8B scheme: MBR  ID-2: /dev/sdb vendor: Toshiba model: DT01ACA100 size: 931.51 GiB    speed: <unknown> type: HDD rpm: 7200 serial: <filter> rev: A7C0 scheme: MBRPartition:  ID-1: / size: 173.1 GiB used: 13.79 GiB (8.0%) fs: ext4 dev: /dev/sda1  ID-2: /home size: 14.66 GiB used: 2.41 GiB (16.4%) fs: ext4 dev: /dev/sda6Swap:  ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2    dev: /dev/sda3  ID-2: swap-2 type: zram size: 2.29 GiB used: 0 KiB (0.0%) priority: 100    dev: /dev/zram0Sensors:  System Temperatures: cpu: 60.0 C mobo: N/A gpu: nvidia temp: 47 C  Fan Speeds (RPM): N/A gpu: nvidia fan: 30%Info:  Processes: 160 Uptime: 7m wakeups: 0 Memory: 3.82 GiB used: 1.61 GiB (42.1%)  Init: systemd v: 252 target: graphical (5) default: graphical Compilers:  gcc: 12.2.0 alt: 12 Packages: pm: dpkg pkgs: 1626 Shell: Bash v: 5.2.15  running-in: konsole inxi: 3.3.26ak@debian:~$ 
output of swapon -s

Code:

ak@debian:~$ sudo swapon -s[sudo] password for ak: Filename                                Type            Size            Used            Priority/dev/sda3                               partition       8388604         0               -2/dev/zram0                              partition       2404596         0               100ak@debian:~$ 
Currently, I have both of them enabled.
Thanks,
GK

Statistics: Posted by GroudonandKyogre — 2025-02-03 16:25 — Replies 1 — Views 34



Viewing all articles
Browse latest Browse all 3423

Trending Articles