LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is there a problem if i build install 2 or more programs at the same time?? (https://www.linuxquestions.org/questions/linux-newbie-8/is-there-a-problem-if-i-build-install-2-or-more-programs-at-the-same-time-856945/)

chinho 01-17-2011 10:05 PM

Is there a problem if i build install 2 or more programs at the same time??
 
Hi guys,

As subjected, is there a problem?

Thanks in advance for your responses!!
Chinho

chaying 01-17-2011 10:09 PM

If you are running apt : you can't !

With the sources : I guess no as it's supposed to lock the files as they are accessed.

"I decline anyway any responsability for... " ;)

cin_ 01-17-2011 10:39 PM

parallel compilation
 
A good bellwether is usually the number of CPU cores plus one.

http://www.gentoo.org/doc/en/handboo...oc_chap4_sect3

chinho 01-17-2011 11:45 PM

Hi chayin, what if I were building different sources? Can i build 2 different sources at the same time?

Hi cin, I dont understand what you mean.

Thks,
Chinho

grail 01-18-2011 12:06 AM

cin's advice is good as along as neither depends on each other. So the advice is you can generally (see previous statement) build one more source than the number
of cores / cpus

cin_ 01-18-2011 12:28 AM

Sorry if it was confusing...

What I mean is that you can compile one more program simultaneously than you have CPUs.
If you are having trouble understanding how many CPUs, processors, you have then you most likely have one.
I have one. So that means I can compile two programs simultaneously.
If you have a dual core, meaning two CPUs, you can compile three programs at the same time.

Code:

# uname -p
*PROCESSOR INFO
# cat /proc/cpuinfo
*PROCESSOR INFO, SEE CPU CORES
#

Honestly, I rarely compile more than one program at a time. In regular compilation requiring circumstance one at a time makes the most sense to me.
For instance, if I want to add a program to my system then it is only one compilation. Or in case of dependencies, which I think is what grail was talking about, you should do them one at a time, and usually in an appropriate order.

The only time I am compiling in parallel is when I do a clean install, and I have to replace all of my favourite programs to my base install. Because they are my favourite and they come with me to every distro I go, I know them well, and know which compilations will be more resource greedy and which order to compile them all in.

This seems only a Slackware issue to me, as all to most other distros come with a packaging system that automates all of this for you. When they are there, and the package is available, I always use the packaging system. That way I have a means of removing a program that I stop using.
In the case of Gentoo, their packaging system is wonderful and has all sorts of excellent configurations, even beyond this MAKEOPTS determining how many parallel compilations to perform. ...see USE...

That Gentoo Handbook is an excellent resource to really get to know Linux better...

Also, bellwether, I believe was an old sheep herding term about castrated rams wearing bells to lead a flock that has evolved to mean something like a high trend, or common practice that returns what is agreed to be the best results... or something...

From Shakey's The Merchant of Venice
"I am a tainted wether of the flock,
Meetest for death; the weakest kind of fruit
Drops earliest to the ground, and so let me. "

schneidz 01-18-2011 09:28 AM

Quote:

Originally Posted by chinho (Post 4228213)
Hi guys,

As subjected, is there a problem?

Thanks in advance for your responses!!
Chinho

i dont have a problem with it.

chinho 01-18-2011 10:12 PM

Thanks cin for your explanation.

And thanks the rest for everything.

Cheers!

cin_ 01-18-2011 11:43 PM

wraycarr's experience
 
wraycarr finds even his multicore runs best with single compilation configured... http://www.linuxquestions.org/review...t=1193#review7

My pleasure.
be good


All times are GMT -5. The time now is 09:06 PM.