LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 07-05-2010, 09:22 PM   #1
ovf
Member
 
Registered: Jul 2003
Location: Massachusetts
Distribution: LFS 4.0, Windows XP, Ubuntu 10.01, Gentoo 2.6.32-r7, OpenSolaris
Posts: 100

Rep: Reputation: 15
Are there compile time settings that will improve build performance?


Gentoo is installed as a guest machine on a Win XP VBox host. The hardware is a 1.6 Ghz Intel processor and the guest has been allocated 750mb of memory with 8G of hard drive.

I'm using stock settings for things like CFLAGS, and my builds are taking forever. I started installing openoffice this morning and it's been running for over 12 hours, used up 3g of disk space, and will most likely run out of space before the installation finishes. Is there a document I can reference that would help reduce the compile time and file size? I can post the output of whatever files might be relevant.

If/when the build fails I might move the /var/tmp/portage directory to a larger drive. Will that cause problems?

Also, the reason I'm installing openoffice is because I need a web authoring tool and Kompozer doesn't seem to be available in the portage library. I saw where it's available from something called an "overlay" but I haven't figured out how to get it, or if it's stable enough to use. It works fine on my Ubuntu box, but according to the web postings I've read it seems to have problems on Gentoo. Is anyone using it, or does anyone have a suggestion for a substitute? Doing a web search for "gentoo kompozer" brought up a link that suggested OOO as a substitute, but it didn't work well as an html editor the last time I tried it.


Thanks,
bob

Last edited by ovf; 07-05-2010 at 09:29 PM.
 
Old 07-05-2010, 09:35 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Ironically, using lower optimization settings generally speeds up compilation, at the cost of run-time optimization. Generally -O2 or -Os is the best trade-off.
 
1 members found this post helpful.
Old 07-05-2010, 09:48 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,145

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
Ugh - gentoo as a guest on a virtualized environment. Is that a single CPU processor ?. Better learn some patience methinks.

Why gentoo ?.
 
Old 07-06-2010, 03:14 AM   #4
ovf
Member
 
Registered: Jul 2003
Location: Massachusetts
Distribution: LFS 4.0, Windows XP, Ubuntu 10.01, Gentoo 2.6.32-r7, OpenSolaris
Posts: 100

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Matir View Post
Ironically, using lower optimization settings generally speeds up compilation, at the cost of run-time optimization. Generally -O2 or -Os is the best trade-off.
Thanks, my make.conf file is set for -02.

Quote:
Originally Posted by syg00
Ugh - gentoo as a guest on a virtualized environment. Is that a single CPU processor ?. Better learn some patience methinks.

Why gentoo ?.
Yes, VBox doesn't support dual processors for the guest on my laptop due to hardware limitations. I installed Gentoo after seeing a job posting that required a familiarity with it.
 
Old 07-06-2010, 04:17 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,145

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
Quote:
Originally Posted by ovf View Post
I installed Gentoo after seeing a job posting that required a familiarity with it.
Well, at least that's a valid reason ...

IMHO you'd be better off dual-booting - I only use VBox (on an i7 - Win7 Ultimate) because the box is capable of running several guests at once.
But no gentoo - that I run stand-alone (on an old P4), and it still takes forever.
 
1 members found this post helpful.
Old 07-06-2010, 08:11 AM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by ovf View Post
Gentoo is installed as a guest machine on a Win XP VBox host. The hardware is a 1.6 Ghz Intel processor and the guest has been allocated 750mb of memory with 8G of hard drive.
Enough, maybe. Far from optimal though if you plan to compile monsters like Openoffice ("OO" from now on).

Quote:
I'm using stock settings for things like CFLAGS, and my builds are taking forever. I started installing openoffice this morning and it's been running for over 12 hours, used up 3g of disk space, and will most likely run out of space before the installation finishes. Is there a document I can reference that would help reduce the compile time and file size? I can post the output of whatever files might be relevant.
Well, as someone states above, the more you "optimize" (usually) the larger the compilation time will be. The default is fine, you won't get much more out of your VM no matter what you use. A thing that *really* matters is available RAM. You haven't plenty, not enough to compile OO comfortably, that's for sure. Once you've ran out of free RAM and you start paging to disk the performance will drop (drastically, by the way). That includes compilations, of course.

OO will need around 4-6 GB of free disk space to compile. Once installed it doesn't take that much, that space is only wasted while it's compiling, and it's freed after that. However, you need that free space in whatever partition holds /var/tmp/portage while compiling OO.

