Am 06.02.2012 22:33, schrieb Grant:
> I'm trying to compile GCC on a remote system with 192MB RAM.  It's
> completed successfully before but now it uses up all RAM.  The compile
> doesn't stop but it must be thrashing.  I have MAKEOPTS="-j1" in
> /etc/make.conf.  Am I jeopardizing my HD by letting it swap on the
> compile right now?  I've ordered an upgrade to the max of 512MB.  I've
> stopped all processes using up memory that I don't need including X.
> Is there anything else I can do to get through the compile with 192MB
> RAM?
> 
> - Grant
> 

I noticed a sudden spike in gcc's memory consumption here. I had enough
memory to keep up with it but it still filled ca. 6GB of RAM for a
single .c file. Then it went back down. If you experience the same, I
guess adding swap is reasonable as you won't need it for the whole time.

P.S: Did you consider using a bin-pkg from a different system? You could
also export your root-fs via NFS and compile in a chroot from a
different system.

Regards,
Florian Philipp

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to