Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #66443 > unrolled thread

Bug#953017: linux-image-amd64: Regression from "mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()"

Started byChen-Yu Tsai <wens@csie.org>
First post2020-03-03 11:10 +0100
Last post2020-04-16 13:40 +0200
Articles 5 — 3 participants

Back to article view | Back to linux.debian.kernel


Contents

  Bug#953017: linux-image-amd64: Regression from "mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()" Chen-Yu Tsai <wens@csie.org> - 2020-03-03 11:10 +0100
    Bug#953017: Fixes in Upstream Chen-Yu Tsai <wens@csie.org> - 2020-04-09 08:00 +0200
    Bug#953017: marked as done (linux-image-amd64: Regression from  "mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()") "Debian Bug Tracking System" <owner@bugs.debian.org> - 2020-04-15 02:40 +0200
    Bug#953017: closed by Ben Hutchings <ben@decadent.org.uk> (Re: Bug#953017: Fixes in Upstream) Chen-Yu Tsai <wens@csie.org> - 2020-04-16 12:00 +0200
      Bug#953017: closed by Ben Hutchings <ben@decadent.org.uk> (Re: Bug#953017: Fixes in Upstream) Salvatore Bonaccorso <carnil@debian.org> - 2020-04-16 13:40 +0200

#66443 — Bug#953017: linux-image-amd64: Regression from "mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()"

FromChen-Yu Tsai <wens@csie.org>
Date2020-03-03 11:10 +0100
SubjectBug#953017: linux-image-amd64: Regression from "mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()"
Message-ID<zGcEW-6Bw-21@gated-at.bofh.it>
Package: linux-image-amd64
Version: 5.4.13-1~bpo10+1
Severity: important
Tags: upstream patch

Dear Maintainer,

A performance regression stemming from the patch "mm/vmalloc: Sync
unmappings in __purge_vmap_area_lazy()" in all mainline and current
stable kernels, except 3.16.y, was reported by multiple persons [1].
The regression involves any activity that exercises vmalloc a lot,
such as creating threads with CONFIG_VMAP_STACK=y or tty allocation
(for example by SSH servers).

A fix [2] for this was posted last October and was picked up in the
-mm tree last November [3]. However this fix did not make it into
v5.6-rc or any other release. It is still only in the -mm tree.

AFAICT this regression only impacts x86 platforms, as it is the only
platform that has a custom vmalloc_sync_all() instead of the standard
no-op stub.

As per my report to upstream, I currently have one production server
running with the offending patch reverted. I also have another with
the fix applied, and that seems to work well.

Please consider adding the fix to Debian kernel images until upstream
kernels have it.

[1] https://www.spinics.net/lists/stable/msg349763.html
[2] https://patchwork.kernel.org/patch/11181159/
[3] https://www.spinics.net/lists/mm-commits/msg141749.html

-- System Information:
Debian Release: 10.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf, i386, arm64

Kernel: Linux 5.2.0-0.bpo.2-amd64 (SMP w/8 CPU cores)
Locale: LANG=zh_TW.UTF-8, LC_CTYPE=zh_TW.UTF-8 (charmap=UTF-8), LANGUAGE=zh_TW.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages linux-image-amd64 depends on:
ii  linux-image-5.4.0-0.bpo.3-amd64  5.4.13-1~bpo10+1

linux-image-amd64 recommends no packages.

linux-image-amd64 suggests no packages.

-- no debconf information

[toc] | [next] | [standalone]


#66722 — Bug#953017: Fixes in Upstream

FromChen-Yu Tsai <wens@csie.org>
Date2020-04-09 08:00 +0200
SubjectBug#953017: Fixes in Upstream
Message-ID<zTyoh-6sz-3@gated-at.bofh.it>
In reply to#66443
The fix for this issue has been merged in v5.6-rc7 and is part of the
v5.6 release. The commit in upstream is:

    763802b53a42 x86/mm: split vmalloc_sync_all()

This has also been backported to all current LTS kernels except 3.16
in the following releases:

    v4.4.218
    v4.9.218
    v4.14.175
    v4.19.113
    v5.4.28

[toc] | [prev] | [next] | [standalone]


#66757 — Bug#953017: marked as done (linux-image-amd64: Regression from "mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()")

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2020-04-15 02:40 +0200
SubjectBug#953017: marked as done (linux-image-amd64: Regression from "mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()")
Message-ID<zVEfT-2Bx-3@gated-at.bofh.it>
In reply to#66443

[Multipart message — attachments visible in raw view] — view raw

Your message dated Wed, 15 Apr 2020 01:32:18 +0100
with message-id <efaecb122f4e4341135cd1f9a67e3d92693ffdb8.camel@decadent.org.uk>
and subject line Re: Bug#953017: Fixes in Upstream
has caused the Debian Bug report #953017,
regarding linux-image-amd64: Regression from "mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()"
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
953017: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=953017
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [next] | [standalone]


#66774 — Bug#953017: closed by Ben Hutchings <ben@decadent.org.uk> (Re: Bug#953017: Fixes in Upstream)

FromChen-Yu Tsai <wens@csie.org>
Date2020-04-16 12:00 +0200
SubjectBug#953017: closed by Ben Hutchings <ben@decadent.org.uk> (Re: Bug#953017: Fixes in Upstream)
Message-ID<zW9tn-5bF-3@gated-at.bofh.it>
In reply to#66443
The stable kernel is still at v4.19.98 though.

On Wed, Apr 15, 2020 at 8:36 AM Debian Bug Tracking System
<owner@bugs.debian.org> wrote:
>
> This is an automatic notification regarding your Bug report
> which was filed against the src:linux package:
>
> #953017: linux-image-amd64: Regression from "mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()"
>
> It has been closed by Ben Hutchings <ben@decadent.org.uk>.
>
> Their explanation is attached below along with your original report.
> If this explanation is unsatisfactory and you have not received a
> better one in a separate message then please contact Ben Hutchings <ben@decadent.org.uk> by
> replying to this email.
>
>
> --
> 953017: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=953017
> Debian Bug Tracking System
> Contact owner@bugs.debian.org with problems
>
>
>
> ---------- Forwarded message ----------
> From: Ben Hutchings <ben@decadent.org.uk>
> To: 953017-done@bugs.debian.org
> Cc:
> Bcc:
> Date: Wed, 15 Apr 2020 01:32:18 +0100
> Subject: Re: Bug#953017: Fixes in Upstream
> Version: 5.5.13-1
>
> On Thu, 2020-04-09 at 13:40 +0800, Chen-Yu Tsai wrote:
> > The fix for this issue has been merged in v5.6-rc7 and is part of the
> > v5.6 release. The commit in upstream is:
> >
> >     763802b53a42 x86/mm: split vmalloc_sync_all()
> >
> > This has also been backported to all current LTS kernels except 3.16
> > in the following releases:
> >
> >     v4.4.218
> >     v4.9.218
> >     v4.14.175
> >     v4.19.113
> >     v5.4.28
>
> ...and 5.5.12, so this is fixed in unstable.
>
> Ben.
>
> --
> Ben Hutchings
> It is a miracle that curiosity survives formal education.
>                                                       - Albert Einstein
>
>
>
>
>
> ---------- Forwarded message ----------
> From: Chen-Yu Tsai <wens@csie.org>
> To: Debian Bug Tracking System <submit@bugs.debian.org>
> Cc:
> Bcc:
> Date: Tue, 03 Mar 2020 17:51:31 +0800
> Subject: linux-image-amd64: Regression from "mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()"
> Package: linux-image-amd64
> Version: 5.4.13-1~bpo10+1
> Severity: important
> Tags: upstream patch
>
> Dear Maintainer,
>
> A performance regression stemming from the patch "mm/vmalloc: Sync
> unmappings in __purge_vmap_area_lazy()" in all mainline and current
> stable kernels, except 3.16.y, was reported by multiple persons [1].
> The regression involves any activity that exercises vmalloc a lot,
> such as creating threads with CONFIG_VMAP_STACK=y or tty allocation
> (for example by SSH servers).
>
> A fix [2] for this was posted last October and was picked up in the
> -mm tree last November [3]. However this fix did not make it into
> v5.6-rc or any other release. It is still only in the -mm tree.
>
> AFAICT this regression only impacts x86 platforms, as it is the only
> platform that has a custom vmalloc_sync_all() instead of the standard
> no-op stub.
>
> As per my report to upstream, I currently have one production server
> running with the offending patch reverted. I also have another with
> the fix applied, and that seems to work well.
>
> Please consider adding the fix to Debian kernel images until upstream
> kernels have it.
>
> [1] https://www.spinics.net/lists/stable/msg349763.html
> [2] https://patchwork.kernel.org/patch/11181159/
> [3] https://www.spinics.net/lists/mm-commits/msg141749.html
>
> -- System Information:
> Debian Release: 10.3
>   APT prefers stable-updates
>   APT policy: (500, 'stable-updates'), (500, 'stable')
> Architecture: amd64 (x86_64)
> Foreign Architectures: armhf, i386, arm64
>
> Kernel: Linux 5.2.0-0.bpo.2-amd64 (SMP w/8 CPU cores)
> Locale: LANG=zh_TW.UTF-8, LC_CTYPE=zh_TW.UTF-8 (charmap=UTF-8), LANGUAGE=zh_TW.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: sysvinit (via /sbin/init)
>
> Versions of packages linux-image-amd64 depends on:
> ii  linux-image-5.4.0-0.bpo.3-amd64  5.4.13-1~bpo10+1
>
> linux-image-amd64 recommends no packages.
>
> linux-image-amd64 suggests no packages.
>
> -- no debconf information

[toc] | [prev] | [next] | [standalone]


#66776 — Bug#953017: closed by Ben Hutchings <ben@decadent.org.uk> (Re: Bug#953017: Fixes in Upstream)

FromSalvatore Bonaccorso <carnil@debian.org>
Date2020-04-16 13:40 +0200
SubjectBug#953017: closed by Ben Hutchings <ben@decadent.org.uk> (Re: Bug#953017: Fixes in Upstream)
Message-ID<zWb29-6fk-3@gated-at.bofh.it>
In reply to#66774
Hi,

On Thu, Apr 16, 2020 at 05:52:08PM +0800, Chen-Yu Tsai wrote:
> The stable kernel is still at v4.19.98 though.

It is perfectly fine OTOH to actually close the bug in multiple
versions, which happened here. In fact the change for buster is as
well pending (cf.
https://salsa.debian.org/kernel-team/linux/-/merge_requests/213/diffs?commit_id=3be8cdd48491a034f252ecedd943635efd39c8a5).

So it will be as well in the next update targetting buster in the next
point release.

Regards,
Salvatore

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web