Re: g->GCthreshold overflow, possible bug?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: g->GCthreshold overflow, possible bug?
- From: Rob Kendrick <rjek@...>
- Date: 2012年8月13日 13:58:15 +0100
On Mon, Aug 13, 2012 at 02:55:34PM +0200, Patrick Rapin wrote:
> > When memory usage exceeds 2G, each call to lua_gc(LUA_GCSTEP)
> > becomes a full gc cycle (retval = 1).
> >
> > #define setthreshold(g) (g->GCthreshold = (g->estimate/100) * g->gcpause)
>
>
> Are you on a 32-bit or 64-bit platform ?
> On a 32-bit platform, it is impossible or unreasonable to use more
> that 2 GiB of memory in a application.
On some systems, 3GB per process should be possible, depending on
kernel/userspace split.
B.