Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp202758pxf; Wed, 17 Mar 2021 03:14:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhhPtjyS37bQ6Rjo3o7w9cFgzEVUw3/UDNDGENADjHpplywx77sdVEkwernjiQHOpqxGvu X-Received: by 2002:a17:906:4f10:: with SMTP id t16mr34667260eju.531.1615976067168; Wed, 17 Mar 2021 03:14:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615976067; cv=none; d=google.com; s=arc-20160816; b=opXIU9r/TRHejoA1FpicBW2S8Tq5TtNPw1E/vsbjEEuTXWQQtamEWE5cpzhsqOc1Ix LJ35tLIEwUVhakJQfiG6WHaLSDgTOMwMhiYxlJM1bfUYqz6hswC4r9ZyIReO4tiSF7ui fFGIzL2PVrvYoW7ij0aWAPXCqeSeOa1FxIFU0u/k/UGn2RyqIHFD3n/sAcL7MaPNTvos ZVRbkpI3ivXzUORYcskm9o1EmFLDywx0Cr08YjE58rB0aqex5Wapej5onsfBXvkWQkFv gYaQ1GlPJEY/TczVaunJEZur/avDCHhsOltdUpAQelshIQGaUQfWECRN4qeHIFzxn43p K9KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=g6jWkldAHO5fX2fG11foqEywJJvIYAjFVfktp5dG8UE=; b=Q/fF+zi2KmjRsXLXmZ9Ms18A2TQzPl0DEUDtR9p3F8oa3jTjPD0TQjeuytlHtnEPzV KfVoOOyBtF01m0U9FNow0K0YUghx4nArB9i0SOeVoQTzZ8ky4U+s/bZNZx9/WOag0vqu ZpFit4EOZg2P988CIGCN5srw7QzhZ+DRYpCTf9Eq1kUfvJfOh9Y6n2CxzwCgI0QOsOrp /tTGSUEzykTQ7+LlQRgFYmATp4uP/qPIhVL7F1jP5YcxOBb/0Ll8wt2dLNnnQVtg74DN 6UrjL4ogsSlE8z/9pE6oJo1lCFGnLiVAf71by7wJOsoSjBYz8E7sie7DJHgobZIkCrEg ps6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=dmWU5CkJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si16094654ejz.464.2021.03.17.03.14.04; Wed, 17 Mar 2021 03:14:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=dmWU5CkJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229472AbhCQKNG (ORCPT + 99 others); Wed, 17 Mar 2021 06:13:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbhCQKMr (ORCPT ); Wed, 17 Mar 2021 06:12:47 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8CD2C06174A for ; Wed, 17 Mar 2021 03:12:46 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id u4so1502770edv.9 for ; Wed, 17 Mar 2021 03:12:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=g6jWkldAHO5fX2fG11foqEywJJvIYAjFVfktp5dG8UE=; b=dmWU5CkJN4qow5UZOOVDkEx2U/1U2Td7MwDJq8e/465o/XY1/bklUN4eFHZyMj9Em4 y+MjuRKKxuVY++jC+LMab0eIS7ngeRN2FEMbMzpwNGG26bGp8ieVxWYFqceptZ1KWUjz g5utfiSnjU5NJO5sNoXcXxlPTavsPz7n98QRE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=g6jWkldAHO5fX2fG11foqEywJJvIYAjFVfktp5dG8UE=; b=VNvH51ue2naFk99VeG+jJyoE85HWj1aTQloiPsysG7UNi9W4+iGipv73wHpEulOJA3 NIE4CZMesKnk2wc7cp6tre2lV1iO1xriBOJ6EXtdJQsQTzX3JOwIIo9UvrpzfqDhagEE tQBRXnOc5udFaNzmmLDlZYPIOFy0jQta9NrSO9I6pCp8VBVE2pqi0SXXVwCK0OGMJ95g fpvVoE7UkwrO8Dg2lUNGYDMyDskKf75tlRf/Opc3Lg0Q/cqQQNkJO3Dy+xxZlCTnYcil /wQeiq65xpuUpE1aBqjgaiPSNIIUqiSxoZi5Jztn49eq9pochyUbjAvpRTkj6XbkWUU8 FBEA== X-Gm-Message-State: AOAM532QBQOPqCLukRBgV1bLQbewlKKxidxId7ezY7M641+YXgUAYxwe 3t6MG0noi6xOtqWSgzM4h8Pe2Q== X-Received: by 2002:a05:6402:17d6:: with SMTP id s22mr40687326edy.232.1615975965680; Wed, 17 Mar 2021 03:12:45 -0700 (PDT) Received: from [192.168.1.149] ([80.208.71.248]) by smtp.gmail.com with ESMTPSA id si7sm11098174ejb.84.2021.03.17.03.12.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Mar 2021 03:12:45 -0700 (PDT) Subject: Re: [PATCH v2] Increase page and bit waitqueue hash size To: Nicholas Piggin , linux-kernel@vger.kernel.org Cc: Andrew Morton , Linus Torvalds , linux-mm@kvack.org, Anton Blanchard , Ingo Molnar References: <20210317075427.587806-1-npiggin@gmail.com> From: Rasmus Villemoes Message-ID: <89cb49c0-2736-dd4c-f401-4b88c22cc11f@rasmusvillemoes.dk> Date: Wed, 17 Mar 2021 11:12:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210317075427.587806-1-npiggin@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/03/2021 08.54, Nicholas Piggin wrote: > +#if CONFIG_BASE_SMALL > +static const unsigned int page_wait_table_bits = 4; > static wait_queue_head_t page_wait_table[PAGE_WAIT_TABLE_SIZE] __cacheline_aligned; > > + if (!CONFIG_BASE_SMALL) { > + page_wait_table = alloc_large_system_hash("page waitqueue hash", > + sizeof(wait_queue_head_t), > + 0, So, how does the compiler not scream at you for assigning to an array, even if it's inside an if (0)? Rasmus