-
-
Notifications
You must be signed in to change notification settings - Fork 728
[BUG] swap reported as disabled when it is just zero and unused (macOS) #2248
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Read the FAQ first
- I have checked the FAQ but the issue is not covered
Description
On macOS (unsure about other systems), the swap is reported as disabled when in fact, it is simply not used.
Labeling it as disabled is quite misleading in my opinion. It should rather display that zero bytes are used.
Running fastfetch -s swap:
Actual output:
Swap: Disabled
Expected output:
Swap: 0B # or Unused
The relevant part from the system information is:
{
"type": "Swap",
"result": [
{
"name": "Encrypted",
"used": 0,
"total": 0
}
],
"stat": 0.027999999991152436
},Version used
fastfetch 2.61.0 (aarch64)
Bug prevalence
Always
Regression
Not sure
Installation
Package manager
Package manager
brew
Screenshots
Used
Configuration
System information
[
{
"type": "Title",
"result": {
"userId": 123,
"userName": "userName",
"fullUserName": "fullUserName",
"hostName": "hostname",
"homeDir": "/Users/username/",
"exePath": "/opt/homebrew/Cellar/fastfetch/2.61.0/bin/fastfetch",
"userShell": "/opt/homebrew/bin/fish",
"pid": 1064,
"cwd": "/Users/username/"
},
"stat": 0.03299999999580905
},
{
"type": "Separator",
"error": "Unsupported for JSON format",
"stat": 0.027999999991152436
},
{
"type": "OS",
"result": {
"buildID": "25E246",
"codename": "Tahoe",
"id": "macos",
"idLike": "",
"name": "macOS",
"prettyName": "macOS Tahoe 26.4 (25E246)",
"variant": "",
"variantID": "",
"version": "26.4",
"versionID": "26.4"
},
"stat": 0.617000000027474
},
{
"type": "Host",
"result": {
"family": "Mac14,2",
"name": "MacBook Air (M2, 2022)",
"version": "",
"sku": "",
"vendor": "Apple Inc.",
"serial": "serial",
"uuid": "uuid"
},
"stat": 0.2669999999925494
},
{
"type": "BIOS",
"result": {
"date": "Tue Feb 24 21:58:41 PST 2026",
"release": "",
"vendor": "Apple Inc.",
"version": "18000.101.7",
"type": "mBoot"
},
"stat": 0.15899999998509884
},
{
"type": "Bootmgr",
"result": {
"name": "iBoot",
"firmware": "/System/Library/CoreServices/boot.efi",
"order": 0,
"secureBoot": true
},
"stat": 0.5869999999995343
},
{
"type": "Board",
"result": {
"name": "J413AP",
"vendor": "Apple Inc.",
"version": "",
"serial": ""
},
"stat": 0.059999999997671694
},
{
"type": "Chassis",
"result": {
"type": "Laptop",
"vendor": "Apple Inc.",
"version": "",
"serial": ""
},
"stat": 0.1190000000060536
},
{
"type": "Kernel",
"result": {
"architecture": "arm64",
"name": "Darwin",
"release": "25.4.0",
"version": "Darwin Kernel Version 25.4.0: Thu Mar 19 19:33:09 PDT 2026; root:xnu-12377.101.15~1/RELEASE_ARM64_T8112",
"pageSize": 16384
},
"stat": 0.0029999999969732016
},
{
"type": "InitSystem",
"result": {
"name": "launchd",
"exe": "/sbin/launchd",
"version": "7.0.0",
"pid": 1
},
"stat": 12.038000000000466
},
{
"type": "Uptime",
"result": {
"uptime": 164970,
"bootTime": "2026-03-28T16:41:37.335+0100"
},
"stat": 0.4300000000221189
},
{
"type": "Loadavg",
"result": [34.5390625, 27.8525390625, 12.546875],
"stat": 0.03999999997904524
},
{
"type": "Processes",
"result": 532,
"stat": 0.14500000001862645
},
{
"type": "Packages",
"result": {
"all": 167,
"amSystem": 0,
"amUser": 0,
"apk": 0,
"brew": 125,
"brewCask": 42,
"choco": 0,
"dpkg": 0,
"emerge": 0,
"eopkg": 0,
"flatpakSystem": 0,
"flatpakUser": 0,
"guixSystem": 0,
"guixUser": 0,
"guixHome": 0,
"hpkgSystem": 0,
"hpkgUser": 0,
"kiss": 0,
"linglong": 0,
"macports": 0,
"mport": 0,
"moss": 0,
"nixDefault": 0,
"nixSystem": 0,
"nixUser": 0,
"opkg": 0,
"pacman": 0,
"pacstall": 0,
"paludis": 0,
"pisi": 0,
"pkg": 0,
"pkgtool": 0,
"pkgsrc": 0,
"rpm": 0,
"scoopUser": 0,
"scoopGlobal": 0,
"snap": 0,
"soar": 0,
"sorcery": 0,
"winget": 0,
"xbps": 0,
"pacmanBranch": ""
},
"stat": 1.0129999999771826
},
{
"type": "Shell",
"result": {
"exe": "fish",
"exeName": "fish",
"exePath": "/opt/homebrew/Cellar/fish/4.6.0/bin/fish",
"pid": 1023,
"ppid": 1022,
"processName": "fish",
"prettyName": "fish",
"version": "4.6.0",
"tty": 0
},
"stat": 8.111000000004424
},
{
"type": "Editor",
"error": "$VISUAL or $EDITOR not set",
"stat": 0.0029999999969732016
},
{
"type": "Display",
"result": [
{
"id": 1,
"name": "Color LCD",
"primary": true,
"output": {
"width": 2940,
"height": 1912,
"refreshRate": 60.0,
"drrStatus": null,
"dpi": 192
},
"scaled": {
"width": 1470,
"height": 956
},
"preferred": {
"width": 2560,
"height": 1664,
"refreshRate": 60.0
},
"physical": {
"width": 290,
"height": 189
},
"rotation": 0,
"bitDepth": 10,
"hdrStatus": "Unsupported",
"type": "Builtin",
"manufactureDate": null,
"serial": 1234567890,
"platformApi": "CoreGraphics"
}
],
"stat": 50.38200000001234
},
{
"type": "Brightness",
"result": [
{
"name": "Color LCD",
"max": 1.0,
"min": 0.0,
"current": 0.6792919039726257,
"builtin": true
}
],
"stat": 1.2269999999844003
},
{
"type": "Monitor",
"error": "Monitor module is an alias of Display module",
"stat": 0.0010000000183936208
},
{
"type": "LM",
"error": "Not supported on this platform",
"stat": 0.0009999999892897904
},
{
"type": "DE",
"error": "No DE found",
"stat": 0.015000000013969839
},
{
"type": "WM",
"result": {
"processName": "WindowServer",
"prettyName": "Quartz Compositor",
"protocolName": "",
"pluginName": "",
"version": "1.600.0"
},
"stat": 0.5099999999802094
},
{
"type": "WMTheme",
"result": "Multicolor (Light)",
"stat": 0.125
},
{
"type": "Theme",
"result": {
"theme1": "Liquid Glass",
"theme2": ""
},
"stat": 0.014000000024680048
},
{
"type": "Icons",
"error": "Not supported on this platform",
"stat": 0.0
},
{
"type": "Font",
"result": {
"display": ".AppleSystemUIFont [System], Helvetica [User]",
"fonts": [
".AppleSystemUIFont",
"Helvetica",
".AppleSystemUIFontMonospaced",
"Menlo"
]
},
"stat": 2.4130000000004657
},
{
"type": "Cursor",
"result": {
"theme": "Fill - Black, Outline - White",
"size": "32"
},
"stat": 0.1279999999969732
},
{
"type": "Wallpaper",
"result": "Built-in image wallpaper",
"stat": 0.20499999998719431
},
{
"type": "Terminal",
"result": {
"processName": "iTermServer-3.6.",
"exe": "exe",
"exeName": "iTermServer-3.6.9",
"exePath": "exePath",
"pid": 1020,
"ppid": 1015,
"prettyName": "iTerm",
"version": "3.6.9",
"tty": ""
},
"stat": 0.03900000001885928
},
{
"type": "TerminalFont",
"result": {
"font": {
"name": "MonaspaceKryptonNF-Regular 13",
"size": "{\"featureSettings\":[{\"CTFeatureSelectorIdentifier\":4,\"CTFeatureTypeIdentifier\":35},{\"CTFeatureSelectorIdentifier\":8,\"CTFeatureTypeIdentifier\":35},{\"CTFeatureSelectorIdentifier\":12,\"CTFeatureTypeIdentifier\":35},{\"CTFeatureSelectorIdentifier\":6,\"CTFeatureTypeIdentifier\":35},{\"CTFeatureSelectorIdentifier\":20,\"CTFeatureTypeIdentifier\":35},{\"CTFeatureSelectorIdentifier\":14,\"CTFeatureTypeIdentifier\":35},{\"CTFeatureSelectorIdentifier\":18,\"CTFeatureTypeIdentifier\":35},{\"CTFeatureSelectorIdentifier\":2,\"CTFeatureTypeIdentifier\":35},{\"CTFeatureSelectorIdentifier\":16,\"CTFeatureTypeIdentifier\":35}]}",
"styles": [],
"pretty": "MonaspaceKryptonNF-Regular 13 ({\"featureSettings\":[{\"CTFeatureSelectorIdentifier\":4,\"CTFeatureTypeIdentifier\":35},{\"CTFeatureSelectorIdentifier\":8,\"CTFeatureTypeIdentifier\":35},{\"CTFeatureSelectorIdentifier\":12,\"CTFeatureTypeIdentifier\":35},{\"CTFeatureSelectorIdentifier\":6,\"CTFeatureTypeIdentifier\":35},{\"CTFeatureSelectorIdentifier\":20,\"CTFeatureTypeIdentifier\":35},{\"CTFeatureSelectorIdentifier\":14,\"CTFeatureTypeIdentifier\":35},{\"CTFeatureSelectorIdentifier\":18,\"CTFeatureTypeIdentifier\":35},{\"CTFeatureSelectorIdentifier\":2,\"CTFeatureTypeIdentifier\":35},{\"CTFeatureSelectorIdentifier\":16,\"CTFeatureTypeIdentifier\":35}]}pt)"
},
"fallback": {
"name": "",
"size": "",
"styles": [],
"pretty": ""
}
},
"stat": 0.6529999999911524
},
{
"type": "TerminalSize",
"result": {
"columns": 85,
"rows": 25,
"width": 1360,
"height": 850
},
"stat": 0.03500000000349246
},
{
"type": "TerminalTheme",
"result": {
"fg": {
"r": 202,
"g": 211,
"b": 243,
"dark": false
},
"bg": {
"r": 34,
"g": 36,
"b": 52,
"dark": true
}
},
"stat": 0.29999999998835847
},
{
"type": "CPU",
"result": {
"cpu": "Apple M2",
"vendor": "Apple",
"packages": 1,
"cores": {
"physical": 8,
"logical": 8,
"online": 8
},
"frequency": {
"base": 0,
"max": 3504
},
"coreTypes": [
{
"count": 4,
"freq": 2
},
{
"count": 4,
"freq": 1
}
],
"temperature": 46.49797330583845,
"march": "ARMv8.6-A",
"numaNodes": null
},
"stat": 4.61600000000908
},
{
"type": "CPUCache",
"result": {
"l1": [
{
"size": 196608,
"num": 4,
"lineSize": 128,
"type": "instruction"
},
{
"size": 131072,
"num": 4,
"lineSize": 128,
"type": "data"
},
{
"size": 131072,
"num": 4,
"lineSize": 128,
"type": "instruction"
},
{
"size": 65536,
"num": 4,
"lineSize": 128,
"type": "data"
}
],
"l2": [
{
"size": 16777216,
"num": 1,
"lineSize": 128,
"type": "unified"
},
{
"size": 4194304,
"num": 1,
"lineSize": 128,
"type": "unified"
}
]
},
"stat": 0.021000000007916242
},
{
"type": "CPUUsage",
"result": [
100.0, 100.0, 100.0, 100.0, 4.545454545454546, 0.0, 4.761904761904762, 0.0
],
"stat": 205.12899999998626
},
{
"type": "GPU",
"result": [
{
"index": 0,
"coreCount": 8,
"coreUsage": 14.0,
"memory": {
"dedicated": {
"total": null,
"used": null
},
"shared": {
"total": 12713115648,
"used": 236388352
},
"type": null
},
"driver": "com.apple.AGXG14G 350.38",
"name": "Apple M2",
"temperature": 44.746490478515625,
"type": "Integrated",
"vendor": "Apple",
"platformApi": "Metal 4",
"frequency": 1398,
"deviceId": 4294968569
}
],
"stat": 21.14999999999418
},
{
"type": "Memory",
"result": {
"total": 17179869184,
"used": 8714502144
},
"stat": 0.010000000009313226
},
{
"type": "PhysicalMemory",
"result": [
{
"size": 17179869184,
"installed": true,
"maxSpeed": 0,
"runningSpeed": 0,
"type": "LPDDR5",
"locator": "",
"formFactor": "",
"vendor": "Hynix",
"serial": "",
"partNumber": "",
"ecc": false
}
],
"stat": 0.0560000000114087
},
{
"type": "Swap",
"result": [
{
"name": "Encrypted",
"used": 0,
"total": 0
}
],
"stat": 0.027999999991152436
},
{
"type": "Disk",
"result": [
{
"bytes": {
"available": 116980703232,
"free": 116980703232,
"total": 994662584320,
"used": 877681881088
},
"files": {
"total": 1142847795,
"used": 458115
},
"filesystem": "apfs",
"mountpoint": "/",
"mountFrom": "/dev/disk3s1s1",
"name": "Macintosh HD",
"volumeType": ["Regular", "Read-only"],
"createTime": "2026-03-20T06:25:57.000+0100"
},
{
"bytes": {
"available": 116980703232,
"free": 116980703232,
"total": 994662584320,
"used": 877681881088
},
"files": {
"total": 1145374709,
"used": 2985029
},
"filesystem": "apfs",
"mountpoint": "/System/Volumes/Data",
"mountFrom": "/dev/disk3s5",
"name": "Data",
"volumeType": ["Hidden"],
"createTime": "2024-11-04T11:41:22.030+0100"
},
{
"bytes": {
"available": 505929728,
"free": 505929728,
"total": 524288000,
"used": 18358272
},
"files": {
"total": 4940784,
"used": 64
},
"filesystem": "apfs",
"mountpoint": "/System/Volumes/Hardware",
"mountFrom": "/dev/disk1s3",
"name": "Hardware",
"volumeType": ["Hidden"],
"createTime": "2022-07-19T01:03:10.617+0200"
},
{
"bytes": {
"available": 116982910976,
"free": 116982910976,
"total": 994662584320,
"used": 877679673344
},
"files": {
"total": 1142412775,
"used": 1535
},
"filesystem": "apfs",
"mountpoint": "/System/Volumes/Preboot",
"mountFrom": "/dev/disk3s2",
"name": "Preboot",
"volumeType": ["Hidden"],
"createTime": "2022-07-19T01:03:09.540+0200"
},
{
"bytes": {
"available": 117039841280,
"free": 117039841280,
"total": 994662584320,
"used": 877622743040
},
"files": {
"total": 1142967309,
"used": 109
},
"filesystem": "apfs",
"mountpoint": "/System/Volumes/Update",
"mountFrom": "/dev/disk3s4",
"name": "Update",
"volumeType": ["Hidden"],
"createTime": "2022-07-19T01:03:11.694+0200"
},
{
"bytes": {
"available": 117039841280,
"free": 117039841280,
"total": 994662584320,
"used": 877622743040
},
"files": {
"total": 1142967200,
"used": 0
},
"filesystem": "apfs",
"mountpoint": "/System/Volumes/VM",
"mountFrom": "/dev/disk3s6",
"name": "VM",
"volumeType": ["Hidden"],
"createTime": "2022-07-19T01:18:07.824+0200"
},
{
"bytes": {
"available": 505929728,
"free": 505929728,
"total": 524288000,
"used": 18358272
},
"files": {
"total": 4940751,
"used": 31
},
"filesystem": "apfs",
"mountpoint": "/System/Volumes/iSCPreboot",
"mountFrom": "/dev/disk1s1",
"name": "iSCPreboot",
"volumeType": ["Hidden"],
"createTime": "2022-07-19T01:03:10.251+0200"
},
{
"bytes": {
"available": 505929728,
"free": 505929728,
"total": 524288000,
"used": 18358272
},
"files": {
"total": 4940721,
"used": 1
},
"filesystem": "apfs",
"mountpoint": "/System/Volumes/xarts",
"mountFrom": "/dev/disk1s2",
"name": "xarts",
"volumeType": ["Hidden"],
"createTime": "2022-07-19T01:03:10.435+0200"
}
],
"stat": 0.11100000000442378
},
{
"type": "Btrfs",
"error": "Not supported on this platform",
"stat": 0.0020000000076834112
},
{
"type": "Zpool",
"error": "dlopen(libzfs.dylib) failed",
"stat": 2.680999999982305
},
{
"type": "Battery",
"result": [
{
"capacity": 72.0,
"manufacturer": "Apple Inc.",
"manufactureDate": "2022-06-16",
"modelName": "bq40z651",
"status": "AC connected, Charging",
"technology": "Lithium",
"serial": "serial",
"temperature": 33.85000000000002,
"cycleCount": 253,
"timeRemaining": null
}
],
"stat": 0.8460000000195578
},
{
"type": "PowerAdapter",
"result": [
{
"description": "pd charger",
"manufacturer": "Apple Inc.",
"modelName": "0x7019",
"name": "140W USB-C Power Adapter",
"serial": "serial",
"watts": 94
}
],
"stat": 0.2549999999755528
},
{
"type": "Player",
"error": "Player module is an alias of Media module",
"stat": 0.0010000000183936208
},
{
"type": "Media",
"error": "No media found",
"stat": 1522.7609999999986
},
{
"type": "PublicIp",
"result": {
"ip": "ip",
"location": "location"
},
"stat": 0.09999999997671694
},
{
"type": "LocalIp",
"result": [
{
"name": "en0",
"defaultRoute": {
"ipv4": true,
"ipv6": false
},
"ipv4": "141.23.176.129/19",
"ipv6": "",
"mac": "be:c9:ba:4c:f6:3f",
"mtu": 1500,
"speed": -1,
"flags": "UP,BROADCAST,RUNNING,MULTICAST,NOTRAILERS,SIMPLEX"
}
],
"stat": 0.07600000000093132
},
{
"type": "DNS",
"result": ["130.149.7.7", "192.129.31.50"],
"stat": 0.21499999999650754
},
{
"type": "Wifi",
"result": [
{
"inf": {
"description": "en0",
"status": "Power On"
},
"conn": {
"status": "Active",
"ssid": "eduroam",
"bssid": "cc:7f:75:5d:84:ac",
"protocol": "802.11ax (Wi-Fi 6)",
"security": "WPA2 Enterprise",
"signalQuality": 100.0,
"rxRate": null,
"txRate": 573.0,
"channel": 44,
"frequency": 5400
}
}
],
"stat": 19.213000000017928
},
{
"type": "DateTime",
"result": "2026-03-28T16:44:24.148+0100",
"stat": 0.005999999993946403
},
{
"type": "Locale",
"result": "en_US.UTF-8",
"stat": 0.0020000000076834112
},
{
"type": "Vulkan",
"error": "dlopen(libMoltenVK.dylib) failed",
"stat": 0.34100000001490116
},
{
"type": "OpenGL",
"result": {
"version": "4.1 Metal - 90.5",
"renderer": "Apple M2",
"vendor": "Apple",
"slv": "4.10",
"library": "CGL 1.2"
},
"stat": 68.64499999998952
},
{
"type": "OpenCL",
"result": {
"version": "1.2 (Feb 21 2026 17:15:10)",
"name": "Apple",
"vendor": "Apple",
"gpus": [
{
"type": "Integrated",
"vendor": "Apple",
"name": "Apple M2",
"driver": "1.0",
"platformApi": "OpenCL 1.2",
"coreCount": 8,
"frequency": 1000,
"memory": {
"dedicated": {
"total": null,
"used": null
},
"shared": {
"total": 12713115648,
"used": null
}
},
"deviceId": 16940800
}
]
},
"stat": 0.8280000000086147
},
{
"type": "Users",
"result": [
{
"name": "name",
"hostName": "",
"sessionName": "ttys000",
"clientIp": "",
"loginTime": "2026-03-28T16:44:07.190+0100"
}
],
"stat": 0.08699999999953434
},
{
"type": "Bluetooth",
"result": [
{
"address": "F8:73:DF:29:5A:BF",
"battery": 62,
"connected": true,
"name": "AirPods Max",
"type": "Audio/Video"
}
],
"stat": 83.55900000000838
},
{
"type": "BluetoothRadio",
"result": [
{
"name": "MacBook Air von Björn",
"address": "1C:57:DC:3E:81:7F",
"lmpVersion": -11,
"lmpSubversion": null,
"vendor": "Apple",
"enabled": true,
"discoverable": false,
"connectable": true
}
],
"stat": 101.06599999999162
},
{
"type": "Sound",
"result": [
{
"active": true,
"main": false,
"volume": 0,
"name": "MacBook Air-Lautsprecher",
"identifier": "BuiltInSpeakerDevice",
"platformApi": "Core Audio"
},
{
"active": true,
"main": true,
"volume": 50,
"name": "AirPods Max von Björn",
"identifier": "F8-73-DF-29-5A-BF:output",
"platformApi": "Core Audio"
}
],
"stat": 65.36600000000908
},
{
"type": "Camera",
"result": [
{
"name": "FaceTime HD-Kamera",
"vendor": "Apple Inc.",
"colorSpace": "sRGB",
"id": "id",
"width": 1920,
"height": 1080
}
],
"stat": 77.08499999999185
},
{
"type": "Gamepad",
"result": [],
"stat": 0.1429999999818392
},
{
"type": "Mouse",
"result": [
{
"serial": "",
"name": "Apple Internal Keyboard / Trackpad",
"ignored": false
}
],
"stat": 14.752000000007683
},
{
"type": "Keyboard",
"result": [
{
"serial": "",
"name": "Apple Internal Keyboard / Trackpad",
"ignored": false
}
],
"stat": 12.26500000001397
},
{
"type": "Weather",
"result": "+11°C - Patchy rain nearby (berlin)",
"stat": 0.0749999999825377
},
{
"type": "NetIO",
"result": [
{
"name": "en0",
"defaultRoute": true,
"txBytes": 19678,
"rxBytes": 30592,
"txPackets": 65,
"rxPackets": 56,
"rxErrors": 0,
"txErrors": 0,
"rxDrops": 0,
"txDrops": 0
}
],
"stat": 0.007000000012340024
},
{
"type": "DiskIO",
"result": [
{
"name": "APPLE SSD AP1024Z Media",
"devPath": "/dev/disk0",
"bytesRead": 45643776,
"bytesWritten": 2222080,
"readCount": 2252,
"writeCount": 297
}
],
"stat": 0.1909999999916181
},
{
"type": "PhysicalDisk",
"result": [
{
"name": "APPLE SSD AP1024Z Media",
"devPath": "/dev/disk0",
"interconnect": "Apple Fabric",
"kind": "SSD",
"size": 1000555581440,
"serial": "serial",
"removable": false,
"readOnly": false,
"revision": "561.100.",
"temperature": 36.0
}
],
"stat": 1.0800000000162981
},
{
"type": "TPM",
"result": {
"version": "2.0",
"description": "Apple Silicon Security"
},
"stat": 0.0009999999892897904
},
{
"type": "Version",
"result": {
"projectName": "fastfetch",
"sysName": "macOS",
"architecture": "aarch64",
"version": "2.61.0",
"versionGit": "",
"cmakeBuiltType": "Release",
"compileTime": "Mar 28 2026, 06:10:34",
"compiler": "Apple clang 17.0.0 (17000604)",
"debugMode": false,
"libc": "libSystem 1356.0.0"
},
"stat": 0.0009999999892897904
},
{
"type": "Break",
"error": "Unsupported for JSON format",
"stat": 0.0010000000183936208
},
{
"type": "Colors",
"error": "Unsupported for JSON format",
"stat": 0.0
}
]Features built-in
threads
vulkan
imagemagick7
chafa
zlib
sqlite3
libzfs
System yyjson
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
