Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4521811iog; Tue, 21 Jun 2022 23:48:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tdf1Er+2vZmZzHL9h+GBULhkXXIWsdDmo3aAvYMubPu/10WHiOOUpha/69CmGbLuO0sp/Y X-Received: by 2002:a05:6402:5299:b0:435:61da:9bb9 with SMTP id en25-20020a056402529900b0043561da9bb9mr2329209edb.21.1655880494524; Tue, 21 Jun 2022 23:48:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655880494; cv=none; d=google.com; s=arc-20160816; b=IsX0QMVp8xHnsgPnUWXKkzLI5Dkl+ulCb2YpG7G02rmgdWJYMVuz+sOmqEiQjtQ9wu J26kcT3jSHTqW2+eTVH/SHd1W2pPXwo47XMWEpiE9u7x0rP+4Vydo/H4RFEOx2kihN43 JgfCjiVhVZeFrv7Uu67+0q56JWrXla0H/KRrkV4scKSOO3X+d0e/CbVYYAt7Fxf9SnGc 2GEFf3wpFgz0g81G16O6WkT2ae9MMbktk6hvGl+O+ZORm8/MSPgS1UPNir4Wo4pSPWX5 E8tphnndvn9Cn4hLCSnPplJyGc4AYcoe7viKUut6v+HSofkL0wx3+B5ZuNtGrY7iNESj sKjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=UuGQW+PinnSo/RMeTmXWV63xHcA8hBa5G5YojrHjxY0=; b=fLB8wnnx/B2E82h9grNvSmOiTfId4hsfwo+kEmPx2lYl3ISVqMNDiod531o4y8GKbG 8Ds0Qr5V9YJ9nApXIPv8ej+i15LYYRopgkRlOAwI0i91VfHLyG7hYcCVVfXSFupaAL8y m2Cq+7Ai/FsrrbDSVxiBh9NPG6aRK9qrd00NggFwabVAiXdBdGQYwXABAn5o6jj97ACV WFMyg4T0we/9uwq2wkCgWltFvh9bE34bwmcrGD3c6C4X/izqiYnFzF/m2/CCwYEuRz0f YLm21gHJz1Aum5unUhwC00RSngliGPirT/fr+7wUejfxkMeunzT63yfIZhKjo6NiUPKp 0+Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Mv1MzaVo; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h16-20020a17090791d000b00712034f1a2bsi15914945ejz.589.2022.06.21.23.47.48; Tue, 21 Jun 2022 23:48:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Mv1MzaVo; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350436AbiFVGnw (ORCPT + 99 others); Wed, 22 Jun 2022 02:43:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232569AbiFVGnv (ORCPT ); Wed, 22 Jun 2022 02:43:51 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8171F34669; Tue, 21 Jun 2022 23:43:50 -0700 (PDT) Date: Wed, 22 Jun 2022 08:43:46 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1655880228; 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=UuGQW+PinnSo/RMeTmXWV63xHcA8hBa5G5YojrHjxY0=; b=Mv1MzaVoM2ymsRfN+kldQgUWqNho2Ka1S3nqj2HGHP9Imlp9x2RQCDHn5Aruz1Y+mCDRbn iZNvx/8EHGTYU/R+5b1jSvZSQrVKkz1ZLlv2cez7mWhzYDZEN+7y3b9RD01yscWyYvLHH/ lXJ3qSMCIHsbeyLZx2PLDiPUS0vswN6eCo29JjW2RMqMnsjLo8MD4rgWFGoWkP1pWAPTMo a9Nxe/NAMH0Tuky78iDo7SlfU04bDJ+qH3y0ZpEnewXFydi29evKRrrKLCl422y+n8+OEs K/DP4dMErj8rSvZ4MOI+BczI/wCThce+EY+IrTkfrcTRaIXbd8CVhqU7WCOvxg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1655880228; 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=UuGQW+PinnSo/RMeTmXWV63xHcA8hBa5G5YojrHjxY0=; b=GKuA/Z6kyvwlRLUZQrU7LpH7U7WP83W1yte9QM/vjbOnw4nT7OZOKj1Odn0FJawvv2mGvJ Tk4mCfiuL0qNUVBw== From: Sebastian Andrzej Siewior To: Jinpu Wang Cc: kernel test robot , Peter Zijlstra , LKML , x86@kernel.org, lkp@lists.01.org, lkp@intel.com, "Md. Haris Iqbal" , Jason Gunthorpe , Leon Romanovsky , linux-rdma@vger.kernel.org Subject: Re: [locking/lockdep] 4051a81774: page_allocation_failure:order:#,mode:#(GFP_KERNEL),nodemask=(null) Message-ID: References: <20220620020727.GA3669@xsang-OptiPlex-9020> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-06-21 17:27:22 [+0200], Jinpu Wang wrote: > Hi, there Hi, > > > on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp= 2 -m 16G > > > > > =E2=80=A6 > > > [ 17.451787][ T1] rtrs_server L2256: Loading module rtrs_server,= proto 2.0: (max_chunk_size: 131072 (pure IO 126976, headers 4096) , sess_q= ueue_depth: 512, always_invalidate: 1) > > > [ 17.470894][ T1] swapper: page allocation failure: order:5, mod= e:0xcc0(GFP_KERNEL), nodemask=3D(null) > > > > If I read this right, it allocates "512 * 10" chunks of order 5 / 128KiB > > of memory (contiguous memory). And this appears to fail. > > This is either a lot of memory or something that shouldn't be used on > > i386. > It allocates 512 * 128 KiB of memory, which is probably to big for > this VM setup. why 512 * 128KiB? It is: | chunk_pool =3D mempool_create_page_pool(sess_queue_depth * CHUNK_= POOL_SZ, | get_order(max_chunk_size)); with | static int __read_mostly max_chunk_size =3D DEFAULT_MAX_CHUNK_SIZE; | static int __read_mostly sess_queue_depth =3D DEFAULT_SESS_QUEUE_DEPTH; | #define CHUNK_POOL_SZ 10 so isn't it (512 * 10) * 128KiB? > Thanks! Sebastian