[PTLsim-devel] problem with running PTLSim - fullsystem, under Xen
Sasa Tomic
Wed May 9 14:44:37 EDT 2007
Matt T. Yourst wrote:
> On Wednesday 09 May 2007 10:59, Sasa Tomic wrote:
>
>> Hi,
>> I've found a suitable 64-bit machine with 8-cores (Intel(R) Xeon(TM) CPU
>> 3.20GHz).
>> The machine has SuSE linux 10.1.
>> Now, we've managed to install Xen, according to the instructions given
>> in the .pdf file on the site.
>> All the files needed are directly downloaded from the site and
>> compiled+installed.
>>
>> Xen runs fine now, and also a ptlvm virtual machine.
>> But, when we run 'xm create ptlvm -c' as a root in one console, and
>> after the greeting prompt,
>> './ptlsim -domain 5 -native' in another console, this pops up:
>>
>> _______
>> dell02:/project/ptlsim-x # ./ptlsim -domain 5
>> ptl_mm_alloc_private_pages(69206016 bytes): failed to reclaim some
>> memory (called from 0x4a370)
>> Aborted by caller 0x64da5
>>
>>
>
> PTLsim is trying to allocate a huge chunk of memory (69 MB) but there isn't
> enough heap space. Add this option to the PTLsim command line:
>
> -reservemem 256
>
> This gives PTLsim 256 MB of heap space (the maximum is 1 GB). This is
> described in the PTLsim Manual in section 13.10 ("Other Options").
>
> Probably you gave the domain a huge amount of physical memory, and PTLsim
> requires at least 8 bytes for tracking every 4KB physical page in the domain,
> since 69206016 / 8 = 8650752 pages = 32 GB (PTLsim supports up to 64 GB, if
> you actually have that much RAM - we have never tested beyond 8 GB).
>
> Here's how to look up the code that makes the failed allocation:
>
> gdb ptlxen.bin
> (gdb) break *0x4a370
> (gdb) break *0x64da5
>
> This will print out the source line (probably somewhere in mm.cpp or
> ptlxen-memory.cpp).
>
> Increasing the PTLsim heap space with -reservemem should fix this, but if you
> do NOT really have 32 GB in the domain, the problem may be elsewhere. Let me
> know what the source lines are for those two addresses - this will give us
> more information.
>
>
thank you very much, it worked!
btw, the machine has 32GB of memory, so maybe something else will
pop-up, who knows...
and I dedicated only 128MB to the domain, so I guess it's the big
physical memory that confused the thingy
(if you need further tests on this machine, we can do it for you, no
problem)
now I need to dive into code to see where to place my stuff.. :)
--
Saša Tomić
BSC - Barcelona SuperComputing Center
c\ Jordi Girona 29, Nexus I, 08034 Barcelona, España
Tel.: ,
http://www.bsc.es
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://ptlsim.org/pipermail/ptlsim-devel/attachments/20070509/171f6e63/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
Url : https://ptlsim.org/pipermail/ptlsim-devel/attachments/20070509/171f6e63/attachment.bin
More information about the PTLsim-devel mailing list