pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.44k stars 85 forks source link

System monitor mis-reporting size of swap partition #2758

Open ydhnwb opened 1 year ago

ydhnwb commented 1 year ago

Distribution (run cat /etc/os-release): NAME="Pop!_OS" VERSION="22.04 LTS" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 22.04 LTS" VERSION_ID="22.04" HOME_URL="https://pop.system76.com" SUPPORT_URL="https://support.system76.com" BUG_REPORT_URL="https://github.com/pop-os/pop/issues" PRIVACY_POLICY_URL="https://system76.com/privacy" VERSION_CODENAME=jammy UBUNTU_CODENAME=jammy LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

Issue/Bug Description: After some updates, I see the swap size is changed into unreasonable size (21GB). It happens on my two devices PC and Laptop.

My PC with 32GB ram shows 21GB of swap, also my laptop with 16GB ram shows 21GB of swap, both should only have 4GB for swap

I dont know if it's a real partition change or just wrong string value on system-monitor app

Steps to reproduce (if you know): Update to the latest

Expected behavior: Swap size should remain the same

Other Notes: Screenshot from 2023-01-10 00-11-18

my original swap size is 4GB (it shows correctly on disk management) image

Here is my full partition (dual boot with windows. 1.1GB for boot, 4GB swap, the rest is for root)
image

leviport commented 1 year ago

My system monitor also started showing 21.5GB, but the swap partition is actually still only 4.3GB. So the bug is that system monitor is displaying an erroneous size, and the partition size probably isn't changing at all.

leviport commented 1 year ago

Looks like free is also giving me an incorrect swap size. This could be coming from the ZRAM config changes we made recently: https://github.com/pop-os/default-settings/pull/163

mmstick commented 1 year ago

Technically not a bug because the zram block device is a swap device.

ChidanshM commented 1 year ago

Technically not a bug because the zram block device is a swap device.

How can we differentiate between the two?

dureyes commented 1 year ago

sudo swapon --show