Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System monitor mis-reporting size of swap partition #2758

Open
ydhnwb opened this issue Jan 9, 2023 · 5 comments
Open

System monitor mis-reporting size of swap partition #2758

ydhnwb opened this issue Jan 9, 2023 · 5 comments

Comments

@ydhnwb
Copy link

ydhnwb commented Jan 9, 2023

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
Copy link
Member

leviport commented Jan 9, 2023

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 leviport changed the title Not reasonable swap size after some updates System monitor mis-reporting size of swap partition Jan 9, 2023
@leviport
Copy link
Member

leviport commented Jan 9, 2023

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

@mmstick
Copy link
Member

mmstick commented Jan 9, 2023

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

@ChidanshM
Copy link

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

How can we differentiate between the two?

@dureyes
Copy link

dureyes commented May 7, 2023

sudo swapon --show

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants