LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-17-2011, 10:05 PM   #1
chinho
Member
 
Registered: Dec 2010
Distribution: fedora, openSUSE
Posts: 49

Rep: Reputation: 1
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
 
Old 01-17-2011, 10:09 PM   #2
chaying
LQ Newbie
 
Registered: Sep 2010
Posts: 17

Rep: Reputation: 1
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... "

Last edited by chaying; 01-17-2011 at 10:13 PM.
 
Old 01-17-2011, 10:39 PM   #3
cin_
Member
 
Registered: Dec 2010
Posts: 277

Rep: Reputation: 24
parallel compilation

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

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

Last edited by cin_; 01-17-2011 at 10:46 PM. Reason: gramm'err
 
Old 01-17-2011, 11:45 PM   #4
chinho
Member
 
Registered: Dec 2010
Distribution: fedora, openSUSE
Posts: 49

Original Poster
Rep: Reputation: 1
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
 
Old 01-18-2011, 12:06 AM   #5
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,516

Rep: Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893
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
 
Old 01-18-2011, 12:28 AM   #6
cin_
Member
 
Registered: Dec 2010
Posts: 277

Rep: Reputation: 24
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. "

Last edited by cin_; 01-19-2011 at 03:15 PM. Reason: gramm'err
 
Old 01-18-2011, 09:28 AM   #7
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,133

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
Quote:
Originally Posted by chinho View Post
Hi guys,

As subjected, is there a problem?

Thanks in advance for your responses!!
Chinho
i dont have a problem with it.
 
Old 01-18-2011, 10:12 PM   #8
chinho
Member
 
Registered: Dec 2010
Distribution: fedora, openSUSE
Posts: 49

Original Poster
Rep: Reputation: 1
Thanks cin for your explanation.

And thanks the rest for everything.

Cheers!
 
Old 01-18-2011, 11:43 PM   #9
cin_
Member
 
Registered: Dec 2010
Posts: 277

Rep: Reputation: 24
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

Last edited by cin_; 01-18-2011 at 11:55 PM. Reason: gramm'err
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Slackware 13 64bit: First time using SlackBuilds and unable to install programs. Switch7 Slackware 19 10-08-2009 09:26 AM
Problem with running programs in root after Xorg 7.2 install xbennyboy SUSE / openSUSE 1 02-19-2007 02:34 PM
Sound Card problem(every time i install linux i have diffirent hardware problem) jacka1l Linux - Newbie 7 08-11-2005 06:10 AM
i am very new to linux (programs install problem) mekoo Mandriva 10 11-03-2004 05:08 PM
I can't build static programs Red Guy Programming 3 01-19-2003 01:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:12 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration