Modern kernels handle SWAPPING situations much better.
Also, these days the Multi-LRU patchset should pretty much resolve the
problem. It is not yet upstream, but is used in downstream kernels such
as linux-zen and liquorix-kernel. There is hope it will be merged by
5.19¹
1:
Are there any changes?
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1833281
Title:
System freeze when memory is put on SWAP in Linux >4.10.x
Status in Linux:
Confirmed
Status in
I am experiencing this bug on a stock Dell Inspiron 5000 (5482) with 8
GB RAM and the factory SSD. It is completely debilitating. Having 1-2
completely unpredictable, 30-minute-plus, hard freezes per day is a
showstopper. I can't trust this environment for professional work, or
even to take notes
@lou +1
Sorry for my Google translate.
This bug is very many years old. This is *Bug 12309* !!! Why didn't anyone
remember?
I'm tired of him. Was in the early 2010s for 512 MB of RAM. Was in the early
2010s for 512 MB of RAM. and 2 GB of RAM. Mid 2010s with 4GB of RAM. And for
the past
Possible duplicate of LP: #1861359.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1833281
Title:
System freeze when memory is put on SWAP in Linux >4.10.x
Status in Linux:
Confirmed
I primarily test by building webkitgtk [1], and I experience the same loss of
system responsiveness whether / is ext4 or Btrfs. But I do see a difference in
top and iotop.
https://drive.google.com/open?id=12jpQeskPsvHmfvDjWSPOwIWSz09JIUlk
This is an extreme case of refaulting, it's out of
Christoph, your issue is different. Please fill separate bugreport.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1833281
Title:
System freeze when memory is put on SWAP in Linux
Another resource, quite long but has a tl;dr, and reviewed by some of the
cgroups/resource control folks:
https://chrisdown.name/2018/01/02/in-defence-of-swap.html
I'll use somewhat technically sloppy language, but hopefully a useful
metaphor: there's incidental swap and heavy swap. Incidental
On HP Stream 7 Tablet (1GB RAM) there was similar regression, but it
started since Linux 4.12 instead of 4.10. Last year I tried bisect and
several workarounds such as autostart cleanup, sysctl tweaks, zram, etc.
But in the end it's seems like Linux 5.5.8 solved issue, at least in
this particular
It seems that zram mitigates the problem for me during a work day. As long as
the system doesn't have to write swap to the disk, it seems fine. The longer I
use the system, the sooner it is running out of (z)ram and swapping also to
disk. As soon as this happens, I get these freezes again. I
Can confirm this on Kubuntu 19.10 on a Core i5-4310U. My RAM is fairly
big enough for what I'm doing everyday, but as soon as the tiniest
swapping occurs, it renders the machine quite unusable - stuttering
window animations, stuttering/hanging mouse cursor, often for 1-2
minutes. As I can see, the
I'm experiencing the same issue since I upgraded to Kernel 5.3.0 on Ubuntu
18.04 LTS via HWE stack.
This still does not happen with kernel 4.15 and iirc didn't happen with Kernel
5.0.0 (which got replaced with 5.3.0 through the HWE stack).
I see a heavy increase in the swap file usage after a
(In reply to ValdikSS from comment #60)
> I'm not sure, but people on Rosa forum blamed BTRFS for this bug. I'm pretty
> sure it's not directly tight with BTRFS, but write and read amplification
> may explain why lags are more severe with this FS.
People here and on ROSA forum blamed BTRFS for
I don't use btrfs, but only ext4 on an SSD. Since updating my system
from kernel 5.1.7 to kernel 5.3.12 in Tumbleweed, I get regular ~1-2
second freezes (e.g. mouse pointer hangs in X11, or characters don't
appear while typing in Konsole) while Blender renders and swaps out
finished tiles. This
(In reply to ValdikSS from comment #58)
> I have an idea why this bug is much worse with BTRFS than with EXT4: BTRFS
> has much bigger read/write amplification, up to 10x higher than EXT4.
You mean that when e.g. Chromium browser writes its cache, it loads IO
"up to 10x higher than EXT4", and,
(In reply to Mikhail Novosyolov from comment #59)
> You mean that when e.g. Chromium browser writes its cache, it loads IO "up
> to 10x higher than EXT4"
Yes. This is also true for read operations, not only for write.
> and, when IO is also loaded by swapping, it causes
> microfreezes?
Yes,
I have an idea why this bug is much worse with BTRFS than with EXT4:
BTRFS has much bigger read/write amplification, up to 10x higher than
EXT4.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
I have similar problem but more short freezes and lags. Is an update of
the graphic drives a solution? For some it seems that way. If so why?
https://askubuntu.com/questions/1185491/ubuntu-19-10-freezes-and-lags-
reguarly
--
You received this bug notification because you are a member of Kernel
Same issue here, although I run Fedora 31 with KDE Plasma DE.
Swapping with 5.2.17 works fine, even when using 4GB of swap for several days.
Swapping with 5.3.2 causes a complete freeze, i.e. screen freezes up, no mouse
movement, no TTY access. I did not try SYSRQ keys.
System under test:
HP
Recently, about since kernel 5.2.7, the issue is either gone or present to much
less extent.
Right now I'm running kernel 5.2.11 and finally I can keel Firefox and
VirtualBox running at the same time, with 3G+ in swap, and the system does not
freeze.
Could anyone affected by this issue try
(In reply to ValdikSS from comment #53)
> Recently, about since kernel 5.2.7, the issue is either gone or present to
> much less extent.
> Right now I'm running kernel 5.2.11 and finally I can keel Firefox and
> VirtualBox running at the same time, with 3G+ in swap, and the system does
> not
On an unrelated note(but since btrfs was thought to be a problem at some
point), I've discovered that btrfs with zstd:5 (or worse zstd:15) can
cause (at least) mouse cursor stuttering(like it was skipping frames),
while zstd:1 doesn't(likely because of the low CPU usage during
compression),
(In reply to howaboutsynergy from comment #55)
> On an unrelated note(but since btrfs was thought to be a problem at some
> point), I've discovered that btrfs with zstd:5 (or worse zstd:15) can cause
> (at least) mouse cursor stuttering(like it was skipping frames), while
> zstd:1 doesn't(likely
(In reply to Mikhail Novosyolov from comment #54)
>
> So, something was fixed in upstream, backported to LTS kernel 4.19 and to
> Ubuntu kernel. I don't know what. And that issue is 100% not in BTRFS but is
> another problem or another aspect of the problem.
>
I can suspect commit
Forgot to write, that if I ran
$ stress --vm 2 --vm-bytes 1000M --vm-keep
swap is eventually used normally
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1833281
Title:
System freeze
(In reply to ValdikSS from comment #36)
> Those who experience the issue, try to set the following sysctl settings:
>
> vm.swappiness=100
> vm.watermark_scale_factor=200
>
> It greatly helps on my PC.
It did not change anything. Still only around ~15 MB are swapped while
3.5 out of 4 GB of RAM
Created attachment 284677
log of read_vmstat when filling RAM with new tabs in Chromium
(In reply to Michal Hocko from comment #8)
> Created attachment 258067 [details]
> read_vmstat.c
>
> On Tue 22-08-17 15:55:30, Andrew Morton wrote:
> >
> > (switched to email. Please respond via emailed
Just an idea, try reproducing with kernel patch `le9g.patch`:
```
diff --git a/mm/vmscan.c b/mm/vmscan.c
index dbdc46a84f63..7a0b7e32ff45 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -2445,6 +2445,13 @@ static void get_scan_count(struct lruvec *lruvec, struct
mem_cgroup *memcg,
its(In reply to Mikhail Novosyolov from comment #43)
> I encountered the same or a similar bug on BTRFS + HDD 5400 RPM + swap on a
> separate partition. Unfortunately, that notebook is not mine and is far away
> from me, what makes it hard to make experiments, kernels 4.15 and 4.18 both
> did have
Did anybody try to reproduce it in a virtual environment? It would allow
to bibisect the kernel automatically.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1833281
Title:
System
(In reply to Jim Rees from comment #47)
> This bug is being discussed on lkml:
> https://lkml.org/lkml/2019/8/4/15
>
> I'm not going to participate there, but someone should point them to this
> bug and point out that everything worked fine until 4.10. Sometimes things
> that used to work and
I encountered the same or a similar bug on BTRFS + HDD 5400 RPM + swap
on a separate partition. Unfortunately, that notebook is not mine and is
far away from me, what makes it hard to make experiments, kernels 4.15
and 4.18 both did have this problem, which can be reliably reproduced by
running
#
Did anyone try to reproduce it on (open)SUSE, especially with their LTS kernel
4.12?
SUSE uses BTRFS by default and develops it, there is a chance that they might
have caught and fixed or worked around this problem or maybe their default
sheduler/kernel options/etc prevent this.
--
You
This bug is being discussed on lkml:
https://lkml.org/lkml/2019/8/4/15
I'm not going to participate there, but someone should point them to
this bug and point out that everything worked fine until 4.10. Sometimes
things that used to work and then got broken rate a higher priority.
--
You
(In reply to ValdikSS from comment #41)
> (In reply to Luca from comment #40)
> > I switched from BTRFS to EXT4 and this did seem to solve the problem, at
> > least for me.
>
> Do you use swap file or swap partition? I use swap partition, so it
> shouldn't matter, but I indeed have btrfs for /.
(In reply to Luca from comment #40)
> I switched from BTRFS to EXT4 and this did seem to solve the problem, at
> least for me.
Do you use swap file or swap partition? I use swap partition, so it
shouldn't matter, but I indeed have btrfs for /.
--
You received this bug notification because you
I switched from BTRFS to EXT4 and this did seem to solve the problem, at
least for me.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1833281
Title:
System freeze when memory is put on
As insane as it seems... Reverting back to EXT4 from BTRFS fixed the
problem...
So for me, it is an issue when BTRFS is used as root partition.
I wasn't even using swap files
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in
Actually, it did not solved the problem on my AMD desktop, but so far on
my Intel laptop it seems fine
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1833281
Title:
System freeze when
(In reply to ValdikSS from comment #36)
> Those who experience the issue, try to set the following sysctl settings:
>
> vm.swappiness=100
> vm.watermark_scale_factor=200
>
> It greatly helps on my PC.
I confirm this also works very nicely for me.
Thanks. Not it doesn't slow down at all.
--
Launchpad has imported 38 comments from the remote bug at
https://bugzilla.kernel.org/show_bug.cgi?id=196729.
If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
Update on this. Looks like it's an old upstream bug.
https://bugzilla.kernel.org/show_bug.cgi?id=196729
But now I noticed this also happens on my laptop, but it's more "recoverable"
after something like 25/30 minutes.
Still, this problem is NOT present in older kernels than 4.10
** Bug watch
I tried on FreeBSD today, and this behavior is not present
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1833281
Title:
Complete system freeze even when swapping small amounts of
Are you on a Ryzen platform too?
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1833281
Title:
Complete system freeze even when swapping small amounts of memory
Status in linux package
Not necessarly, I can reproduce this sometimes with other stress tests
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1833281
Title:
Complete system freeze even when swapping small
Does this happen to you while using a web browser? This is my issue and
it doesn't matter which browser or which kernel. Absolute garbage. Not
sure what's happened with Ubuntu or why this is happening, but I'll try
to figure out why since clearly I'm not the only person this is
happening to and
A small update on this.
I tried another distribution with the same kernel version, and this does
not happen... I don't really know why. 0 times out of 10 this does not
happen.
Also, when this occurs, triggering the OOM with SYSRQ+F also fixes the
issues, but shows that no swap memory was being
** Changed in: linux (Ubuntu)
Status: Incomplete => Confirmed
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1833281
Title:
Complete system freeze even when swapping small
apport information
** Attachment added: "CurrentDmesg.txt"
https://bugs.launchpad.net/bugs/1833281/+attachment/5271425/+files/CurrentDmesg.txt
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
apport information
** Attachment added: "ProcCpuinfo.txt"
https://bugs.launchpad.net/bugs/1833281/+attachment/5271428/+files/ProcCpuinfo.txt
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
apport information
** Attachment added: "Lspci.txt"
https://bugs.launchpad.net/bugs/1833281/+attachment/5271426/+files/Lspci.txt
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1833281
apport information
** Attachment added: "UdevDb.txt"
https://bugs.launchpad.net/bugs/1833281/+attachment/5271434/+files/UdevDb.txt
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
apport information
** Tags added: apport-collected bionic
** Description changed:
I'm reporting this since it's reproduceable the 70% of the time.
Summary:
In different circumstances, when the systems starts to swap out RAM
memory, even small amounts, the system becomes completely
apport information
** Attachment added: "PulseList.txt"
https://bugs.launchpad.net/bugs/1833281/+attachment/5271433/+files/PulseList.txt
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
apport information
** Attachment added: "CRDA.txt"
https://bugs.launchpad.net/bugs/1833281/+attachment/5271424/+files/CRDA.txt
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1833281
apport information
** Attachment added: "ProcCpuinfoMinimal.txt"
https://bugs.launchpad.net/bugs/1833281/+attachment/5271429/+files/ProcCpuinfoMinimal.txt
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
apport information
** Attachment added: "ProcEnviron.txt"
https://bugs.launchpad.net/bugs/1833281/+attachment/5271430/+files/ProcEnviron.txt
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
apport information
** Attachment added: "Lsusb.txt"
https://bugs.launchpad.net/bugs/1833281/+attachment/5271427/+files/Lsusb.txt
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1833281
apport information
** Attachment added: "ProcInterrupts.txt"
https://bugs.launchpad.net/bugs/1833281/+attachment/5271431/+files/ProcInterrupts.txt
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
apport information
** Attachment added: "ProcModules.txt"
https://bugs.launchpad.net/bugs/1833281/+attachment/5271432/+files/ProcModules.txt
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
This bug is missing log files that will aid in diagnosing the problem.
While running an Ubuntu kernel (not a mainline or third-party kernel)
please enter the following command in a terminal window:
apport-collect 1833281
and then change the status of the bug to 'Confirmed'.
If, due to the
Public bug reported:
I'm reporting this since it's reproduceable the 70% of the time.
Summary:
In different circumstances, when the systems starts to swap out RAM
memory, even small amounts, the system becomes completely unusuable and
the screen freezes up, no mouse movement, no TTY access or
62 matches
Mail list logo