Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2724123pxu; Sun, 29 Nov 2020 03:01:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgi5I3eDIODdsbKDng8mpUd7i+goH/Gm/2APSQsPohGd0IcIwVBVVmaqvVsP+8/VI8yFiw X-Received: by 2002:aa7:dbca:: with SMTP id v10mr16425897edt.219.1606647714515; Sun, 29 Nov 2020 03:01:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606647714; cv=none; d=google.com; s=arc-20160816; b=B1Ydx1tOxz/3d0pXNDuGtJXmm3H3jWZc9+ZYhTA3uCR4uRiXByaWQgu1DLonBNJRXE 7OD0W/pdorJ/bVBFEnvy7kPAx6FseSTK5/c3awBua0V22DsvvK928/85dGNOk25y7iRO UbNHgQm2c9s/B5IXEXjB5aphbOoBwxHpvc124N+jmYQ1dJJvqPP5AGtndIuKH04zNHd+ dtrg3EsX9YRlLKDiw2G4C9tDJXXM8WcFsQiel86/v3SJBUYgqQrTDbYI7Z3z2KGtUb93 wRGrcdhea38tQmZ4f7TfWlXSWyJqDiX8VOf0n5zDlc1i0XVXVme/P42i5pMUhMVqKOQp G7Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=PUdFPaFCW4x9ILV+Apr6jGDPI/45BTBJvQ875KxuL7M=; b=Vvy5Qrja23ePiARP43py19kP7h7PN0l8cXg8SufoCKU2ZziCvMQRaReOKBg3Lv2g1J boWztVFHb4MtrqPYYpKRKjVqRMK1+zUfnMtvmyxdV5EmcwRChb/mty6hf1op3fwlNjxX nX2n4gdSGp0jackDXHUfPdzEpsjsOasGr4YukK5sKfQi2jfIj23OgQvaXpiNir+VWDLX GZ/sOjj5tO1cC7Nv4gyf2LaXef5OLCNACk5T2GaWxclyziDD4U0xAE3JgOqvV+Tdk47A Pvz8p3lHY+vtJjI+LGwNl7k9SBjgCXTBFiwKHmjP7s43kRyU01Lp4dk5Q+WiUgFKQ8dv m8dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ePOGmg6c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb17si8546139ejb.293.2020.11.29.03.01.31; Sun, 29 Nov 2020 03:01:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ePOGmg6c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726635AbgK2K7H (ORCPT + 99 others); Sun, 29 Nov 2020 05:59:07 -0500 Received: from mout.gmx.net ([212.227.17.20]:59021 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725852AbgK2K7E (ORCPT ); Sun, 29 Nov 2020 05:59:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606647417; bh=xuUwzZ7J2wadinLY3BrTlVoxFqhsceEnaYR1kreYZ6c=; h=X-UI-Sender-Class:Subject:From:To:Cc:Date:In-Reply-To:References; b=ePOGmg6cTvk3A8f3JZd4VecBJNrCkwo6OPUqccm9oqNbY6T1uiV+q9viKtl7pZGbI /rOOoeC10vAZbnHJpxIF6c0OU3i53qRiZPbYIOaWaKKCxR/pVrqCYd5uIsrflslpWu ++inwpavKK+DSrntZB32485YKrFTeQU2h2UqWvGM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from homer.fritz.box ([185.191.218.83]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N2V4J-1k3pH43EFj-013w5p; Sun, 29 Nov 2020 11:56:57 +0100 Message-ID: Subject: Re: scheduling while atomic in z3fold From: Mike Galbraith To: Oleksandr Natalenko , linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, Andrew Morton , Sebastian Andrzej Siewior , Steven Rostedt , Thomas Gleixner , linux-rt-users@vger.kernel.org Date: Sun, 29 Nov 2020 11:56:55 +0100 In-Reply-To: References: <20201128140523.ovmqon5fjetvpby4@spock.localdomain> <20201128140924.iyqr2h52z2olt6zb@spock.localdomain> <20201128142723.zik6d5skvt3uwu5f@spock.localdomain> <15171df044b167351e7f6a688aabd71bade9ae2a.camel@gmx.de> <79ee43026efe5aaa560953ea8fe29a826ac4e855.camel@gmx.de> Content-Type: text/plain; charset="ISO-8859-15" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:0KkU+dO0CotFg8t98ZX+R+ppUKncpqsi1f3DNTFjPAkwxZI/cMf fOUGowMDXMp16ib7vCoLfW59yuQr1b+C8biP51nhq7Wm9UPGQ9uNYwvIW7qaoZUPzMhMFx9 C9ad/1eVySHF7O0ptB5l8pIbT6f3bPNLJwiFzR4By1xjYM7STZanAP1fe7o/S0Atd1bVtYR sbD2N19+KbuWzaM4mss4w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:3NxniihrIMQ=:NwxAzoQDYk6FvcXnaDATmx y2OKPHWUPRwKVmpCIKZmgKEsn3Jvmg1IWyji3F4EHzoqdSXW/mR/ofxTPbM2rW81GuIrbZruu n1I+wM4zcTqNOgs5QIRKoxtInhW1Bf5hl+d2SuaLF84WNCSslAXFe3Lwb0aP35/gfiQybNkmB BPqsB5sgwN5yDO/rI7xzReX8z72Y5/b1SDQ02b8u9lUJwjrHSVYrJ9WHxRszu5h5TDjSgeuBo lwznEaIE4EkCkdzrWkP/mvvAfAEm8opasML1q1u/VhpVm/cZTHuv1rx1XADDaHJ3ColoH0yfj Jl90CbCFjaplvNhsZsmmV3NLf2vwYMb1XusM4n66kxDSzCb8m7ZfkpDxV7MhjoNYdjiuhC6AM XT0sGcCzRRUGcUfur4IVgV9UDzsiLvTExgYolyDfLtzJOREXdWG3lbMoJR68oOiH0ijelYFIS BukCHpFBBIUa3VUC2kbKVtIbAExTYCslXTSg3EibM0rc4OVOcP2fy41vv2uT9cmqYpTuN7Lo4 vlN6inPBjALISNSiiyXj1T1STX9Nw+S111a2oFFpErO7rNQyLLSjiWa96f7/9s+ZGIWl3dfXF T/0AzK/OGFLks/ac1oSPmrzV/MFvhd061Fstyj5AH7mgyOZL1K+CfWGNvk7wWVPxPXm/LJb4/ zSy+AhGA/Exr90dVQ80YvOVm3Nw0wMuSgtpeu5POEcinjg4m1w44JPbIoRY7aS2c+VdKcl4KV ZhTQJWjBeGYVs5fa8arVRfSXeNQP+vc24GqKsOBvQwNazr3tcg0Kk8LgwAlypk707NC500nrF wGrqC/DfmZE54Zjrdr+Je66iFmredHbtba9LkITmwg2Xg9l3SfkkdMkBhjUDMEiqo8+pGhEk5 QHE8ZmYOx7jK7RmriKAQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2020-11-29 at 10:21 +0100, Mike Galbraith wrote: > On Sun, 2020-11-29 at 08:48 +0100, Mike Galbraith wrote: > > On Sun, 2020-11-29 at 07:41 +0100, Mike Galbraith wrote: > > > On Sat, 2020-11-28 at 15:27 +0100, Oleksandr Natalenko wrote: > > > > > > > > > > Shouldn't the list manipulation be protected with > > > > > > local_lock+this_cpu_ptr instead of get_cpu_ptr+spin_lock? > > > > > > > > Totally untested: > > > > > > Hrm, the thing doesn't seem to care deeply about preemption being > > > disabled, so adding another lock may be overkill. It looks like you > > > could get the job done via migrate_disable()+this_cpu_ptr(). > > > > There is however an ever so tiny chance that I'm wrong about that :) > > Or not, your local_lock+this_cpu_ptr version exploded too. > > Perhaps there's a bit of non-rt related racy racy going on in zswap > thingy that makes swap an even less wonderful idea for RT than usual. Raciness seems to be restricted to pool compressor. "zbud" seems to be solid, virgin "zsmalloc" explodes, as does "z3fold" regardless which of us puts his grubby fingerprints on it. Exploding compressors survived zero runs of runltp -f mm, I declared zbud to be at least kinda sorta stable after box survived five runs. -Mike