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 1jw6N4-00027f-Rv for pgsql-performance@arkaria.postgresql.org; Thu, 16 Jul 2020 16:04:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jw6N3-0006P4-Px for pgsql-performance@arkaria.postgresql.org; Thu, 16 Jul 2020 16:04:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jw6N3-0006Ov-Dw for pgsql-performance@lists.postgresql.org; Thu, 16 Jul 2020 16:04:29 +0000 Received: from mail-io1-xd43.google.com ([2607:f8b0:4864:20::d43]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jw6N0-0000H2-Rp for pgsql-performance@lists.postgresql.org; Thu, 16 Jul 2020 16:04:28 +0000 Received: by mail-io1-xd43.google.com with SMTP id v8so6578560iox.2 for ; Thu, 16 Jul 2020 09:04:26 -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=nUR6LgpfOkyD5qahGsWXqDs0N09xTNAq182RzP5d0DU=; b=u9jGc4/Wgmtr8CUpd+uVe/WJFLQFrNooHkbPUkM5gncdtLS08BSSFQTUl/Uy/Wwc1N OGjTAfG/O2TBnkX/A2YhNzzLlJcmdeOkarvkR+f+M9LpFqYAumB+pypCeUhl7Bz9aqSG kykvUNSpNxkI7TzfIu6siErecxUOWFItLRI8BfwTi+/LazEzRn5Ark8KL7bea2ROxP2J gDBcH2ETGTUHs5L6ETBLKC63uPsTE7karqfp+RM8S1rq1nuLPGMkTUaMCwTJT6xI8Mej AAM+s2xuKxShB/5Fc4BMtEpz0KiUsT1U846L3ttGBkRP8A4eJti3Nca1eBvCg2BhekvC 7Rtg== 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=nUR6LgpfOkyD5qahGsWXqDs0N09xTNAq182RzP5d0DU=; b=jle0P/Pbdc2UyKt/ibOuPaamrGXnbmxh55xq9rryMWuVajygeh9jJKkmTtlGf1u3fW L7BgryEmQQTx63ks78bGmKBo19DFICvwHhKPnFtC2fvk++C+8kEaq1J8vuo1XWQOdYzK tR1t66Ngh1eHznacpyYHH7LNvS6A1ZA1ZBbR0pPwxMHNQq4s531YBJdpsH2tbeZ9O9Fr ZkyG0uHIvby4nyWdf4X+qqz/8gsv9Omvu8Lh8U6LQOB7LjVgml7lX9/lMNHN70DNZ0RR kG8pkdKd0cLOLTdRHFek5EU1JKisdkf5+jlgvjQtlX+qsUyf5PzPWAkoTzmK/zSTJE3E Vq+g== X-Gm-Message-State: AOAM533WhPOUdSCo+7VWEhJXFAlvQWvfNeyW837gdQvVPuEkcbrekd9V 1cxqJorUbh5RWLmB95dwif6xNg== X-Google-Smtp-Source: ABdhPJwTcWYImTdCPQKpWS5SmHrjVv214atGjenMju+IGOICc8BgF1wAfzk+2wPJ84BtCTFq368lSw== X-Received: by 2002:a6b:c343:: with SMTP id t64mr5330066iof.66.1594915465783; Thu, 16 Jul 2020 09:04:25 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id w16sm3234380iom.27.2020.07.16.09.04.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Jul 2020 09:04:24 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 7C921800176; Thu, 16 Jul 2020 11:04:23 -0500 (CDT) Date: Thu, 16 Jul 2020 11:04:23 -0500 From: Justin Pryzby To: Vishwa Kalyankar Cc: pgsql-performance@lists.postgresql.org Subject: Re: Same query taking less time in low configuration machine Message-ID: <20200716160423.GL23581@telsasoft.com> References: 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: Precedence: bulk On Thu, Jul 16, 2020 at 09:13:45PM +0530, Vishwa Kalyankar wrote: > Hi, > > I have two machines - one with 8GB RAM & 4core CPU and the other with 64GB > Ram & 24 core CPU. Both machines have the same DB (Postgres 12 + Postgis > 2.5.3). Same query is taking less time in low end machine whereas more > time in high end machine. Any thoughts on where to look? I have tuned the When you say "the same DB" what do you mean ? Is one a pg_dump and restore of the other ? Or a physical copy like rsync/tar of the data dir ? > Please find the attachment for query explain & analyze and bonnie result > of both the machines. Are the DB settings the ame or how do they differ ? Maybe you could send explain(analyze,buffers,timing,settings) ? https://wiki.postgresql.org/wiki/Slow_Query_Questions -- Justin