From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tanel Kokk Subject: Re: In kvm, a single process cannot allocate more than 3.6GB ram. Why? Date: Sat, 12 Dec 2009 11:23:36 +0200 Message-ID: <4B236118.6090305@gmail.com> References: <4B220ADF.6030709@gmail.com> <4B235A73.9040303@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from ey-out-2122.google.com ([74.125.78.24]:33017 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758494AbZLLJXc (ORCPT ); Sat, 12 Dec 2009 04:23:32 -0500 Received: by ey-out-2122.google.com with SMTP id d26so490176eyd.19 for ; Sat, 12 Dec 2009 01:23:39 -0800 (PST) In-Reply-To: <4B235A73.9040303@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 12/12/09 10:55, Avi Kivity wrote: > On 12/11/2009 11:03 AM, Tanel Kokk wrote: >> Does anybody have a glue why process are not able to allocate more than >> 3.6GB memory ? >> >> What should i do to allow process allocate more than 3.6GB memory? Is it >> possible at all? >> > > A guest or host process? And what happens when you try? guest process We discovered that if postgres process (on guest) used to use only 3.6GB memory regardless of guest had 8GB memory in common. Then I made simple python script, which just eat memory: ------------------------------------ #!/usr/bin/python import time, random i = 0 while (i < 100000000): a[i] = random.random() i = i + 1 time.sleep(600) ------------------------------------ And I get python MemoryError, when script has devoured about 3.6GB ram Tanel