From: Andrei Borzenkov <arvidjaar@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Stuttering (mouse, keyboard input, video) in 5.3/5.4 when swap is being used.
Date: Sat, 18 Jan 2020 22:20:18 +0300 [thread overview]
Message-ID: <4dd4d78b-3bc5-3fd3-d44f-c1e259537b0e@gmail.com> (raw)
Recently Ubuntu released kernel 5.3 for 18.04 LTS and I immediately
started observing periodic stalls/freezes without any change in my
normal usage pattern. The effects I noticed:
- mouse is frozen for couple of seconds
- keyboard input is frozen for couple of seconds
- video freezes for a couple of seconds
After some searching and experiments all those freezes look associated
with swap usage. To make it absolutely clear - when this happens there
is *NO* memory shortage. The situation is really - as soon as _some_
swap is being used, I start to see observed effects. It is enough to
have several megabytes of used swap for this. I have a lot of free
memory when this happens. Like
total used free shared buff/cache
available
Mem: 7.7G 1.7G 3.6G 419M 2.4G
5.2G
Swap: 15G 218M 15G
This is trivially demonstrated by removing swap when stuttering is
observed. Without any change in workload stuttering immediately
disappears. If I add swap back, I again observe stuttering as soon as
even minimal amount of swap is allocated.
I tested also 5.4.13 which shows the same problem. From practical point
of view it seems to be less eager to use swap, so at first it looks like
problem is fixed; but if I force it to allocate swap (by starting
several VM as example) I again see the same freezes.
I then went back to 5.0 and problem is gone. No matter how many
processes I start there are no freezes. I do see obvious slowdown due to
increased disk activity as memory consumption grows, but this is expected.
To me this looks like rather serious regression. There seem to be quite
a lot of posts about similar issues starting with 5.3.
I understand that all this is pretty much unscientific. I am happy to
collect whatever information may be required (including compiling custom
kernel).
reply other threads:[~2020-01-18 19:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4dd4d78b-3bc5-3fd3-d44f-c1e259537b0e@gmail.com \
--to=arvidjaar@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome