Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4534395iog; Wed, 22 Jun 2022 00:09:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vAYBZK1b8+E/9dXt8j0VJ2We4R9T4B0UlnuQJnP7F2FHgsMZsGGdWnCUOm3j2Q1GfyQFqh X-Received: by 2002:a17:90b:1b10:b0:1e8:2966:3232 with SMTP id nu16-20020a17090b1b1000b001e829663232mr48167558pjb.103.1655881764394; Wed, 22 Jun 2022 00:09:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655881764; cv=none; d=google.com; s=arc-20160816; b=d+BVz2Eb7UhMgqAnvMLDJXxUDia2+KJHBdUvNaeaP3IsH7gGUg/d0IhoG58IHAzlIo SWed8Fe45Z5YehYGM1GFpVK2tqW/Jh1KTaVpmJ9kymqQqHXWG+8jpsF/EO4/qAobyq+V BW7RopIzmioqwbVzMQC8GVIPEAqAmTM6Z+q/EoedmwTGtUduO366NFuPQxXpdY3ZrH1y qMVxu050Z6wA4cMgotgPmhMf9lOGhpmjO9Bp1tHNM5Ke554YI0TBwURy7ZmO7SwbxiL3 kbvMcdjXdv7nWGUaA3Rz1ygE/oUFVkIjkUL4V+Gyzwb5Hgy+AR37YZllQMUjZDfDvQ5q BkqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=GVCryb+NZ1RjJur3tYCrgFj4R72wJeWsi7jJvADmLLY=; b=JJhGOtmrdMaWFom4uXq7LWEkrpDapXo+ziA7gv1Fjt/ySrIo46gzNORYIHLkQxhi/k DrAoz4xtXw4n9Z1YVK12x0OqTZjL/qWLRgXd7tS2lcj/5bGPT51BFrNQ4Iwh1/6bB8BO X8MUkkoycHHDIpY2doKc+GY67lYDZzuHXyIiwEW0RGfoFqecdMfyCjL1TaK68w7/bbaV VkHrOu1kmtkvgdTY1TUR5NCUiG9QkmzXvKv4DKl0rlO1ek6AilCzlwPY9Wpr/H655mBj VD2La4i+GZuNP1RgpjzMg6imFZUo3fVaSEZo436eTWVLITl0gu+XSSJIu5ruXkQQK9Zk JKLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=KVdIr9FN; 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=NONE dis=NONE) header.from=ionos.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk11-20020a056a02028b00b0040cd2567341si8172229pgb.354.2022.06.22.00.09.12; Wed, 22 Jun 2022 00:09:24 -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=@ionos.com header.s=google header.b=KVdIr9FN; 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=NONE dis=NONE) header.from=ionos.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351878AbiFVG5A (ORCPT + 99 others); Wed, 22 Jun 2022 02:57:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351582AbiFVG47 (ORCPT ); Wed, 22 Jun 2022 02:56:59 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FD7711170 for ; Tue, 21 Jun 2022 23:56:57 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id lw20so9786813ejb.4 for ; Tue, 21 Jun 2022 23:56:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=GVCryb+NZ1RjJur3tYCrgFj4R72wJeWsi7jJvADmLLY=; b=KVdIr9FNS2CkgZZdgMYWrs9jPiiqL/Ra10PQ06IHWg9S7jHJXR8hvvZwdASiRXjCnl Ws0jBogVMuWPZzTF9gVY4Knxs4ZZBl1oZhBz3cyg2QCwDOrEU1ipd6/7ag7D7NOAGHRU wMA7zATaNhTIql4Egm7L8pIrhQKuSI9FwaszCUIM0vbUnFRBfC0d74xTi3hFYE10IcU4 Jt/k0vDD5x77hpYEZZlc6K6F/R1kqm3oCxVg30Uxs7NDvJUJg44NH+ecEQZlCX6icbJz +cVwfM/0av6bunaNQp5cum+6Q79+O/02K0c3qFOYFuBQLy9wrx82RiKlInYLHhdJXOec 04DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=GVCryb+NZ1RjJur3tYCrgFj4R72wJeWsi7jJvADmLLY=; b=l+Glm9DKVUNLlmd/BkqlIZfKmwUYRIPdvzn0sbsmgEa8pYGCZ/jCq9KB65fRU6bwS7 +Uk4SGQ6rB+f+yt0tsuLsP64Cc3NeeC7hN8phUMdFp/6pJ7TJrKYK6TKvM70sDuQM0gC h61Iy51Ms7irIP8xqIcUfkD/9u3Fi7TymwkQVdveg5unPjtjHqM393DmuDjVHw0Ks5Zv G9iQJ8ZXHtBM4cqZZr+PflJ+R0zEWOirBqUBBUyaUUAiP+e9S17yPusXL/uHroksJRVs A/0WTTzNfQ48CJT2+6rHRY+yrfpwXs5/wcdT0PrOAheSWgXoJFAcI07nsZ1XDjchoNAy 2skg== X-Gm-Message-State: AJIora8+lfcnfUgacAew1X9zxlk/kPi3rubpjkSPEy2Wh874XwEOV6go eRK5yrQc5kpSEMDz79dtGgsbLqZZkld9gvq6wmEA3w== X-Received: by 2002:a17:906:5350:b0:711:f866:ed8 with SMTP id j16-20020a170906535000b00711f8660ed8mr1604571ejo.441.1655881015882; Tue, 21 Jun 2022 23:56:55 -0700 (PDT) MIME-Version: 1.0 References: <20220620020727.GA3669@xsang-OptiPlex-9020> In-Reply-To: From: Jinpu Wang Date: Wed, 22 Jun 2022 08:56:45 +0200 Message-ID: Subject: Re: [locking/lockdep] 4051a81774: page_allocation_failure:order:#,mode:#(GFP_KERNEL),nodemask=(null) To: Sebastian Andrzej Siewior 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Wed, Jun 22, 2022 at 8:43 AM Sebastian Andrzej Siewior wrote: > > 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 -s= mp 2 -m 16G > > > > > > > =E2=80=A6 > > > > [ 17.451787][ T1] rtrs_server L2256: Loading module rtrs_serve= r, proto 2.0: (max_chunk_size: 131072 (pure IO 126976, headers 4096) , sess= _queue_depth: 512, always_invalidate: 1) > > > > [ 17.470894][ T1] swapper: page allocation failure: order:5, m= ode:0xcc0(GFP_KERNEL), nodemask=3D(null) > > > > > > If I read this right, it allocates "512 * 10" chunks of order 5 / 128= KiB > > > 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 * CHUN= K_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? eh, you're right, I forgot we have mempool. We discussed internally in the past to remove that, we should do it. Sorry > > > Thanks! > > Sebastian