All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@qumranet.com>
To: Alexander Graf <alex@csgraf.de>
Cc: kvm-devel <kvm-devel@lists.sourceforge.net>
Subject: Re: hugetlbfs not working
Date: Thu, 27 Mar 2008 17:19:54 +0200	[thread overview]
Message-ID: <47EBBB1A.30109@qumranet.com> (raw)
In-Reply-To: <E9639589-66FF-486E-B229-0C5C7A61F162@csgraf.de>

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

  reply	other threads:[~2008-03-27 15:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-27 15:10 hugetlbfs not working Alexander Graf
2008-03-27 15:19 ` Avi Kivity [this message]
2008-03-27 15:30   ` Alexander Graf
2008-03-27 16:07     ` Anthony Liguori
2008-03-27 16:09       ` Avi Kivity
2008-03-27 16:35         ` Marcelo Tosatti
2008-03-27 21:55         ` Marcelo Tosatti
     [not found]           ` <47EC9302.40103@qumranet.com>
2008-03-31 17:01             ` Marcelo Tosatti
2008-03-31 17:17               ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47EBBB1A.30109@qumranet.com \
    --to=avi@qumranet.com \
    --cc=alex@csgraf.de \
    --cc=kvm-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.