Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7tSm-0001Iv-Io for pgsql-hackers@arkaria.postgresql.org; Sun, 24 Mar 2019 03:06:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h7tSl-0007f0-Ax for pgsql-hackers@arkaria.postgresql.org; Sun, 24 Mar 2019 03:06:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7tSk-0007et-VX for pgsql-hackers@lists.postgresql.org; Sun, 24 Mar 2019 03:06:19 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7tSh-0001WF-KN for pgsql-hackers@lists.postgresql.org; Sun, 24 Mar 2019 03:06:18 +0000 Received: by mail-wm1-x342.google.com with SMTP id z6so7021893wmi.0 for ; Sat, 23 Mar 2019 20:06:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=nkNqIIwanBcDd2xU3Fz9j2JMcuLqf8Qh0qCBMHMLqKI=; b=Xi40iawwlxnuoE7xqBCRejWHpecT40gdbFaRUdx3EfBzPQWK4alZIvOl47aFUOfe1M SrIROdKoFq8iS8LdbO3TOJrXL44dH5vp4hoMqiA/FWQWVXwDaOPp3b6I0qBHo+cR0XeM A2pXY8/30IFFVanrQiAykvvZiQ+yyime8EjBQb5UfnnTw/XHmGcdqLwBsVYhBtK8XiUR STV3nEmYTmjclLviUhTUF+CThjkB4yLPmDx6n+lsCLsGw7g4cKO7YQn+4BDQwE4/SJI6 D8c8ata5w1LY8aA85tSuM9NSr0A4Yace/Zk9Yw6i+vYHiSBXitZdBTXJSxbzEGIu7gzD 1HgA== 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=nkNqIIwanBcDd2xU3Fz9j2JMcuLqf8Qh0qCBMHMLqKI=; b=OyNC0tzLCo0oQteU1HveDIGZ2fUQDf2lMk9B8IeRAP5QQJDv1f/q8rwLIhX/+YHlbg psPYARmSTq3NUVX0NB8AC1SEQNHrVDWAi2w+5ZYDP+bfJh1gmx7lCGgBimRjcoSjbQje 5nvqKPgTj1zbrzT69be6aSm6JOnS7RYv8xOuGdEuzshNMDXj8gCsQ/mmVNXPoE0az1B/ 38sy0WP3pr6hTEA0rA7kTmyIAsYv1n7DrdeS08UnnpiWp88Oj+MZAHAR7DG9UUvz+QWJ yCmwP8OdXnFpq6+PZBM1QikknumLX3h4bVMmfPkg8e4VwqYVDOxzY9+mA5znUhVv6hYW ch7g== X-Gm-Message-State: APjAAAUCO8aDWWcbvamHc689zWYUddbAzYdlrwu5gq9TxJEVzjAsk6Ry bEf1/3sfws2YbWYdjIrjf9trLVRtzEFOh5LB/WXut019TvBnkIppvi37f0XD3tiyLrsOpOLbSYS jGZXpvklyBlm+ny/D5/O03lo41g8TF6c5cz8evaPyI+mdZ75mGAQnKITWBD1P5n5dfhs/EVeHho /XgVQzFcJmeQHLD2urtqhuDw== X-Google-Smtp-Source: APXvYqyn/ate0t9P3rFVd9AvF9Jf9TQj4fWVgruJMSW70y58VwCOtSbDkkU93kOmBtUavSxXd4FW5w== X-Received: by 2002:a1c:f718:: with SMTP id v24mr1441411wmh.1.1553396772401; Sat, 23 Mar 2019 20:06:12 -0700 (PDT) Received: from [10.137.0.18] (ip-86-49-243-43.net.upcbroadband.cz. [86.49.243.43]) by smtp.gmail.com with ESMTPSA id l8sm11004701wrv.45.2019.03.23.20.06.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Mar 2019 20:06:11 -0700 (PDT) Subject: Re: CPU costs of random_zipfian in pgbench To: Fabien COELHO , Tom Lane Cc: Georgios Kokolatos , PostgreSQL Developers References: <155246731010.16480.15850913449923768119.pgcf@coridan.postgresql.org> <3703.1553360483@sss.pgh.pa.us> From: Tomas Vondra Message-ID: <7fe3b752-e204-6735-e6ef-2c54b56b024d@2ndquadrant.com> Date: Sun, 24 Mar 2019 04:06:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/23/19 7:45 PM, Fabien COELHO wrote: > >>>> What is the point of that, and if there is a point, why is it nowhere >>>> mentioned in pgbench.sgml? >> >> The attached patch simplifies the code by erroring on cache overflow, >> instead of the LRU replacement strategy and unhelpful final report. >> The above lines are removed. > Eh? Do I understand correctly that pgbench might start failing after some random amount of time, instead of reporting the overflow at the end? I'm not sure that's really an improvement ... Why is the cache fixed-size at all? regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services