|
|||
|
I actually have been testing out gentoo on a VPSLINK1, compiling anything becomes a real challenge and ulimit doesn't help in that regard. Using -O0 (no optimizations) rathern than -O2 optimiziations does help getting more things to compile, however, being low on resources that may just cause more problems down the road. Looking in the gcc manual, gcc has a garbage collection scheme for the ram it uses.
The parameters ggc-min-expand,ggc-min-heapsize are used to determine when gcc should clean up and dealloc it's unused memory and their defaults are percentages of the total system memory (4gigs) so it's no wonder gcc is having problems. Setting both to 0, causes compilation to be way too slow, however setting ggc-min-heapsize to 8MB and ggc-min-expand to 0 works pretty well on a VPSLINK1 and I haven't had problems emerging anything with -O2 since (other than things that are running other processes other than gcc such python or ruby then i pretty much have to stop all non necessary services, and then maybe I squeak by). For clarification I added these flags to my CFLAGS in /etc/make.conf Code:
--param ggc-min-expand=0 --param ggc-min-heapsize=8192 |
|
|||
|
Damn, still probs.
Quote:
|
|
|||
|
I'll admit, I may have taken the long way out of solving the compiling memory problem: distcc
Yea, no joke, I just have my personal machine setup to compile everything on my VPS, and no more memory errors (a make -j12 is pretty handy).
__________________
Kelvin Nicholson http://www.helomx.com - Blacklist and availability monitoring built from the ground up for outsourced IT providers. |
|
|||
|
Pretty effective -- I compiled Apache and PHP from source, with all the extra configs I wanted, on a Link2. I was surprised how quick it compiled as well.
Then again, I don't claim to be a distcc guru, but at least it got the job done.
__________________
Kelvin Nicholson http://www.helomx.com - Blacklist and availability monitoring built from the ground up for outsourced IT providers. |
|
|||
|
Wow. Thanks. This is very useful.
My home PC is actually older and slower than VPSLink's server here, but it does have plenty of RAM. I've just tested it getting PHP5 compiled. It did not compile faster, but at least I don't have to worry about running out of virtual memory (or have to shut down services while compiling). |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|