Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ekWcA-0000tF-Ox for pgsql-performance@arkaria.postgresql.org; Sat, 10 Feb 2018 14:58:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekWc9-0000WQ-5y for pgsql-performance@arkaria.postgresql.org; Sat, 10 Feb 2018 14:58:53 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ekWc8-0000WH-Oq for pgsql-performance@lists.postgresql.org; Sat, 10 Feb 2018 14:58:53 +0000 Received: from mail-io0-x22b.google.com ([2607:f8b0:4001:c06::22b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ekWbz-0005Ga-V8 for pgsql-performance@lists.postgresql.org; Sat, 10 Feb 2018 14:58:49 +0000 Received: by mail-io0-x22b.google.com with SMTP id m11so12880153iob.2 for ; Sat, 10 Feb 2018 06:58:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=W2njTj6R397yMTQOKcT5INoTkN2o1BDgmBHHEub9LJM=; b=UuC50E0MUlGtIh43pror4Qgy+Cr1Pmae3E7+EgfsJkNP1NslW53AQQCyo9Io3PQ/7V VDQPpO2Qt+nG3wgElpooetDclyhBINvpdFCKP6RNpz33eA38Guh837sY5jjSq1+PlG/j +y7nb07Rk09HLfMrUshebRXY2Hc5jeypgL+bzIHEWB13TV6VX+nmqtHeSpEodqDdr7hX mPabLDlDldKbdctDAdrns47t6mMCKPju5uglHyAUdXvUTXd1fPqf0M4SRSfdwfoEndTV FOkwrGG8+PORCnctKe3bCd68h9o3sxR2QmlguP0Jdvs4gyZcI6iEYBAQXYUFRCA1kMX6 u4Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=W2njTj6R397yMTQOKcT5INoTkN2o1BDgmBHHEub9LJM=; b=VlwwS36XmyhEO711PM2ZlAiiDHpR0WwVx8Zl4v3RAGWMdxvrIMkChZjA8IvlEWeP4Z DLQ23X0m4ahrIQzPhx8PKQRRCqu/VFQeXZum4xD8/1f9o01lKppmrk5ssNA3Bm9WHmAX CQ4P+cw6hXRKWLoA600rcky9mRL0P6y4DH9Bqw+YGwFODG81TB1oME9bb82x/w3unLGC duunWizr8JnDb5tsFeJ49i6uapG3CEEsog9v1KqGamSI7R5FK+LUwXJbb7WiJ/wGvqcH uMPWlRZ6e18ce21p/maCKiriKRYAP4kH1XWr+GKj6zoPWLR4N4MEkv00SoF8CKSjzGHJ n8UQ== X-Gm-Message-State: APf1xPBhUKXZMi54aV55GJqIC8iptYmef4ZYLHm62yWsaFCHfYqgWyJL HXo/xJuVcMa7ANuHMCJWoZ8= X-Google-Smtp-Source: AH8x224CizMj+KxAeU/t9HVUbrPWOuv44Vxl264KzPeguKjnj1msbAkKpcD+32x7PZOqako4c2Bqvw== X-Received: by 10.107.152.198 with SMTP id a189mr7198052ioe.61.1518274722425; Sat, 10 Feb 2018 06:58:42 -0800 (PST) Received: from ?IPv6:2601:300:4200:790e:c1ca:73c8:9c5:ab3d? ([2601:300:4200:790e:c1ca:73c8:9c5:ab3d]) by smtp.gmail.com with ESMTPSA id 188sm5834522iou.80.2018.02.10.06.58.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 10 Feb 2018 06:58:42 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: OT: Performance of VM From: Andrew Kerber X-Mailer: iPhone Mail (15D60) In-Reply-To: Date: Sat, 10 Feb 2018 08:58:41 -0600 Cc: Andreas Kretschmer , pgsql-performance@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <17D5011A-5D52-454F-B8A6-BE69CDD0878B@gmail.com> References: <3bc54eb3-135d-692c-47e2-208189a350d7@thomas-guettler.de> <91fec1f8-d11d-2413-6b57-5310ab0e3b8a@a-kretschmer.de> To: Robert Klemme List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I am consultant that specializes in virtualizing oracle enterprise level wor= kloads. I=E2=80=99m picking up Postgres as a secondary skill. You are righ= t if you don=E2=80=99t manage it properly, you can have problems running ent= erprise workloads on vm s. But it can be done with proper management. And th= e HA and DR advantages of virtual systems are huge.=20 Sent from my iPhone > On Feb 10, 2018, at 5:20 AM, Robert Klemme wr= ote: >=20 >> On Mon, Feb 5, 2018 at 5:22 PM, Andrew Kerber w= rote: >> Have them check the memory and CPU allocation of the hypervisor, make sur= e >> its not overallocated. Make sure the partitions for stroage are aligned (= see >> here: >> https://blogs.vmware.com/vsphere/2011/08/guest-os-partition-alignment.htm= l) >> . Install tuned, and enable the throughput performance profile. Oracle ha= s a >> problem with transparent hugepages, postgres may well have the same probl= em, >> so consider disabling transparent hugepages. There is no reason why >> performance on a VM would be worse than performance on a physical server.= >=20 > Not theoretically. But in practice if you have anything run in a VM > like in this case you do not know what else is working on that box. > Analyzing these issues can be really cumbersome and tricky. This is > why I am generally skeptical of running a resource intensive > application like a RDBMS in a VM. To get halfway predictable results > you want at least a minimum of resources (CPU, memory, IO bandwidth) > reserved for that VM. >=20 > Anecdote: we once had a customer run our application in a VM (which is > supported) and complain about slowness. Eventually we found out that > they over committed memory - not in sum for all VMs which is common, > but this single VM had been configured to have more memory than was > physically available in the machine. >=20 > Kind regards >=20 > robert >=20 > --=20 > [guy, jim, charlie].each {|him| remember.him do |as, often| as.you_can > - without end} > http://blog.rubybestpractices.com/