Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m6blP-00058x-VY for pgsql-performance@arkaria.postgresql.org; Thu, 22 Jul 2021 16:41:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m6blO-00011X-IH for pgsql-performance@arkaria.postgresql.org; Thu, 22 Jul 2021 16:41:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m6blO-00011J-AJ for pgsql-performance@lists.postgresql.org; Thu, 22 Jul 2021 16:41:34 +0000 Received: from mail-io1-xd2a.google.com ([2607:f8b0:4864:20::d2a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m6blL-00016K-2y for pgsql-performance@postgresql.org; Thu, 22 Jul 2021 16:41:33 +0000 Received: by mail-io1-xd2a.google.com with SMTP id z17so7051987iog.12 for ; Thu, 22 Jul 2021 09:41:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=PM1ppcwSw7n5O5wDIDoWv2XVd/AkIGVCgRfOBS76mSM=; b=Ji5Ob8YOQU1XCk3WK9TXoZk4fZo+MwZ05+RZB+ohAqOsWkuVxAFBNC14kh4Ts5X7H1 rp5hJeXXz1ckZD0J+MNd4ZPEe3o9+S4evyOW68vxxIVyML+svRW/xB4WrpLYHFMuhGQ1 Mn3NasmfhZSF0CPzpXzvDlO+ZgI62GDbI9+mAjbVP5iJ/B8kyQzuTeeOgvP0k2nY4GFV k/ZXEI61qptkotPDIudNaJ9rY1NDMe4LyalId0Bm+EkQyiE/phEFF2YMPi0mWxaZtJ+R WPdoE2OXVzhlL6TdcQeEjZ4YCvNhJ67uvOWPI5E1jVOlCQBfyH/Lh2Xs4ZltNi6lSG7Z SbdQ== 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=PM1ppcwSw7n5O5wDIDoWv2XVd/AkIGVCgRfOBS76mSM=; b=BJmr1QfemtGnt9rdrq6dtOIwEaHdk1KKhlaE8M5QoXcLj//x+aVhISrXnicr2m6/JK D8tB6uhstPiJopp0lT0NhKQ1+8kiUEwEUcbvAthGKxQ8MXywDkFbgh8UDu7pc1Xc5BQx szAQlnuHrm95v1mJ+Ga5bb5fpVpJrj6HCDPszvfiFUpPWE/MIE0+cKMn3JXSkMXG/xit QCwacUXq9qq3oX6yrVJOSDOjHZqb1BM0vHZ8YwgC6x7SZeBIsWJjMG8tNWJhkx2O047I Ywf73cjYX6d9Ve31p76DYDO48SenRQfQ43eW0ubyQlFPoOxQrtGC6WcUYqMQjeU7LLip 6nDw== X-Gm-Message-State: AOAM5336MmmfakBvmyg0bPCBmkoQgGUwB/JgiTApt2NlCQJzze+Bl1Qt bZgyLONOCko6mKnCll6UEqXKEg== X-Google-Smtp-Source: ABdhPJzIDHibllRqEtEUg9a0mASBEjBkORq6z/uaKAQT/FJ+w/U8+SUk4ls9X8Y5htucx5woBhHhng== X-Received: by 2002:a5d:9d07:: with SMTP id j7mr457583ioj.33.1626972089219; Thu, 22 Jul 2021 09:41:29 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id q1sm16994364ioi.42.2021.07.22.09.41.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jul 2021 09:41:28 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 82E36801860; Thu, 22 Jul 2021 11:41:27 -0500 (CDT) Date: Thu, 22 Jul 2021 11:41:27 -0500 From: Justin Pryzby To: Peter Geoghegan Cc: Tom Lane , David Rowley , "ldh@laurent-hasson.com" , "pgsql-performance@postgresql.org" Subject: Re: Big performance slowdown from 11.2 to 13.3 Message-ID: <20210722164127.GI19620@telsasoft.com> References: <784576.1626968702@sss.pgh.pa.us> <785218.1626969409@sss.pgh.pa.us> <786600.1626970898@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Jul 22, 2021 at 09:36:02AM -0700, Peter Geoghegan wrote: > I don't see how it's possible for get_hash_mem() to be unable to > return a hash_mem value that could be represented by work_mem > directly. MAX_KILOBYTES is an annoyingly low limit on Windows, where > sizeof(long) is 4. But that's nothing new. Oh. So the problem seems to be that: 1) In v12, HashAgg now obeyes work_mem*hash_mem_multiplier; 2) Under windows, work_mem is limited to 2GB. -- Justin