From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: hugetlbfs not working Date: Thu, 27 Mar 2008 17:19:54 +0200 Message-ID: <47EBBB1A.30109@qumranet.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel To: Alexander Graf Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org Alexander Graf wrote: > Hi, > > I'm currently trying to get hugetlbfs working on the current git > version and am quite puzzled to see it not working. It appears as if > the ftruncate call fails: > > open("/dev/hugetlbfs//kvm.vI3G8z", O_RDWR|O_CREAT|O_EXCL, 0600) = 7 > unlink("/dev/hugetlbfs//kvm.vI3G8z") = 0 > ftruncate(7, 157286400) = -1 EINVAL (Invalid argument) > dup(2) = 8 > fcntl(8, F_GETFL) = 0x8001 (flags O_WRONLY| > O_LARGEFILE) > close(8) = 0 > write(2, "ftruncate: Invalid argument\n", 28ftruncate: Invalid argument > ) = 28 > close(7) = 0 > > My host kernel is a 2.6.22. > > Is this supposed to work? The first version did not have the ftruncate > call, so maybe it doesn't work at all with hugetlbfs? > Are you on i386 non-pae? that has 4MB pages, while you're asking for for 37.5 4MB pages. Try adding 2MB to the requested memory size. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace