Skip to content

Zen kernel swapping as hell #104

Closed
Closed

Description

@Harvie

Hello,
i use archlinux with SSD drive therefore i have vm.swappines set to 1. Lately when i boot to linux-zen (4.11.8, but it affected older versions also) it starts swapping so hard the mouse becomes unresponsive and i have no other choice than powercycling the machine. This happens like every second or third day of uptime, but there are even days when it happens 3 times in row. So it's safe to say that it happens once a day if i use RAM hard enough (=lots of browser tabs). This does not happen with other archlinux kernels.

Activity

  1. heftig commented on Jul 20, 2017

    @heftig

    Please try sysctl vm.dirty_ratio=20 vm.dirty_background_ratio=10 to return to the default values.

  2. damentz commented on Jul 22, 2017

    @damentz
    Member

    @heftig that will only delay the behavior he's talking about

    @Harvie what configuration are you running? Certain configurations exacerbate this problem and make most systems unusable. Specifically, the legacy single queue block system without cgroup support from the IO scheduler.

    I'd recommend using blk-mq + bfq, , since that combination mostly avoid the symptoms you're talking about. I've also read that disabling writeback throttling helps a lot, but I've hadn't noticed it to be a problem. Try that if it's already enabled, since it may help with your system.

    Also for reference, here's Liquorix's configuration (based on zen-kernel): https://github.com/damentz/liquorix-package/tree/master/linux-liquorix/debian/config/kernelarch-x86

  3. Harvie commented on Jul 30, 2017

    @Harvie
    Author

    @damentz i am using archlinux defaults

  4. damentz commented on Dec 3, 2017

    @damentz
    Member

    @timofonic As I recommended to @Harvie, try using Liquorix's configuration.

    Closing out this issue since this the problem can been resolved, but requires changes to kernel configuration. Use the Liquorix configuration as a reference if you're having issues.

  5. added a commit that references this issue on Jan 22, 2018
  6. added a commit that references this issue on Feb 3, 2018
  7. added a commit that references this issue on Jul 4, 2025
    e8b8ca8
  8. added a commit that references this issue on Aug 3, 2025
    0ce6427
  9. added a commit that references this issue on Oct 4, 2025
    3ab6015
  10. added a commit that references this issue on Dec 6, 2025
    b3e1a64
  11. added a commit that references this issue on Feb 15, 2026
    600e08a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions