LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-06-2012, 08:11 AM   #16
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,029

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Lightbulb Strip it out !


It pretty much depends on how much have to be compiled, the more modules the longer will take, I have done this on very old computers, takes about 5 hours on a 250Mhz with 64MB RAM, but only take about 20mins or less on a twin core machine and less than 15mins in a quad core machine, but, again, that depends on how much is being compiled. The more you tweak your kernel the better the results will be and less time will take to complete. Generic kernels bring TONS of things that you don't need. Strip it out !!

Regards
 
Old 10-06-2012, 08:14 AM   #17
GazL
Senior Member
 
Registered: May 2008
Posts: 3,440

Rep: Reputation: 959Reputation: 959Reputation: 959Reputation: 959Reputation: 959Reputation: 959Reputation: 959Reputation: 959
Quote:
Originally Posted by H_TeXMeX_H View Post
I also use -j with the number of cores I have mostly to be able to do other things while its compiling, like browsing the web, without major slowdown.
Over-committing on the -j option is really only useful if you're seeing CPU IDLE or WAIT % >0, otherwise you're only going to slow the build down by introducing unnecessary task swapping overhead and I/O contention.. Over-commit too much and you can actually slow down the build by a significant factor.

No of cpu's +1 is a good rule of thumb but the best thing to do is watch top and tune things to your own system. make -j2 is optimal for me.

I've added the following to my kernel.Slackbuild script to maintain a decent user desktop experience while compiling
Code:
renice -n 19 $$ >/dev/null   # be kind, renice.
chrt -b -p 0 $$              # non-interactive batch scheduling class.

Last edited by GazL; 10-06-2012 at 08:22 AM.
 
Old 10-06-2012, 09:01 AM   #18
r.vaillancourt
LQ Newbie
 
Registered: Oct 2012
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by business_kid View Post
On paper, you and I have fairly similar boxes (AMD cpu, chipset, graphics). My time was for the command
time make
which does the bulk of the work. If you're up over the hour, something's wrong. I have a 667Mhz bus (advertising spec) and a 7200 rpm drive (HP Compaq 6715S).

There's nothing major wrong with Pat's generic kernel, if you have an initrd. One possibility that springs to mind is that you don't have the chipset driver in there, and you're not getting full speed out of the disk. Try your speed with this command

sudo hdparm -tT /dev/sda

Mine does 755MB/s cached and 61.57MB/s direct. If yours is a lot off that, that could be the issue.
Ran hdparm -tT /dev/sda = 921.00 MB/sec and 75.59 MB/sec, not that far off your marks.
 
Old 10-06-2012, 09:17 AM   #19
r.vaillancourt
LQ Newbie
 
Registered: Oct 2012
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ukiuki View Post
It pretty much depends on how much have to be compiled, the more modules the longer will take, I have done this on very old computers, takes about 5 hours on a 250Mhz with 64MB RAM, but only take about 20mins or less on a twin core machine and less than 15mins in a quad core machine, but, again, that depends on how much is being compiled. The more you tweak your kernel the better the results will be and less time will take to complete. Generic kernels bring TONS of things that you don't need. Strip it out !!

Regards
Eloquently put. After looking at slacks huge and generic .configs, the generic .config is rather large compared to some custom .configs i found through googling.
 
Old 10-06-2012, 09:30 AM   #20
r.vaillancourt
LQ Newbie
 
Registered: Oct 2012
Posts: 20

Original Poster
Rep: Reputation: 0
...

Thanks guys for all the responses, very helpful.
I just found this:
LINUX: Rute User's Tutorial and Exposition (Version 1.0.0) This should be included in every Slackware release.

Thanks for all the help, very much appreciated.
 
Old 10-06-2012, 10:08 AM   #21
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,499

Rep: Reputation: 570Reputation: 570Reputation: 570Reputation: 570Reputation: 570Reputation: 570
Just for a speed comparison, I built Pat's generic config here on this similar box, twin turion @ 2Ghz, 3G ram, 4G swap.

time make -j2

65 minutes. I have a little on you speed wise (2Ghz vs 1,9Ghz) and less ram & swap. That's opposed to 16 minutes for what I actually need. A useful option to go for might be to load everything (wifi, usb storage, do an ipv6 ping, etc) and run

make localmodconfig
 
Old 10-06-2012, 11:04 AM   #22
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,388

Rep: Reputation: 1090Reputation: 1090Reputation: 1090Reputation: 1090Reputation: 1090Reputation: 1090Reputation: 1090Reputation: 1090
Though the "localmodconfig" target have been there from Linux 2.6.32 I don't recompile my kernel as I used to. As for my hardware the stock generic-smp kernel included in Slackware 14 works out of the box, I don't feel I really need it, at least for the time being. Plus, as my laptop is overheating when I use an aggressive -j parameter, I avoid using my two cores in parallel to compile.

