[Lguest] Error inserting lg: Cannot allocate memory

Stefan Hellermann stefan at the2masters.de
Mon Feb 25 22:43:01 EST 2008


Fabio Checconi schrieb:
> Hi,
> 
>> From: Stefan Hellermann <stefan at the2masters.de>
>> Date: Sun, Feb 24, 2008 11:05:49PM +0100
>>
>> Hello,
>>
>> # CONFIG_NOHIGHMEM is not set
>> CONFIG_HIGHMEM4G=y
>> # CONFIG_HIGHMEM64G is not set
>> CONFIG_PAGE_OFFSET=0xC0000000
>> CONFIG_HIGHMEM=y
> 
> maybe it is HIGHMEM that is pulling VMALLOC_END below (or too near to)
> SWITCHER_ADDR.  To see the actual values passed to __get_vm_area()
> you can use:
> 
>     make drivers/lguest/core.i

 switcher_vma = __get_vm_area(((((end_switcher_text - start_switcher_text) + (((1UL) <<
12)) - 1) / (((1UL) << 12))) + 2 * 1) * ((1UL) << 12),
           0x00000002, 0xFFC00000, ((((((unsigned long)__FIXADDR_TOP) -
(__end_of_fixed_addresses << 12)) - ((1UL) << 12)*(1024 + 1)) & (~((1UL <<
22)-1)))-2*((1UL) << 12)));
 if (!switcher_vma) {
  err = -12;
  printk("lguest: could not map switcher pages high\n");
  goto free_pages;
 }

Is VMALLOC_END too near to 0xFFC00000 ?
NOHIGHMEM is no option for me, this machine has 4GiB of Ram(3,5GiB usable), I don't want
to stay with <1GiB due to NOHIGHMEM.

I'm now on another box where lguest sadly doesn't work, too. The same error, it's a
HIGHMEM4G Machine too (2GiB of Ram). This time I have lguest build in, dmesg shows the
same error. Playing around with the vmalloc= kernel parameter doesn't help. I don't think
people interested in lguest only have <1GiB Ram? Config attached.

> 
> If this is the case, a workaround would be to use NOHIGHMEM.
> Hope it helps.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: config-2.6.25-rc3
URL: <http://lists.ozlabs.org/pipermail/lguest/attachments/20080225/adf0742f/attachment.asc>


More information about the Lguest mailing list