Toggle Content Toggle Content

Social Bookmarking


Donate

Support Us

Poll

Do you use a GNU/Linux based Operating System?

Never have. Not interested.
0 %0 %0 %
Never have. Interested.
0 %0 %0 %
Used/Seen it once or twice. Unfavorable opinion.
0 %0 %0 %
Used/Seen it once or twice. Favorable opinion.
0 %0 %0 %
Familiar with it. Unfavorable opinion.
0 %0 %0 %
Familiar with it. Favorable opinion.
20 %20 %20 %
Use it often, don't care for it.
0 %0 %0 %
Use it often, I like it.
0 %0 %0 %
Primary OS, still looking.
20 %20 %20 %
Primary OS, and I LOVE it!
40 %40 %40 %
Other?
20 %20 %20 %
Results :: Polls

Votes: 5
Comments: 1

ShoutBox

personman: also, welcome to the site! Smile
28-Aug-2008 11:57:33
personman: Does sound like fun. Wish I could. I'm too broke for gas and bail. Very Happy
28-Aug-2008 11:56:46
allieg: anyone going to protest at either convention? that would be amazing!
25-Aug-2008 23:29:33
personman: Ernesto: I moved our conversation here in to the forums
13-May-2008 18:52:38
personman: Thanks Smile right now I'm just testing software with them, but as I get time...you know how I do Smile
24-Mar-2008 10:59:37
(E)rnesto: the SWR was a great idea and so was mutual ads
23-Mar-2008 18:15:25
personman: Is it just me or has the server been really slow and unreliable lately? I've been planning to switch hosting in a month or so.
06-Mar-2008 17:37:28
personman: The books "Chomsky on Anarchism" and "Hegemony or Survival" by Noam Chomsky, seem to be steadily dropping in price.
04-Feb-2008 19:03:04
personman: probably my fault, I spend a lot more time working on the site than getting it in front of the people who need to see it.
28-Jan-2008 19:32:34
personman: yeah we don't really have many regulars yet
28-Jan-2008 18:29:44
yboc2000: no one ever talks on this site....
28-Jan-2008 17:52:18
yboc2000: thanks man
27-Jan-2008 11:27:56
personman: heya yboc2000, welcome to the site Smile
19-Jan-2008 06:40:39
yboc2000: Hi everyone
18-Jan-2008 11:06:42
personman: Hi Finn, welcome to the site! Smile
10-Jan-2008 08:08:08
Finn: Evening all.
09-Jan-2008 18:55:15
Khanner: Raid the Night Train! Down with the State! All Power to the People, By Any Means Necessary!
02-Jan-2008 02:49:16
(E)rnesto: matt whats up man? haven't heard from you in forever
19-Nov-2007 22:59:28
personman: Hi Aedhan, welcome to the site Smile
06-Nov-2007 15:11:41
Aedhan: Hello everybody? I'm new the site but not new to anarchy. Started up a libertarian/anarch ism group with some people I know.
06-Nov-2007 14:46:26
Shout History
Only Registered Users can Shout
Create/Login

Themes

Each user can view the site with a different theme.
Themes marked with a * also change the forum look.

Quotes

"In this possibly terminal phase of human existence, democracy and freedom are more than values to be treasured; they may well be essential to survival."

- Noam Chomsky

User Info


Welcome Anonymous

Nickname
Password

Membership:
Latest: NinjaGreen
New Today: 0
New Yesterday: 0
Overall: 101

People Online:
Members: 0
Visitors: 2
Bots: 3
Staff: 1
Staff Online:
01: personman

Who is Where?

 Members:
1: personman > Home
 Bots:
1: Twiceler > Store
2: Google > Store
3: Yahoo > Forums
 Visitors:
1: Wiki
2: Store

Linux Guide:SMP Tips

From AnarchismToday.org Wiki

Jump to: navigation, search

Utilizing Multiple Processors for Compiling

  • Note that this requires multiple processors or a multi-core CPU of some sort to see any real benefit, as well as an SMP-enabled kernel running.

I noticed a file called "smp.txt" in the Documentation directory of a recent linux kernel. This file mentioned that you can use the "-j" parameter to cause a compile job to split in to multiple jobs. The recommendation from the file was to set the number to "number of CPUs + 1" though they also mentioned you may use no number at all, so long as you have sufficient memory, and encouraged experimentation as well as timing the compilations to show what sort of benefit you are seeing.

smp.txt:

To set up SMP Configure the kernel and answer Y to CONFIG_SMP. If you are using LILO, it is handy to have both SMP and non-SMP kernel images on hand. Edit /etc/lilo.conf to create an entry for another kernel image called "linux-smp" or something. The next time you compile the kernel, when running a SMP kernel, edit linux/Makefile and change "MAKE=make" to "MAKE=make -jN" (where N = number of CPU + 1, or if you have tons of memory/swap you can just use "-j" without a number). Feel free to experiment with this one. Of course you should time how long each build takes :) Example: make config time -v sh -c 'make clean install modules modules_install' If you are using some Compaq MP compliant machines you will need to set the operating system in the BIOS settings to "Unixware" - don't ask me why Compaqs don't work otherwise.

Here are 2 methods, a General Linux, Distribution Independent method, and a specific method for Debian kernel packaging.

Distribution Independent Method

For anything that uses make, or SCONS, use the -j parameter, followed by the number of cores or processors, plus one.

Rather than typing "make" to compile, I used "make -j3" for my dual-core processor.

The documentation for make provides further information:

-j [jobs], --jobs[=jobs] Specifies the number of jobs (commands) to run simultaneously. If there is more than one -j option, the last one is effective. If the -j option is given without an argument, make will not limit the number of jobs that can run simultaneously.
  • NOTE: Using -j without specifying the number of jobs seems to be A Bad Idea.

-I ran out of memory after it went through my 2 GB of RAM and 2GB of swap. Maybe if you have some sort of freakish machine with 6-8 or more gigs of RAM you could pull it off. Increasing my swap size would probably just slow it down and defeat the purpose of splitting a compile into multiple jobs across multiple processors or cores in the first place.

Debian GNU/Linux Kernel Building and Packaging

Prerequisite:

  • Linux Kernel source, properly configured.

If you don't have them already, you will need to install kernel-package, and the essential build packages:

aptitude install build-essential kernel-package

For make-kpkg to use extra cores, we need to set the environment variable "CONCURRENCY_LEVEL" to the number of cores, plus one. An example from my dual-core system, I enter this at the console:

CONCURRENCY_LEVEL=3

Then run make-kpkg to build the kernel and create the kernel package, for this example, we'll assume the kernel source is located in /usr/src/linux, and has been properly configured:

cd /usr/src/linux

make-kpkg --initrd --rev Custom.1 kernel_image

The kernel should begin building, utilizing the additional cores.