5.8.y: swap space doesn't work

Open
#3,864 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
arch-linux, c, linux, raspberry-pi

Research direction

Reproduce the report on a Raspberry Pi 4 using kernel 5.8, a swap space entry in /etc/fstab, and free -h; compare the result with kernel 5.4. Trace the kernel-side swap activation path and verify that the expected 16 GB is reported by free -h before considering the issue complete.

Written by the indexing model from the issue text.

Description

Describe the bug
When swapspace is created, then specified in /etc/fstab, on kernel 5.8, free -h shows swap as 0b, but with 5.4.y, it shows it as 16gb (as it should be).

To reproduce
Use kernel 5.8, create swap space and add it to fstab, observe swap being 0b when running free -h.

Expected behaviour
It should show 16gb of swap when running free -h

Actual behaviour
free -h shows 0b of swap when running kernel 5.8

System
Model: Raspberry Pi 4 8gb
OS: Arch Linux Arm (64 bit tarball that I created)
version 6105bb6ab6db9d62a57ce2bb96c527a2cc46a717
kernel: 5.8.5.r936780.g1b7aa2df0963-1

Additional context
Swap works on kernel 5.4

Dominant language
C
Stars
13.2k
Forks
5.5k
Avg merge
2d 21h
Merged PRs (30d)
21

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/linux

All issues in raspberrypi/linux

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.