Quote:
If/when the build fails I might move the /var/tmp/portage directory to a larger drive. Will that cause problems?
It shouldn't cause any trouble as long as the permissions are adequate. You can just mount -o bind any directory into /var/tmp/portage, as long as it has enough free space. You can even mount a sparse file formated with whatever fs you like.

Quote:
Also, the reason I'm installing openoffice is because I need a web authoring tool and Kompozer doesn't seem to be available in the portage library. I saw where it's available from something called an "overlay" but I haven't figured out how to get it, or if it's stable enough to use. It works fine on my Ubuntu box, but according to the web postings I've read it seems to have problems on Gentoo. Is anyone using it, or does anyone have a suggestion for a substitute? Doing a web search for "gentoo kompozer" brought up a link that suggested OOO as a substitute, but it didn't work well as an html editor the last time I tried it.


Thanks,
bob
OO is not a web editor, and I have no idea what HTML capabilities it has. It's not the tool I'd recommend for such purpose (in fact, I just recommend reading the real thing and using a text editor, instead of drawing a web in paint-brush-like programs, I know it's not a popular solution though).

Installing an overlay is as easy as using layman. Once done that, the ebuilds are in your tree and you can handle them just like any other ebuild in the official portage tree, taking into account that some of them might be in the unstable branch and/or masked (the official Gentoo handbook explains perfectly how to deal with that).

About stability, well, Gentoo can't take any responsibility for those ebuilds since they are not audited by the Gentoo project at all (though some overlays work in cooperation with some Gentoo developers, but in any case outside the official project).

Some of them might be perfectly stable, some of them might be perfectly broken, some of them might work today, and not tomorrow, or vice-versa.

http://www.gentoo.org/proj/en/overlays/userguide.xml

Not all the overlays can be handled via layman, though.
 
1 members found this post helpful.
Old 07-06-2010, 08:44 AM   #7
ovf
Member
 
Registered: Jul 2003
Location: Massachusetts
Distribution: LFS 4.0, Windows XP, Ubuntu 10.01, Gentoo 2.6.32-r7, OpenSolaris
Posts: 100

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by i92guboj View Post
Enough, maybe. Far from optimal though if you plan to compile monsters like Openoffice ("OO" from now on).

Well, as someone states above, the more you "optimize" (usually) the larger the compilation time will be. The default is fine, you won't get much more out of your VM no matter what you use. A thing that *really* matters is available RAM. You haven't plenty, not enough to compile OO comfortably, that's for sure. Once you've ran out of free RAM and you start paging to disk the performance will drop (drastically, by the way). That includes compilations, of course.
Thanks, I'll leave the CFLAGS alone.

Quote:
OO will need around 4-6 GB of free disk space to compile. OO is not a web editor, and I have no idea what HTML capabilities it has. It's not the tool I'd recommend for such purpose (in fact, I just recommend reading the real thing and using a text editor, instead of drawing a web in paint-brush-like programs, I know it's not a popular solution though).
The build failed after using up the 3G of open space on the drive, so I've moved the directory to a larger drive and will restart the build. Compile time is annoying, but it's not critical.

I can do a limited amount of HTML editing with Emacs. It slows me down but most of my pages are built off the same template and don't require extensive editing.

Quote:
Installing an overlay is as easy as using layman. Once done that, the ebuilds are in your tree and you can handle them just like any other ebuild in the official portage tree, taking into account that some of them might be in the unstable branch and/or masked (the official Gentoo handbook explains perfectly how to deal with that).

About stability, well, Gentoo can't take any responsibility for those ebuilds since they are not audited by the Gentoo project at all (though some overlays work in cooperation with some Gentoo developers, but in any case outside the official project).

Some of them might be perfectly stable, some of them might be perfectly broken, some of them might work today, and not tomorrow, or vice-versa.

http://www.gentoo.org/proj/en/overlays/userguide.xml

Not all the overlays can be handled via layman, though.
Thanks for the information.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Have i tried everything to improve my disk performance? drben Linux - Hardware 15 02-07-2006 02:38 PM
How to Improve performance of PC Imran Aziz Linux - Software 3 06-03-2004 02:10 PM
improve scsi hd performance? bdp Linux - Hardware 2 01-12-2004 11:37 PM
ways to improve performance flipboi Linux - Newbie 6 10-25-2003 11:22 AM
Trying to Build/Compile for the first time - X error puppy Mandriva 16 09-25-2003 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 01:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration