erik quanstrom <quans...@quanstro.net> once said:
> On Fri Nov  2 09:44:43 EDT 2012, pavel.klinkov...@gmail.com wrote:
> > > How much memory does your system have?
> > 
> > - 512 MB RAM
> > - 512 MB swap
> > 
> > > Changeset 14739 grew the Unicode collation tables
> > > in the exp/locale/collate package by a considerable
> > > amount. The compiler's memory usage now goes above
> > > 400 MB when building that package, almost 2.5x the
> > > amount used to compile the second heavyweight and
> > > 15x the average.
> > 
> > I see.
> > I can confirm when the kernel panic occured I saw (in stats):
> > - full RAM
> > - small portion of swap occupied
If you want to work around this for the time being,
it's safe to remove that package since it's currently
an experiment and no other package depends on it.

Just 'rm -rf' the exp/locale/collate directory and
run you should be good.

> i'd wonder though if there were some way to cut down the module
> so it doesn't take quite so much memory.  even halving it would
> mean you could ditch swap.

There's a note at the top of the generated tables.go file that says
"TODO: implement more compact representation for sparse blocks".

I'm going to investigate what's causing such high memory usage
in the compiler. I imagine those huge array initializations cause
hundreds of thousands of Node allocations, at the very least.

  Anthony

Reply via email to