Last edited by Didier Spaier; 10-06-2012 at 11:06 AM.
 
Old 10-06-2012, 11:07 AM   #23
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Quote:
Originally Posted by Didier Spaier View Post
Though the "localmodconfig" target have been there from Linux 2.6.32 I don't recompile my kernel as I used to. As for my hardware the stock generic-smp kernel included in Slackware 14 works out of the box, I don't feel I really need it, at least for the time being. Plus, as my laptop is overheating when I use an aggressive -j parameter, I avoid using my two cores in parallel to compile.
Clean out the dust with compressed air.
 
1 members found this post helpful.
Old 10-06-2012, 11:14 AM   #24
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,388

Rep: Reputation: 1090Reputation: 1090Reputation: 1090Reputation: 1090Reputation: 1090Reputation: 1090Reputation: 1090Reputation: 1090
Quote:
Originally Posted by H_TeXMeX_H View Post
Clean out the dust with compressed air.
I even opened it and there was not that much dust, the fan seems to work properly. May be the thermal paste is no more efficient but I am a little scared by the idea of disassembling it again and not being able of reassembling it afterwards as I have two left hands...

Last edited by Didier Spaier; 10-06-2012 at 11:23 AM.
 
Old 10-06-2012, 12:27 PM   #25
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Well, if you opened it, you probably should have changed the paste. Not much to do now, I can't recommend opening laptops as it is quite difficult to put it back together. Maybe a cooling pad will help a small bit.
 
1 members found this post helpful.
Old 10-06-2012, 12:37 PM   #26
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047
An overheating CPU is nothing that should be left in that state. If you don't want to do the necessary maintenance yourself (which is quite understandable with a laptop) I strongly recommend to bring it to your favorite local shop and let them do it. This way you will not only get the computing power you paid for, but also a longer lifetime of that device.
 
1 members found this post helpful.
Old 10-07-2012, 09:01 AM   #27
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,499

Rep: Reputation: 570Reputation: 570Reputation: 570Reputation: 570Reputation: 570Reputation: 570
I find it difficult to imagine the localmod config being perfect, although I'm recommending it. I like to choose some extras to prevent another compile down the road


@Didier Spaier: Get the dust out and the fans cleaned. A dry paintbrush and/or vacuum cleaner. The temperature cycling isn't good for the cpu, or anything else. Don't worry about the heat sink paste. You can replace it with more, or silicon grease is nearly as good. You can remove the heatsink, and stop there. Lift the old stuff with a fine blade, if it's atrophied.
 
1 members found this post helpful.
Old 10-07-2012, 09:53 AM   #28
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,524

Rep: Reputation: 94
Quote:
Originally Posted by Didier Spaier View Post
I even opened it and there was not that much dust, the fan seems to work properly.
Sure about the dust? I recently did this with an old Laptop myself - first I thought there was no dust and just some material to damp vibrations (at one side of the fan) but at a closer look it was pure dust, looking a little bit like felt (the material made from wool). If the CPU is overheating and the fan is constantly turning and turning and turning, I would expect much dust to be drawn into the Laptop.
 
1 members found this post helpful.
Old 10-07-2012, 10:30 AM   #29
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,388

Rep: Reputation: 1090Reputation: 1090Reputation: 1090Reputation: 1090Reputation: 1090Reputation: 1090Reputation: 1090Reputation: 1090
I feel a bit guilty of having hijacked this thread and have been too vague so I will first better characterize my overheating issue with thinkpad-acpi's help then if need be post the outcome in a new thread. Thanks to all who provided advises.
 
Old 10-07-2012, 01:41 PM   #30
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Here's how long it takes to compile 3.4.13 on my Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz

Code:
real	5m28.945s
user	17m11.804s
sys	1m58.368s
The kernel is custom and doesn't include everything.
 
  


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
SquidGuard very slow compiling lists z-man5 Linux - Software 1 08-21-2007 10:04 AM
Suse 9.2 & SATA - Slow, Slow, Slow jess1975 Suse/Novell 6 01-28-2007 12:17 PM
New Fedora Internet connection slow slow slow matrim Fedora 9 07-29-2005 01:39 PM
slow system after compiling Xfree86 4.3... John Silva Linux - Software 0 10-25-2003 04:59 PM
RH8 vs. W2k - Slow, slow, slow zerojosh Linux - Software 2 06-30-2003 07:19 PM


All times are GMT -5. The time now is 09:51 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration