LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-05-2014, 02:13 AM   #1
nix84
Member
 
Registered: Apr 2014
Posts: 276

Rep: Reputation: Disabled
Processor selection


Am preparing to acquire a laptop but unsure of my selection capability.
Both machines are Toshiba one has a 2020M dual core Pentium processor running at 2.4GHz. and the other has an AMD A4-5000 running at 1.5GHz.
Slackware runs SMP and am not sure the quad core A4-5000 would be faster or not. I've always bought on processor speed as there are few applications running more than single core so have been told to go with speed. Would that be true for SMP OS?
 
Old 06-05-2014, 05:50 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
The Linux kernel in Slackware supports multi processor since roughly version 13:
Quote:
Slackware's Linux kernels come in both SMP and non-SMP types
now. The SMP kernel supports multiple processors, multi-core CPUs,
HyperThreading, and about every other optimization available.
All other consideration being equal, I always go with the bigger clock cycle number, unless the laptops case is red because, as everyone knows, the red ones go faster.
 
Old 06-05-2014, 06:41 AM   #3
genss
Member
 
Registered: Nov 2013
Posts: 744

Rep: Reputation: Disabled
amd one uses less power (15W to 35W), has more extensions and an integrated gpu
intel one i assume should be faster for single cpu things

firefox kinda uses multiple cpu's
much everything else you won't notice the difference, unless you plan to run something like a heavy DE

also from what i see the amd one has better power saving, not enough info to be sure thou

disclaimer: i like amd more even thou intel ones are usually better (until these new generations intel were)

Last edited by genss; 06-05-2014 at 06:45 AM.
 
Old 06-05-2014, 08:42 AM   #4
perbh
Member
 
Registered: May 2008
Location: Republic of Texas
Posts: 393

Rep: Reputation: 81
Personally, I have never seen much gain in smp. Oh, I see that tasks switch from one cpu to another, but (and I stress this is my _personal_ experience) that is mostly what it does - shuffling the same task between different cpu's. Looks impressive, I'll admit, but as for actual gain - I'm more doubtful.

I have had computers with 48 cores and exposing them to some heavy data crunching - at the end of the day, 30 of those cores are never used!

Just my 2c-worth ...
So - much as I admire AMD, I'd go with the faster one unless power-consumption is an issue ... (AMD tend to be a lot leaner in this department)

Last edited by perbh; 06-05-2014 at 08:44 AM.
 
Old 06-05-2014, 10:25 AM   #5
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Multi-core becomes valuable when running more than one application that makes heavy use of clock cycles or when multiple processes are sending interrupts to the processor in quick succession. I'm told you can code to take advantage of multi-core but that's well beyond my skill set.
 
Old 06-05-2014, 10:48 AM   #6
genss
Member
 
Registered: Nov 2013
Posts: 744

Rep: Reputation: Disabled
Quote:
Originally Posted by perbh View Post
Oh, I see that tasks switch from one cpu to another, but that is mostly what it does - shuffling the same task between different cpu's. Looks impressive, I'll admit, but as for actual gain - I'm more doubtful.
if i remember correctly; the scheduler tends to move things around in those cases to reduce wear on one core and thermal.. how you call it.. stress
you can pin it to one cpu, but no need to

@dijetlo
sometimes it helps while for the most part it doesn't
if the program is mostly sequential logic then it can't be parallelised, like a window manager
while something like firefox that does good few things independent, decoding multiple pictures at once for example, can benefit some (from a couple cores, not so much on 4)

dota2, from what i see, runs on ~4 cores but only one is maxed out (i'm guessing the one that deals with opengl)
 
Old 06-05-2014, 11:13 AM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,339

Rep: Reputation: 5380Reputation: 5380Reputation: 5380Reputation: 5380Reputation: 5380Reputation: 5380Reputation: 5380Reputation: 5380Reputation: 5380Reputation: 5380Reputation: 5380
When you run Slackware, you do a lot of compiling from source, and these compile operations can be set to take advantage of as many cores that you have.
 
2 members found this post helpful.
Old 06-05-2014, 12:01 PM   #8
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Thank you Dugan!
You just got bookmarked
 
Old 06-05-2014, 01:30 PM   #9
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,339

Rep: Reputation: 5380Reputation: 5380Reputation: 5380Reputation: 5380Reputation: 5380Reputation: 5380Reputation: 5380Reputation: 5380Reputation: 5380Reputation: 5380Reputation: 5380
Make, which is often called by SlackBuilds, has a "-j" flag that specifies the number of parallel processes Make should run. As a rule, you want to set it to one more than the number of CPUs that Linux thinks you have.

Pat's SlackBuilds (in source/) are hardcoded to use "-j7". Of course, you can edit the SlackBuilds before running them.

For other SlackBuilds, you can set the following in ~/.bashrc, in /etc/sbopkg/sbopkg.conf, and other places as appropriate:

Code:
export MAKEOPTS=' -j7 '
Where the number after the -j is one more than the number of CPUs that Linux thinks you have. Or, again, you can edit the SlackBuilds before running them.
 
1 members found this post helpful.
Old 06-05-2014, 02:31 PM   #10
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
You mean MAKEFLAGS. MAKEOPTS only exists on Planet Gentoo.

Although many packages' build systems work with -j >1, there are a lot of them that don't. Some SBo SlackBuilds for packages that *must* have -j1 explicitly say 'make -j1', but there are plenty more that need -j1 and don't set it. If your build dies with a mysterious Error 1 or Error 2 or linking error or can't find a file, you've angered the gods of parallelism.
 
1 members found this post helpful.
Old 06-05-2014, 03:05 PM   #11
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
To make sure I have this correctly, the virtualized core systemdistro is optimized on a 6 core hardware emulation and installing without changing our Beloved Dictator for Lifes configuration switches. However any packages added outside of the official distro will probably need to have the 'MAKEFLAGS=' -j7 ' configure option explicitly set, unless they expressly say otherwise or fail to successfully build in which case reset the MAKEFLAGS=" -J--something less than seven " until you get a successful build?

Last edited by dijetlo; 06-05-2014 at 03:16 PM.
 
Old 06-05-2014, 03:42 PM   #12
genss
Member
 
Registered: Nov 2013
Posts: 744

Rep: Reputation: Disabled
Quote:
Originally Posted by dijetlo View Post
To make sure I have this correctly, the virtualized core systemdistro is optimized on a 6 core hardware emulation and installing without changing our Beloved Dictator for Lifes configuration switches. However any packages added outside of the official distro will probably need to have the 'MAKEFLAGS=' -j7 ' configure option explicitly set, unless they expressly say otherwise or fail to successfully build in which case reset the MAKEFLAGS=" -J--something less than seven " until you get a successful build?
-jn is a `make` flag, the kernel has nothing to do with it ( man make )
it does not change nothing except how many threads (processes to be more precise) are used to compile something

and yes, some programs will not build when tried in parallel so globally exporting it can cause problems in the future

putting -j over the number of cores will bring no tangible benefit
 
Old 06-05-2014, 04:30 PM   #13
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Thanks.
 
Old 06-05-2014, 04:38 PM   #14
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
The words laptop / netbook and power do not belong in the same sentence. Instead focus on the overheating issue, which is by far the biggest problem with these devices (don't take my word for it search the internet and this forum). Personally, I am never buying a powerful laptop again. I'll stick to Atom-based netbooks if they continue to exist, preferably with intel onboard graphics because graphics cards also overheat easily. If you get an optimus one, make sure you can disable the nvidia card.
 
Old 06-05-2014, 05:19 PM   #15
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117Reputation: 2117
Linux works best on multi-core CPUs and can be easily optimized for them. In short the the more cores you have for a Linux box, the better. The CPU speed really doesn't matter that much as Linux distributions are not as resource heavy as Windows. 1.5GHz w/ 4 Cores will honestly do more work what a 2.4GHz with 2 Cores.

The only place you might see a drop in speed is possibly high resolution heavy OpenGL gaming and video file encoding and decoding. If you do neither of these, then don't even worry about it.
 
  


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
Kernel: Processor Family Selection for Generic i686 frozenQueue Linux - Kernel 1 09-23-2010 02:37 AM
Processor selection for a Linux box darasen Linux - General 2 03-03-2010 05:03 PM
Processor Type selection in Kernel kushalkoolwal Linux - Kernel 4 06-16-2009 04:26 AM
processor selection - Slackware 12.1 - Kernel 2.6.5 Condemn Slackware 5 07-17-2008 03:06 PM
Slack 9.0 Selection of kernel dual processor tungsten Slackware 3 06-27-2003 03:50 AM

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

All times are GMT -5. The time now is 12:59 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
Open Source Consulting | Domain Registration