Received: by 10.192.165.148 with SMTP id m20csp4550850imm; Tue, 24 Apr 2018 04:49:01 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/c8FgFl7pIpgZ9bOj0NCVJZV4Q/0tuDfKt5tYLMUhZSdRdAz/VAHIHPesSLTbhfb/BHX5v X-Received: by 2002:a17:902:8f95:: with SMTP id z21-v6mr24561080plo.304.1524570541265; Tue, 24 Apr 2018 04:49:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524570541; cv=none; d=google.com; s=arc-20160816; b=HQ0fVcg+AhnbOXtQnzAXDlD0EIpPzV0yjBIgRjhd5nXvgD1eTNywHsEdzjrWSZ0qJI 8a7D521iEKiztj5/yZuMh4HiKvxlaV6JbyWk6Fl8K0a4Mh37JsWEQR2V6h4eTe1H0UFQ FVXx8NCjz0ge46rovX/B2MiSiG/Etxl7shR+iMyVtdxwE5WvIJZz853Hd9ATla8izX53 9HA0XYOUyNyuIUNFiBelhLROI69GKGirXmTIq94+ekiRVwtn8DWIDvwglv55C6wRCDVY YM3rh21oTWkdyU4SO4u7zh0gSm0MQ9dKsJ42G0rTAfhM4cjY+eZM5Z5VEnuXUEpNnVvh t59g== 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=0Cr4gieZU7g6H59uXhNaVy9TmN+pYszXigL9Xrq2K+I=; b=LJX1VVyrFd6YkwBq4dU5CnJDNro1Fm3RatZfFCi1QX6GHxPjTA9VZpu+4qw7dXtpsU NhYFt4iDC7THMyP+qygj6T9Wbg4Vu8ZILFHPckcT128QNM72VYUlR3z6nXgHUCbm0LdL kTzYYNI4BQIFZGWO+hi4r8u+2zouGIIHDEf377u1FDNDZauMDcT3/ESeLfIRHVW7KoW0 S1jU76CnBhoSFEu8nA2C7MIzm6EouKLQ/TcMhTmHo82uFVvTCtxWODQUEfeiDOPTqS+u isVmgKZVTB6Kn68Q385BCdB0gAI+NCZEiuLo7aj44fHyNcEdL40lIY6m8+idO7tm0V0G IV2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=G8/Y+/va; 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 a100-v6si305440pli.588.2018.04.24.04.48.46; Tue, 24 Apr 2018 04:49:01 -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=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=G8/Y+/va; 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 S1756553AbeDXL1h (ORCPT + 99 others); Tue, 24 Apr 2018 07:27:37 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:52746 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756053AbeDXL1f (ORCPT ); Tue, 24 Apr 2018 07:27:35 -0400 Received: by mail-it0-f65.google.com with SMTP id f6-v6so15008583ita.2 for ; Tue, 24 Apr 2018 04:27:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0Cr4gieZU7g6H59uXhNaVy9TmN+pYszXigL9Xrq2K+I=; b=G8/Y+/vavPLG23lDDk4urTt3Gk0YnNNdGJZgzvXdHwdu0FLNyjy4WFvWTHrSWHFAPh eKdM7YKZ/TM7Z1/6EmJ+SsC/BoR9J8bzhDnaP9fmNyEi6ys8Ma6zy+9O+zr9NpWJKT0f NEIuVHDKMdPZtgS+37c3kFvvIsEkFzVA5+Bb/AcwJCB6mLF4EkMvJRU14IWQh+AxFO0U GkrxQ9luVz9BawXretH0uwnp6ff1YaaMJXY4pTWbHguSve+kYbnTU9rIxS8FJD3nkX/v dsfSBsF1mxoF3hysSGHjijmBFGsdIL3IGlGfhqdy5DB606lB11DQOPvrwzQkQSIv0S/6 mVbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0Cr4gieZU7g6H59uXhNaVy9TmN+pYszXigL9Xrq2K+I=; b=Kuhw0NLX1fxZKmU3A7C7oW4022SdxBYi3flAfC653Iq0UN/QTJP6+f4y48t6P5MNNv d91TD/IeXTH0xiZQMTv/txhDwDYwpFnraJreb4LPtNBs4ENV5W5qfyH4wE4tJ0XqfV7Y LJUK+tWpvZ9+NgMKG25hWxXetD1iqYgnc5+rT3Y2TlgqZWF3zEariNKlsdD80dWe1bx/ 3A1i6fDxwOqDh6LLeBbjPW2C5vZ5GxBxxjL6PNKsDLQMkYzHQjSjCIYf0qHJyHTPlPz1 i6Cs8Eqy4iyyCRdkj4fKuRT6zjOKxs520Xq+dRR4ZReMtZJB1yrvIEKfmM7lP24MOA8w Ld0w== X-Gm-Message-State: ALQs6tDnruF9C9Ou7mT8hvM+ZHwsGdL5O2coBOgQ9eUSEAmZw9VYkhC7 v3l0WQrgHhNd9oQotZhBrLH/cg== X-Received: by 2002:a24:1308:: with SMTP id 8-v6mr16934021itz.96.1524569254547; Tue, 24 Apr 2018 04:27:34 -0700 (PDT) Received: from kshutemo-mobl1.localdomain (174-23-169-132.slkc.qwest.net. [174.23.169.132]) by smtp.gmail.com with ESMTPSA id q130-v6sm5391373iod.29.2018.04.24.04.27.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 04:27:34 -0700 (PDT) Received: by kshutemo-mobl1.localdomain (Postfix, from userid 1000) id 164B23003DC; Tue, 24 Apr 2018 14:27:35 +0300 (+03) Date: Tue, 24 Apr 2018 14:27:35 +0300 From: "Kirill A. Shutemov" To: Michal Hocko , Alexander Shishkin Cc: Fengguang Wu , linux-kernel@vger.kernel.org, lkp@01.org Subject: Re: [dummy_stm_init] swapper/0: page allocation failure: order:9, mode:0x14040c0(GFP_KERNEL|__GFP_COMP), nodemask=(null) Message-ID: <20180424112734.qectc5qqnxbuq4wd@kshutemo-mobl1.Home> References: <20180419023639.cddsueaq47mohfma@wfg-t540p.sh.intel.com> <20180419065111.GM17484@dhcp22.suse.cz> <20180419102114.irntfpy6i77apfq5@node.shutemov.name> <20180422134439.GK17484@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180422134439.GK17484@dhcp22.suse.cz> User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 22, 2018 at 07:44:39AM -0600, Michal Hocko wrote: > On Thu 19-04-18 13:21:14, Kirill A. Shutemov wrote: > > On Thu, Apr 19, 2018 at 08:51:11AM +0200, Michal Hocko wrote: > > > On Thu 19-04-18 10:36:39, Wu Fengguang wrote: > > > > Hi Alexander, > > > > > > > > FYI this happens in mainline kernel 4.17.0-rc1. > > > > It dates back to at least v4.15. > > > > > > > > It occurs in 4 out of 4 boots. Here KVM has 1G memory. > > > > > > > > This high order allocation caused lots of noises in our boot testing. > > > > We could disable this device in our tests, but it would be great if > > > > there are better ways out. > > > > > > > > [ 75.039408] Product name: fake-design-for-testing > > > > [ 75.040995] fmc fake-design-for-testing-f001: Driver has no ID: matches all > > > > [ 75.042509] fmc_trivial: probe of fake-design-for-testing-f001 failed with error -95 > > > > [ 75.044323] fmc fake-design-for-testing-f001: Driver has no ID: matches all > > > > [ 75.045644] fmc_chardev fake-design-for-testing-f001: Created misc device "fake-design-for-testing-f001" > > > > [ 75.061570] swapper/0: page allocation failure: order:9, mode:0x14040c0(GFP_KERNEL|__GFP_COMP), nodemask=(null) > > > > > > Is there any reason why > > > > [ 75.063338] stm_register_device+0xf3/0x5c0: > > > > stm_register_device at drivers/hwtracing/stm/core.c:695 > > > > > > cannot use kvzalloc? > > > > Michal, do you understand how allocating ~512kB leads to order-9 failure? > > Shouldn't it be order-8 at most? That's not clear to me. > > How do you tell it is 512kB? The page allocator consumes order so maybe > something miscalculated the order when calling the allocator? Alexander, was it 513kB, right? I just want to make sure that we don't have any bugs in calculation on allocator side. -- Kirill A. Shutemov