Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1295997pxa; Sat, 22 Aug 2020 20:01:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxq/2jyde453PBw8ZywAbZyM8OdwSGSwSyD/q6ZDDNofosML7VX/Grn8c5Tq5mWl2S40ojK X-Received: by 2002:a05:6402:1c07:: with SMTP id ck7mr354176edb.84.1598151697595; Sat, 22 Aug 2020 20:01:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598151697; cv=none; d=google.com; s=arc-20160816; b=WmXMIGJTdks75ncQR7XvjH940asvDIjYG/qVaRjJPT+KApL03zWKv7f4w7+dtjNh+A vzYQp75x9rsFQ0xnSovIx/JcPtnty4RwmaCa9U63qyv2VMcv4Eh/wDKR6Wv0lOpoc+2n CctfQgW6/dJUQz87dJlMTMl5K7iT9FXdBWyiEGi2lLltenqGo2p9SSJ3mFL37N7yn6Cr RCnf02UmG+4N3xrSRUNZd9Ff/41AjFlXzaoR299v704WAvh21vDOIYpfH4Jh+v4LmPjx nFAva5v9qfBeYxWhi7NEOVf+PjKNGOoHvGbqL43zvQakRrfy3ZIgF+CgHS3oCSeee/9+ V5Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature; bh=TE0Zpj1FO1fCF2Nzd7hXL6TqjYYA4mP9yp1lb4isM3o=; b=JpnmGeJTDYdcYbkuKPKTukDipNzpMsV8791r7AcjOPn7ua75qmkBzz6YCupEUR46iE sh7b8hB2pYl451OX8jK4C9woiUB8W5WR19A3OEQXACFUiCYp4Vv5aozwAybLOOOCJHR8 rPEeeHP9DlwEFeh/LehTx235efO15f7XYHdB9RzlnoeNOKujBRZmwa3FdygZrsdjt560 qvbiFUtCJufs4hPxi6cN6Mi0B4lKvm47UeWx6oTdty+U5WFnBLZnwwRC8ehRMFZLPbfV A6ADZpW2Vw+c/P4ZzPaEnJsHQSmR6QyJ27CHdwv4Pi5+o5cEmdZuSd9owF9ypnGkhC9D KEgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PE7FzAPR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f10si4018374ejc.652.2020.08.22.20.01.13; Sat, 22 Aug 2020 20:01:37 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=PE7FzAPR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726999AbgHWCtb (ORCPT + 99 others); Sat, 22 Aug 2020 22:49:31 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:24235 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726959AbgHWCta (ORCPT ); Sat, 22 Aug 2020 22:49:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1598150969; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TE0Zpj1FO1fCF2Nzd7hXL6TqjYYA4mP9yp1lb4isM3o=; b=PE7FzAPRK5gVl3krnskUvDTlMAMVO9oqCGehoZoPeZeK91NkBCF9IQn0YFHlGF6wl/0x5t kvAaBT5kbmhAmyL6L8Uj1TKu7EVchcmPg5d8LJ6O0cVI9FIi/Nn5vgyHGDLHymJ0NSndPZ jqFCb+aB/W27/VEKVzo7/R8npXeqiQc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-28-bJphY9BWNqKZtumUMnw_PA-1; Sat, 22 Aug 2020 22:49:27 -0400 X-MC-Unique: bJphY9BWNqKZtumUMnw_PA-1 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id 126901074658; Sun, 23 Aug 2020 02:49:25 +0000 (UTC) Received: from llong.remote.csb (ovpn-112-211.rdu2.redhat.com [10.10.112.211]) by smtp.corp.redhat.com (Postfix) with ESMTP id CFF076E715; Sun, 23 Aug 2020 02:49:19 +0000 (UTC) Subject: Re: [RFC PATCH 0/8] memcg: Enable fine-grained per process memory control To: Chris Down , peterz@infradead.org Cc: Michal Hocko , Andrew Morton , Johannes Weiner , Vladimir Davydov , Jonathan Corbet , Alexey Dobriyan , Ingo Molnar , Juri Lelli , Vincent Guittot , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org References: <20200817140831.30260-1-longman@redhat.com> <20200818091453.GL2674@hirez.programming.kicks-ass.net> <20200818092617.GN28270@dhcp22.suse.cz> <20200818095910.GM2674@hirez.programming.kicks-ass.net> <20200818101756.GA155582@chrisdown.name> From: Waiman Long Organization: Red Hat Message-ID: <989570d6-639e-6385-d638-c4729665c2e4@redhat.com> Date: Sat, 22 Aug 2020 22:49:19 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200818101756.GA155582@chrisdown.name> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/18/20 6:17 AM, Chris Down wrote: > peterz@infradead.org writes: >> But then how can it run-away like Waiman suggested? > > Probably because he's not running with that commit at all. We and > others use this to prevent runaway allocation on a huge range of > production and desktop use cases and it works just fine. > >> /me goes look... and finds MEMCG_MAX_HIGH_DELAY_JIFFIES. >> >> That's a fail... :-( > > I'd ask that you understand a bit more about the tradeoffs and > intentions of the patch before rushing in to declare its failure, > considering it works just fine :-) > > Clamping the maximal time allows the application to take some action > to remediate the situation, while still being slowed down > significantly. 2 seconds per allocation batch is still absolutely > plenty for any use case I've come across. If you have evidence it > isn't, then present that instead of vague notions of "wrongness". > Sorry for the late reply. I ran some test on the latest kernel and and it seems to work as expected. I was running the test on an older kernel that doesn't have this patch and I was not aware of it before hand. Sorry for the confusion. Cheers, Longman