Received: by 10.192.165.148 with SMTP id m20csp1411835imm; Sat, 21 Apr 2018 07:51:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx49ruMbUMnZbfLykXjuAM+RWDjkQ0244lSy1wmFASEOPbO0cfd3VABKp4zgjopXJWV9nOrTn X-Received: by 2002:a17:902:a58a:: with SMTP id az10-v6mr4973922plb.210.1524322297959; Sat, 21 Apr 2018 07:51:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524322297; cv=none; d=google.com; s=arc-20160816; b=Ge996Rp1OLdGgpUyk4NQQHlbXgG13TTvOmV6rmsSp5Lqh/cVzykUY+ZIXO45lq3wrr p9efl8aLlrBH9HSML3MaBJ89m++Sg8ysddQ5N1PreDPqnXOVKeasTpMjdWU5sFkinmWW sG+2B4n/rA9NgIyloyfINfZ0Kq5iXwcjbwYQn/UjVWTWzIMrbbWD615NxpfgbQMs79R3 lscHEzKtHvQs/M82lLC8jaaUVC8e0lj/evlNj6mowhlCLoLyWSHKVI6ZgHgXVBZBlXZf WsJVXCWm4FylELv5QfpgnqWW64PDyCkgMip7Th2X+jMBIGAhDDHbyoVgwv1Ys5YA9w1H lHWQ== 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:dkim-signature:arc-authentication-results; bh=GRekYa0vtxQhqSjsLlxc5KLwQ9o1HzmYlsGNhCL2LTc=; b=RQZBdZRSDVD60HXC8zVfEv0fz1zwMjg0WNOY6ObQ+oH3FSyTQyLnhcHnopxNub1E5p OQnMJl0vB0LhGbTppOltasEDlSDuSbEDzHYMmUQaz9I8YN6mxrRP9NEeUzbEdlFaOJCH mc7Hx7DcXIVdaSSuNKFlPH84tdK0lvwmnTH/Rr/ttYWVdXCdn4GszTj57nRtbacBiKhY KwnUe2LToZ0RZtjZbSHgvelfW1SB6tmNySHSeBe8LMNsCz039bXlaXVnOhU0PcrgCbYY OmtuEHxgiYmwbNoT0toy7iw3mOZRUepCpjuQnxxtcrnU2+HIFpLwLUVmkQzFYb6iaZLz K0wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=bombadil.20170209 header.b=Y6tiBU2b; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si7945920plo.228.2018.04.21.07.51.01; Sat, 21 Apr 2018 07:51:37 -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; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=bombadil.20170209 header.b=Y6tiBU2b; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753071AbeDUOsH (ORCPT + 99 others); Sat, 21 Apr 2018 10:48:07 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:58564 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752892AbeDUOsF (ORCPT ); Sat, 21 Apr 2018 10:48:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7dthmvSjM0ojP9tiVt11XR6u2LHGpc5TXcTOmbT2Z4A=; b=Y6tiBU2b+fair8Ng8exM0L0Dm GNH0VbtyXPljOW4Gsj3uGE3dZkPFMK0FEg/JKYpV4WEBqgs32q5BSTHAqIaikFSHQwRIKa/2X9SIg cpZx9XQGYxaPnpIimB9w+xQUcdULIPwYQefmTQO77oTbGUhYlv/wMVWLssZlO2pLxMMapqkTXnLbJ hskVpT2Cvrxo8K2srw18ddHeGNTXuPeAozlaBWPGP/WK8nRfB9N6zXU26p1VEtDHAlxHcND3cxubg qpBvcUoRX+LBEw6AsxVAiYWz7WlEzt9eMv7cueBL5JihD5Z8SaciMR6wmPc9RKLwCXsKfHvMHjRFd yd4zYnkbg==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1f9tnx-0000pN-Di; Sat, 21 Apr 2018 14:47:57 +0000 Date: Sat, 21 Apr 2018 07:47:57 -0700 From: Matthew Wilcox To: Mikulas Patocka Cc: Michal Hocko , David Miller , Andrew Morton , linux-mm@kvack.org, eric.dumazet@gmail.com, edumazet@google.com, bhutchings@solarflare.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, mst@redhat.com, jasowang@redhat.com, virtualization@lists.linux-foundation.org, dm-devel@redhat.com, Vlastimil Babka Subject: Re: [PATCH] kvmalloc: always use vmalloc if CONFIG_DEBUG_VM Message-ID: <20180421144757.GC14610@bombadil.infradead.org> References: <3e65977e-53cd-bf09-bc4b-0ce40e9091fe@gmail.com> <20180418.134651.2225112489265654270.davem@davemloft.net> <20180420130852.GC16083@dhcp22.suse.cz> <20180420210200.GH10788@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 20, 2018 at 05:21:26PM -0400, Mikulas Patocka wrote: > On Fri, 20 Apr 2018, Matthew Wilcox wrote: > > On Fri, Apr 20, 2018 at 04:54:53PM -0400, Mikulas Patocka wrote: > > > On Fri, 20 Apr 2018, Michal Hocko wrote: > > > > No way. This is just wrong! First of all, you will explode most likely > > > > on many allocations of small sizes. Second, CONFIG_DEBUG_VM tends to be > > > > enabled quite often. > > > > > > You're an evil person who doesn't want to fix bugs. > > > > Steady on. There's no need for that. Michal isn't evil. Please > > apologise. > > I see this attitude from Michal again and again. Fine; then *say that*. I also see Michal saying "No" a lot. Sometimes I agree with him, sometimes I don't. I think he genuinely wants the best code in the kernel, and saying "No" is part of it. > He didn't want to fix vmalloc(GFP_NOIO) I don't remember that conversation, so I don't know whether I agree with his reasoning or not. But we are supposed to be moving away from GFP_NOIO towards marking regions with memalloc_noio_save() / restore. If you do that, you won't need vmalloc(GFP_NOIO). > he didn't want to fix alloc_pages sleeping when __GFP_NORETRY is used. The GFP flags are a mess, still. > So what should I say? Fix them and > you won't be evil :-) No, you should reserve calling somebody evil for truly evil things. > (he could also fix the oom killer, so that it is triggered when > free_memory+cache+free_swap goes beyond a threshold and not when you loop > too long in the allocator) ... that also doesn't make somebody evil. > I already said that we can change it from CONFIG_DEBUG_VM to > CONFIG_DEBUG_SG - or to whatever other option you may want, just to make > sure that it is enabled in distro debug kernels by default. Yes, and I think that's the right idea. So send a v2 and ignore the replies that are clearly relating to an earlier version of the patch. Not everybody reads every mail in the thread before responding to one they find interesting. Yes, ideally, one would, but sometimes one doesn't.