Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp1669828imc; Fri, 22 Feb 2019 09:05:22 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia1XH/ZKcNSsbhShJmC8b0XR3Wk12AZtgM08yud+S3uIIWc+30n6vl7UdXrXn7sIX2bUGWF X-Received: by 2002:a63:1060:: with SMTP id 32mr634959pgq.126.1550855122733; Fri, 22 Feb 2019 09:05:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550855122; cv=none; d=google.com; s=arc-20160816; b=Ba1ztaJbd2LtrW9BVjmi7BJSocFFyt/mtdkNiMm5Bjw+cOd1DckzeSGj+4UrIo/l+V 0cBJ2ZQevPc8ub3pOe0nTTglyZz7yZPO9LIUVrK2Ylts9wHJQ06C8dLjxnGbCSrq7+E1 R3xk7k7JGpevHvf8eBPks0a5BrZXR2yMTM9c/445JiYNVWfAg9zY/CQsLjwC9nfTIwrh 9uQSBm9eiOj2gF+lcZCZlThF4tGa3AxZCkILBCW23iJ0G1945SVMMz5WBE1F4XBMGMm6 CHnWTkNiuJWL/u7vOfVK/Q+cJhVVMY0FeaBeMRF/0pbGJQAzor3lGoeYScgdKv2j9hO9 aXhg== 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=Gi+wVLz0Hw8UDklGeXVeQGhe8f3ijo3+A6zdREiio5I=; b=HRMX3vg/jLH2NBwG+GDWk6RdJhMp1z/1wFaB486Bat7aRHSvdpIPYvJpRtK29YciXU DVQaWHFnLiEEO61Ojx1ePp5lr8e9hOOiqjdygvyn+eYGJdqWasN9g/AdSCCW/btlfXpb NVal8na2K9U8y/q6w1lROzz6WjUn1mlVlh2jqVezGs7VH5zladLo88wmjhogKAPcxARR jP59QIejA2LBBmlHiXYbCGlRBbhFxn4xm58xlfgzXyX/i3IDmQ28iq49c0Hr4tTXAjso YxAeTdrFEqcBb2ytxvEgGPEri2AtznlYs0qOZLK73Lp45N8hMVxbwtA7GbprXTllRXqQ YgpA== 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 t17si1715236plr.268.2019.02.22.09.05.06; Fri, 22 Feb 2019 09:05:22 -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 S1727039AbfBVREP (ORCPT + 99 others); Fri, 22 Feb 2019 12:04:15 -0500 Received: from mx1.redhat.com ([209.132.183.28]:7335 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbfBVREP (ORCPT ); Fri, 22 Feb 2019 12:04:15 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D16D4369CC; Fri, 22 Feb 2019 17:04:14 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.43.17.152]) by smtp.corp.redhat.com (Postfix) with SMTP id 7B06B1001E9C; Fri, 22 Feb 2019 17:04:13 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Fri, 22 Feb 2019 18:04:14 +0100 (CET) Date: Fri, 22 Feb 2019 18:04:12 +0100 From: Oleg Nesterov To: Roman Gushchin Cc: Roman Gushchin , Tejun Heo , Kernel Team , "cgroups@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v8 0/7] freezer for cgroup v2 Message-ID: <20190222170412.GB5596@redhat.com> References: <20190219220252.4906-1-guro@fb.com> <20190220143748.GA9477@redhat.com> <20190220220020.GA16335@castle.DHCP.thefacebook.com> <20190221162923.GA26064@redhat.com> <20190221224352.GA24252@tower.DHCP.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190221224352.GA24252@tower.DHCP.thefacebook.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 22 Feb 2019 17:04:14 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/21, Roman Gushchin wrote: > > > > Generally speaking, any process hanging in D-state > > > for a long time isn't the nicest object from the userspace's point of view. > > > > Roman, this is unfair comparison ;) > > Why not? OK, you are trolling me, let me troll you back... So, generally speaking, the very idea of freezer looks wrong, any process hanging in do_freezer_trap() for a long time isn't the nicest object from the userspace's point of view. > > And, apart from reading/writing the registers, what can ptrace do with a frozen > > tracee? This doesn't look like a "must have" feature to me. > > I think the minimal requirement is that the tracing application should not hang > and wait for tracee to be unfrozen. > So, imagine you're trying to debug an application in production with gdb, > and occasionally gdb just hangs because some cluster management stuff froze > the tracee's cgroup. Not the best user experience. Firstly, gdb will likely hang anyway. Say, single-step will hang and ^C won't work. Secondly, just imagine you're trying to debug an application in production with gdb, and occasionally gdb just hangs because some cluster management stuff froze the gdb's cgroup. Not the best user experience. Roman, may be it was not clear, but I never said that ptrace/kill makes no sense. But yes, we probably disagree about how much this is important. I won't really argue, but so far I am not sure I understand how this can be implemented. > > At least, may I ask you again to make (if possible) a separate patch which adds > > the ability to kill/ptrace? > > I'll try, but not sure if it can make the code easier for review. > It looks like this ability defines the implementation. OK, I won't insist, I understand that this is not simple. Oleg.