Ali, Korey, thanks for your suggestions.

It happens right away, as soon as "process.cc" start initiating the memory
space for the program. Valgrind does not detect any issue on my laptop, and
unfortunately I cannot run it on the cluster.

Nobody else is using the cluster, so it's the perfect time for me to figure
out this issue. I am requesting 512MB of physical memory.

I suspect that it might be a problem with the way the program is
loaded/copied over the NFS. I am still digging.

-Andrea

On Tue, Jul 24, 2012 at 3:06 PM, Korey Sewell <[email protected]> wrote:

> Also, how much memory are yuou asking for? Is this a early error or
> after simulation for awhile?
>
> If you are running on a cluster, you need to be cognizant that other
> users can have processes that request a lot of memory so maybe figure
> out how you can reserve the necessary amount for you simulation before
> you send to the cluster.
>
> Lastly, Ali is right in that you should check to see that your program
> isnt simply leaking memory too (valgrind!).
>
> On Tue, Jul 24, 2012 at 11:55 AM, Andrea Pellegrini
> <[email protected]> wrote:
> > Hi all,
> > I am facing a bizarre issue w/ X86, SE, O3.
> >
> > On my laptop the simulator works fine, but when I run gem5 on our
> simulation
> > pool I almost always get "fatal: Out of memory, please increase size of
> > physical memory".
> >
> > Of course I recompile everything from scratch when I run gem5 on our
> > servers.
> >
> > I am currently trying to debug the issue, and it appears that the
> function
> > "allocPhysPages" in file sim/system.cc receives a non correct input.
> > Does anyone have a clue about which might be the problem? (I will keep
> > working on it, of course).
> >
> > Thanks!
> > -Andrea
> >
> > When I run it on my laptop I get:
> >
> > pagePtr: 1(pagePtr << LogVMPageSize) 4096 > physmem->size(): 536870912
> > pagePtr: 2(pagePtr << LogVMPageSize) 8192 > physmem->size(): 536870912
> > pagePtr: 3(pagePtr << LogVMPageSize) 12288 > physmem->size(): 536870912
> > pagePtr: 4(pagePtr << LogVMPageSize) 16384 > physmem->size(): 536870912
> > pagePtr: 5(pagePtr << LogVMPageSize) 20480 > physmem->size(): 536870912
> > pagePtr: 6(pagePtr << LogVMPageSize) 24576 > physmem->size(): 536870912
> > pagePtr: 7(pagePtr << LogVMPageSize) 28672 > physmem->size(): 536870912
> > pagePtr: 8(pagePtr << LogVMPageSize) 32768 > physmem->size(): 536870912
> > pagePtr: 9(pagePtr << LogVMPageSize) 36864 > physmem->size(): 536870912
> > pagePtr: 10(pagePtr << LogVMPageSize) 40960 > physmem->size(): 536870912
> > ....
> >
> > On our servers I get (for different runs):
> >
> >
> /home/apellegr/viperII/svnrepo/viperII/results/2012-07-24_12.57.34/job00000001.log:pagePtr:
> > 7305437193776922626(pagePtr << LogVMPageSize) 2451858153382354944 >
> > physmem->size(): 536870912
> >
> /home/apellegr/viperII/svnrepo/viperII/results/2012-07-24_12.57.34/job00000001.log_0:pagePtr:
> > 56690169(pagePtr << LogVMPageSize) 232202932224 > physmem->size():
> 536870912
> >
> /home/apellegr/viperII/svnrepo/viperII/results/2012-07-24_12.57.34/job00000001.log_1:pagePtr:
> > 60129542151(pagePtr << LogVMPageSize) 246290604650496 > physmem->size():
> > 536870912
> >
> /home/apellegr/viperII/svnrepo/viperII/results/2012-07-24_12.57.34/job00000001.log_2:pagePtr:
> > 60129542151(pagePtr << LogVMPageSize) 246290604650496 > physmem->size():
> > 536870912
> >
> /home/apellegr/viperII/svnrepo/viperII/results/2012-07-24_12.57.34/job00000001.log_3:pagePtr:
> > 60129542151(pagePtr << LogVMPageSize) 246290604650496 > physmem->size():
> > 536870912
> >
> /home/apellegr/viperII/svnrepo/viperII/results/2012-07-24_12.57.34/job00000001.log_4:pagePtr:
> > 7305437193776922626(pagePtr << LogVMPageSize) 2451858153382354944 >
> > physmem->size(): 536870912
> >
> >
> >
> > _______________________________________________
> > gem5-users mailing list
> > [email protected]
> > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
>
>
> --
> - Korey
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to