Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp508320imm; Wed, 1 Aug 2018 00:04:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdqPjuXVCO7tJtbUg3zChcaJmPMk8ii1aonx7UadWfIkeAlkXaKSfI4xfbfEYJ+r3xRA5jS X-Received: by 2002:a17:902:bd93:: with SMTP id q19-v6mr23336366pls.238.1533107057699; Wed, 01 Aug 2018 00:04:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533107057; cv=none; d=google.com; s=arc-20160816; b=c8Dt6K9GeIAe6bushtDFy49hkTOrrHM62ca/5teGt/GK7OJlNOXZ22iSpr7fSw/bmX i8mbU0xvyCbN7LMeDhboTm981KZ0L8z8FDkLsqIinbc71CH+HSiqJLg+DOm8BZFi6hrR UL1VagDFIl9I7OgL/VoftK/L68/uAsNDOb80n8tVc3rIp6+TVjHKBfk0hMQbJpLAiZ2G yVMNA0SHi/fCCDfoK48q9SVrqdXbx52OFDvsLRTS2SXP9InmZUxycwQKBOzrAnPoj4oP VnTDQMhfecYsbwqLNgF26g6tCmsTRaRoYxbDxDATnWkaNfmWZRO0bKTRFarMYxY5lWpA tqdQ== 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:arc-authentication-results; bh=9mLBm06tfsXecXgESYqRKDYbenCWbNGq+vSHPhPTJo0=; b=Q328XoTS9dYWDT1VB/6+XmTswFX7MWKB4RCF+NVSxuREhoTj4Jdk93MlPHbOaQkyKL TboqmCOTtkaKi6AhaAmfs4mvemGlloIuiNOn6pnhfTBYRojmFPqhfycOi550t3d8Mc4j oJTR3foCnSuGYCw225YjEQK2d6sstdC3OZ6QXDxqJeFBydlKqxx3lEKOLFqmoGgANGvE AY5alGY7tmY7cu5o/CP+abC4AzMvKZ0x5WfgqcOaMrYHzd+41gE8m+ZGrUQu4bkGHxmj KgvHrKgvZn4AGlRyIMdUCcx7njaBH91yix4ChE591QMxpF+unoGBWyzq3wo7mgesTMIR pBFw== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si12554652plv.314.2018.08.01.00.04.02; Wed, 01 Aug 2018 00:04:17 -0700 (PDT) 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387508AbeHAIrZ (ORCPT + 99 others); Wed, 1 Aug 2018 04:47:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:32900 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1733146AbeHAIrZ (ORCPT ); Wed, 1 Aug 2018 04:47:25 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id C7690AEBC; Wed, 1 Aug 2018 07:03:12 +0000 (UTC) Date: Wed, 1 Aug 2018 09:03:12 +0200 From: Michal Hocko To: jing xia Cc: Mikulas Patocka , Mike Snitzer , agk@redhat.com, dm-devel@redhat.com, linux-kernel@vger.kernel.org Subject: Re: dm bufio: Reduce dm_bufio_lock contention Message-ID: <20180801070312.GC16767@dhcp22.suse.cz> References: <1528790608-19557-1-git-send-email-jing.xia@unisoc.com> <20180612212007.GA22717@redhat.com> <20180614073153.GB9371@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 01-08-18 10:48:00, jing xia wrote: > We reproduced this issue again and found out the root cause. > dm_bufio_prefetch() with dm_bufio_lock enters the direct reclaim and > takes a long time to do the soft_limit_reclaim, because of the huge > number of memory excess of the memcg. > Then, all the task who do shrink_slab() wait for dm_bufio_lock. > > Any suggestions for this?Thanks. Do not use soft limit? -- Michal Hocko SUSE Labs