Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp1641223imc; Fri, 22 Feb 2019 08:35:27 -0800 (PST) X-Google-Smtp-Source: AHgI3IYjiVDDRZyYXIYA5g28j/Ww32XC3Zp3JKIJ0FB/FaI4UPAEHhc+Wvby1juTQGP0A0K3Wk0X X-Received: by 2002:a62:5c4:: with SMTP id 187mr5010073pff.153.1550853327761; Fri, 22 Feb 2019 08:35:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550853327; cv=none; d=google.com; s=arc-20160816; b=z14trDnQxp78r+gCDrex2yijlveE8rs7QsEvM6Hw4VppeW4vuzLRuJJi7Y04BsuwAa RP4E94skqij8EdIj7v/xDVi4JhdbwTw1kMTTpyjpo8eYKVaDgdQ5UFiT7KPiBFmO+0WX JtKOIOmjZY/2ePO1wVqVMA1pDpsDdd7mPYkA5mS2fG4lb8reFbh1TzQ2Y5cLoNruumoT AM43jdGUiqYmfgOS+fRK1y4QVdNLtOAeEpWLDLksArkF1rqD7As76EhKrFgA4SdDer/L YkwX467JCweFZEZQ92ErimVtJmogqKP1q9K0kyJwYntSwSLf8RnRuszBFG7/i7HdrwQI 7CgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=y7AiZQFtLoTsd0jST5VgEFpeZoqu1+FBS5LSHGpr4OU=; b=bk3d0QbzMJdVGDJnmt2km+aFsm4RvsmCc7VFqCI0Na8sBaAGqd14+iMBFTqqlf9VWE gx7qZhiQLr1V9Dx71eZcar8sx/Kz6BqZKgGefkh4ydfIrq+BI17cEKGVhJnBSRMuN5RD ewouJRgswRwFXCrjSron0JTEW0671Ihh16fgnHaGkRmE9NBmaHYeBqFhmGkbdX47EmWO pJwnoWXR8POQiH4RHcAVOctHKEBGdluJXSlNxKYZSBGaeM7vEI1myJhwvl2dKDBn4Dos fhE0DVUoWE6jngVF4aHVEM35xNip4Vrj4vwJ2ZOHEt68Efa3tNLc8vquVioqCRnGyGef 21WQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b75si1038797pfc.105.2019.02.22.08.35.11; Fri, 22 Feb 2019 08:35:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726886AbfBVQep (ORCPT + 99 others); Fri, 22 Feb 2019 11:34:45 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47420 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726019AbfBVQeo (ORCPT ); Fri, 22 Feb 2019 11:34:44 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7FEED58586; Fri, 22 Feb 2019 16:34:44 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.43.17.152]) by smtp.corp.redhat.com (Postfix) with SMTP id 1F41E60BE6; Fri, 22 Feb 2019 16:34:42 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Fri, 22 Feb 2019 17:34:44 +0100 (CET) Date: Fri, 22 Feb 2019 17:34:42 +0100 From: Oleg Nesterov To: Tejun Heo Cc: Roman Gushchin , Roman Gushchin , Kernel Team , "cgroups@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v8 0/7] freezer for cgroup v2 Message-ID: <20190222163441.GA5596@redhat.com> References: <20190219220252.4906-1-guro@fb.com> <20190220143748.GA9477@redhat.com> <20190220220020.GA16335@castle.DHCP.thefacebook.com> <20190221162923.GA26064@redhat.com> <20190221173422.GY50184@devbig004.ftw2.facebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190221173422.GY50184@devbig004.ftw2.facebook.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 22 Feb 2019 16:34:44 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 02/21, Tejun Heo wrote: > > So, I really wanna avoid allowing userspace to cause D state sleeps. ... > ptrace support is a lot less important than kill for sure but if at > all possible I think it'd be better to have it Tejun, I agree it would be better. I did not argue with that. The question is how this can be implemented. And how much uglifications^W complications in the core kernel code this needs. > To summarize, the ideal result is the frozen state to be "stuck in > jobctl stop loop" Not sure I understand, but I don't think this can work... Let me repeat, imo the freezer should be "reliable", it shouldn't stuck in CGRP_FREEZE state forever if, say, it races with vfork(). And personally I think this is more important than (very limited) ptrace support. So I think it too should somehow interact with freezable_schedule/etc. Oleg.