Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cannot allocate memory running mame



On Thu, Oct 01, 2020 at 02:05:52PM +0200, Martin Husemann wrote:
> On Thu, Oct 01, 2020 at 02:03:30PM +0200, Martin Husemann wrote:
> > On Thu, Oct 01, 2020 at 01:56:15PM +0200, Thomas Klausner wrote:
> > > Program Headers:
> > >   Type           Offset             VirtAddr           PhysAddr
> > >                  FileSiz            MemSiz              Flags  Align
> > [..]
> > >   LOAD           0x0000000000000000 0x0000000000400000 0x0000000000400000
> > >                  0x00000000107ba378 0x00000000107ba378  R E    0x200000
> > 
> > MemSiz 0x00000000107ba378 > 0x0000000010000000 (which is 256MB), see
> > sys/arch/amd64/include/vmparam.h:
> > 
> > /*
> >  * Virtual memory related constants, all in bytes
> >  */
> > #define MAXTSIZ         (256*1024*1024)         /* max text size */
> 
> AFAICT for amd64 the limit is arbitrary, if you only need it temporarily for
> debugging purposes, just bump it to 512 MB (or bigger) and rebuild your kernel.

Thanks for the analysis.

Actually, that is the size of mame stripped, so yes, I need this bigger :)

Should we bump it in general?
 Thomas


Home | Main Index | Thread Index | Old Index