Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vnZml-0091Ka-1N for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Feb 2026 10:06:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vnZmi-00AYrq-2n for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Feb 2026 10:06:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vnZmi-00AYri-1p for pgsql-hackers@lists.postgresql.org; Wed, 04 Feb 2026 10:06:56 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vnZmg-000000010XW-0g16 for pgsql-hackers@postgresql.org; Wed, 04 Feb 2026 10:06:56 +0000 Received: by mail-wm1-x343.google.com with SMTP id 5b1f17b1804b1-47ee76e8656so89327685e9.0 for ; Wed, 04 Feb 2026 02:06:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770199613; x=1770804413; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1shYyYPiogpbUgLFk4yi/v9by3Z31AmKa3XUMUzQXB0=; b=Dx+uAHGDgnoRoGUjf7Wr4kagpc9kTzNRObVQF9CSj9TLR+GxSGd6qxIFheaYXL44S0 4V5rTqEeqxWFU84oqhzpJ09KQTXBrZZt0ACHJeL1x51Oe+QdYQwk698KNrGqU+Tx2FyC eo6v+5Lfxp0dK4CximAhDBIMpOhDGTvuQ/+WArmcRN6Av01A9aK+IgTbBaVylfjotRVK LlykDH5BfE6rxjwzL2awnJdN8DnInyNm6Xk9w2OglYKQZ4xRz+BcYeJhzsjJRmg/tTOt oSUK1v5YCxfTxxtf4rSlzuDnNgSOtsBbt3ADKoz8w6mCVz8syJADL+S6hlb7EvJ9CSVP WPGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770199613; x=1770804413; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1shYyYPiogpbUgLFk4yi/v9by3Z31AmKa3XUMUzQXB0=; b=XjunCjMs4a8nGJpPnsyGw2gszg9idcHZZBZAz2ohXst/kqS6pwqV3MCB+vzN8KTI9V bByYzNRHuvGCdKmuDeBzaej1+AtExWsht5CUFYDC0DILotBbjFuo7A5O9woXRZRY1qou Hl7xrADOzXDZ9fhBDHrjUOMgnwYbBn2W1yRsVQG9LCp4/Ki80JvjKd0Ak7Co/PCPYkzZ XwiLDuiOPHb443HDWg3sC7wlMm18njsTsViLtsGFrWKZUUmSlmIshZMKIzAEkeHJgySH si0/05ESt9V/pgESmGY+cXNMA/+KZsyjCEif1IIT5cNlSlKfAUz4a8O0O2m8H7Ek9IKj rtyA== X-Forwarded-Encrypted: i=1; AJvYcCXM8Qj7t/hDCzFMd/ixk62KOOf2gI7qKfkhjI9fYp5j2Jg6SRiABPlnm1Zx1KGbL26JSzY14+BPsnqomaVV@postgresql.org X-Gm-Message-State: AOJu0YwdUm7WWZo+c8rbgqWO09F6uEoJfbrDzLo58NykfMyQ4xE5gIAU P5IcyUCNG7neJSlFrt0NXrfCyci2bg/JlAsqw8cOunADyD2HbnjoEu3O X-Gm-Gg: AZuq6aIClRl0WJ/BdRy+E7RXaXVvkd/8KfN5DmVO5zPVm05mAl9eaQQcaw1P03/1zRZ 3osbLyxe30M9vdyyNb+XJtbs8ChNls6wCW6pZUvXeeWgf6sDLEJlRiuXWrrtRS5PzscR0jd9xiS HXayz7wJZKv0hAou9X2V/cf23MVAxgthclJ3PlxzSi/MJa/c+2JwRAEgB7RRbUULSI2OCLphthi iX3RjoNeT6t3z5Nhh4FkOFMQZmbzuIX4gTIhbxiMGNpl9SrWsLTphToGJ+AHHLBhKaU4sOaBBPO Lm6H/icn/BgfdxPQtDgVQIwazkyCCsZjxzeVL9QnCet7k3FfZDPLE7AqDAkmEgYcWn1+aU9n+2G ux6TwaF1kCkR9XRYCyQNOQdEBDMVRvcwhYBQuz5WBZbGGRKa4eV+I0J6fLp73x2uTGpBOZp9QkF tHcLs4ww== X-Received: by 2002:a05:600c:1e1d:b0:47d:73a4:45a7 with SMTP id 5b1f17b1804b1-4830e966bb1mr38722095e9.24.1770199612368; Wed, 04 Feb 2026 02:06:52 -0800 (PST) Received: from [172.31.5.233] ([165.225.27.6]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-483108e3ee0sm41259915e9.4.2026.02.04.02.06.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Feb 2026 02:06:51 -0800 (PST) Message-ID: <5d2465dd-f1b8-4b54-aac5-becec72dad9a@gmail.com> Date: Wed, 4 Feb 2026 11:06:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Reduce timing overhead of EXPLAIN ANALYZE using rdtsc? To: Lukas Fittl , Jakub Wartak Cc: Andres Freund , Hannu Krosing , Robert Haas , Pavel Stehule , vignesh C , Michael Paquier , Ibrar Ahmed , Maciek Sakrejda , pgsql-hackers References: <57845c37-85e8-4d0e-9456-76833e089c5d@gmail.com> <7717ba64-9283-49ec-aa3f-34c6de848b93@gmail.com> <3bdce15d-25ec-4c49-9906-818803462897@gmail.com> Content-Language: en-US From: David Geier In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > I do think its reasonable for us to check this directly, since we're > already working with cpuid information anyway, and we also need the > TSC frequency data in the Hypervisor specific leafs (i.e. its not just > about getting the VM vendor name itself). For example, I don't think > HyperV provides TSC frequency in 0x40000010 - it was something VMware > added initially, that KVM subsequently added. And then we have a hard dependency on systemd, where at the moment the user can try to use RDTSC also on systems without. >> Also it would be cool if the patch would provide some way of reporting back >> what clock_source was really used in case of FAST_CLOCK_SOURCE_AUTO. >> Something like huge_pages_status or some elog(DEBUG). > > Agreed, I think that would be useful. +1 -- David Geier