Fedora 42
2 external Western Digital USB disks, each with a swap partition of 128GB.
I consistently see that my system reports strange values for
- swap space used
- available memory (via “free”)
Just after boot, my two external Western Digital drives show constant activity. “iostat” shows that there is a lot of disk reads (on the order of several hundred kB/sec). But I’m doing nothing on my system other than the following:
Every few seconds executing “swapon --show”
Every few seconds executing “free” in a bash shell
Yet the swap space is continually increasing. Here is some sample showing what some alternating calls to “swapon --show” and “free” a few minutes after rebooting my system.
$ swapon --show
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 8G 0B 100
/dev/sda4 partition 128.5G 139.1M 200
/dev/sdb4 partition 128.5G 138M 200
$
$ swapon --show
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 8G 0B 100
/dev/sda4 partition 128.5G 160.3M 200
/dev/sdb4 partition 128.5G 158.9M 200
$
$
$ swapon --show
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 8G 0B 100
/dev/sda4 partition 128.5G 154.7M 200
/dev/sdb4 partition 128.5G 153.8M 200
$
$
$ swapon --show
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 8G 0B 100
/dev/sda4 partition 128.5G 163M 200
/dev/sdb4 partition 128.5G 162.2M 200
$ free
total used free shared buff/cache available
Mem: 28423288 3905500 20723660 158996 4385980 24517788
Swap: 277919732 332836 277586896
$
$
$ swapon --show
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 8G 0B 100
/dev/sda4 partition 128.5G 190.5M 200
/dev/sdb4 partition 128.5G 188.8M 200
$
$ swapon --show
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 8G 0B 100
/dev/sda4 partition 128.5G 209.8M 200
/dev/sdb4 partition 128.5G 207.4M 200
$ free
total used free shared buff/cache available
Mem: 28423288 4008296 20615908 168296 4400684 24414992
Swap: 277919732 427184 277492548
$
And here is some sample output of “iostat 5”
avg-cpu: %user %nice %system %iowait %steal %idle
2.78 0.03 1.52 5.54 0.00 90.13
Device tps kB_read/s kB_wrtn/s kB_dscd/s kB_read kB_wrtn kB_dscd
nvme0n1 197.00 22765.60 116.00 0.00 113828 580 0
sda 348.00 304.00 3235.20 0.00 1520 16176 0
sdb 350.00 224.00 3292.00 0.00 1120 16460 0
zram0 0.00 0.00 0.00 0.00 0 0 0
avg-cpu: %user %nice %system %iowait %steal %idle
1.90 0.03 1.20 5.79 0.00 91.08
Device tps kB_read/s kB_wrtn/s kB_dscd/s kB_read kB_wrtn kB_dscd
nvme0n1 138.60 16017.60 0.00 0.00 80088 0 0
sda 217.60 496.80 1227.20 0.00 2484 6136 0
sdb 208.40 348.00 1092.00 0.00 1740 5460 0
zram0 0.00 0.00 0.00 0.00 0 0 0
avg-cpu: %user %nice %system %iowait %steal %idle
1.97 0.01 1.23 5.85 0.00 90.95
Device tps kB_read/s kB_wrtn/s kB_dscd/s kB_read kB_wrtn kB_dscd
nvme0n1 149.00 17137.60 13.60 0.00 85688 68 0
sda 52.20 421.60 0.00 0.00 2108 0 0
sdb 33.20 228.00 0.00 0.00 1140 0 0
zram0 0.00 0.00 0.00 0.00 0 0 0
I only have 3 bash windows open, and I did not even have a browser open until I needed to start firefox to post this question.
I ran “ps -elf” but don’t see fsck running. But perhaps there is another program doing some kind of disk integrity checking? (I’m an old SunOS and Solaris guy, so fsck is what we used to run).