LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-05-2015, 08:27 AM   #1
nolretou
Member
 
Registered: Apr 2014
Distribution: Slackware
Posts: 98

Rep: Reputation: Disabled
Question Multithread compilation doesn't use multicore on 14.1 and -current on multilib.


Hi,

On a pure 64 bit I've compiled e.g. webkitgtk with a modified SlackBuild, using make -j4.
All cores were at 100% usage.

Now on multilib, only one core is used. The only way to make it work is to be root using "su". "su -" is unable to use all cores.

I've already noticed that with other packages, on both 14.1 and -current on three different machines.

I strictly followed the multilib installation procedure.
 
Old 01-05-2015, 09:08 AM   #2
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
From what I remember webkitgtk can't be compiled with parallel processes.
 
Old 01-05-2015, 05:47 PM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Certain packages will only build with a single process, but multithreading must actually be coded into the software to utilize it. The 32-bit packages would have to actually be built with support for SMP. Because most 32-bit packages are not built with SMP in mind since several 32-bit CPUs do not support multithreading and SMP, these features are disabled when using 32-bit software.
 
Old 01-05-2015, 08:10 PM   #4
thirdm
Member
 
Registered: May 2013
Location: Massachusetts
Distribution: Slackware, NetBSD, Debian, 9front
Posts: 316

Rep: Reputation: Disabled
These explanations don't account for it working with plain su but not with su -. Are you passing the -j 4 on the command line or using an environment variable (MAKEFLAGS?) to pass it down? How is su being invoked? Do you first su to a root prompt and then type make or are you passing make as an argument to su?

There's also something in the man page about - needing to be the last option to su . What if you use (the recommended) -l instead of -?

Last edited by thirdm; 01-05-2015 at 08:13 PM.
 
Old 01-10-2015, 01:01 PM   #5
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
I have the same exact problem.
When compiling a kernel on a multilib system, I'm forced to use su instead of su - or su -l if I want to see all my cpus going 100%.
 
Old 01-10-2015, 04:26 PM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by nolretou View Post
Hi,

On a pure 64 bit I've compiled e.g. webkitgtk with a modified SlackBuild, using make -j4.
All cores were at 100% usage.

Now on multilib, only one core is used. The only way to make it work is to be root using "su". "su -" is unable to use all cores.

I've already noticed that with other packages, on both 14.1 and -current on three different machines.

I strictly followed the multilib installation procedure.
What happens when you login as root and run a build?
 
Old 01-10-2015, 04:45 PM   #7
schmatzler
Member
 
Registered: Jan 2011
Location: Germany
Distribution: Slackware64 -current + Multilib
Posts: 411

Rep: Reputation: 181Reputation: 181
Quote:
Originally Posted by moisespedro View Post
From what I remember webkitgtk can't be compiled with parallel processes.
It can on -current.

Quote:
Sun Jun 1 19:48:54 UTC 2014
[...]
d/make-3.82-x86_64-5.txz: Rebuilt.
Patched to fix a bug with parallel builds.
 
Old 01-12-2015, 03:41 PM   #8
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Rep: Reputation: 131Reputation: 131
Quote:
Originally Posted by Linux.tar.gz View Post
I have the same exact problem.
When compiling a kernel on a multilib system, I'm forced to use su instead of su - or su -l if I want to see all my cpus going 100%.
I have a fairly clean install of Slackware 14.1 64 bit with multilib. Just last week I upgraded to the 3.18.2 kernel, and when I did make -j8, all 8 cores were maxed out. I used 'su -', not just 'su', and it worked fine.

Slackware 14.1 64 bit, recently updated via slackpkg
16GB ram
Amd FX 8 core 4GHz cpu
 
Old 01-12-2015, 11:24 PM   #9
JackHair
Member
 
Registered: Aug 2009
Location: Netherlands
Distribution: Slackware64-current
Posts: 167

Rep: Reputation: 39
I'm on -current multilib too and can confirm I get 100% across all cores. I do use sudo instead of su though.
 
  


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
pure 64 versus multilib: issue with some software compilation tramni1980 Slackware 1 05-03-2012 02:52 AM
Question about programs compilation on Slack64 multilib. Linux.tar.gz Slackware 3 09-03-2011 01:51 PM
Need help with multilib compilation muruthegun Linux - Newbie 1 04-26-2011 05:37 AM
upgrading slackware64 13.1 multilib to slackware64 -current multilib Cultist Slackware 4 03-12-2011 09:04 AM
[SOLVED] -current, multilib, and KDE-4.3.4 mlangdn Slackware 12 12-23-2009 03:57 AM

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

All times are GMT -5. The time now is 08:38 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