Tuesday, September 21, 2010

SBR600- week2 - modifying -j values in .rpmmacros

To do this lab, I used a school computer in the open lab which has

intel Q9550 quad core cpu running at 2.83GHz and 4GB ram on it.

The result of rebuilding a package from its source RPM based on -j

value in ~./rpmmacros are the following:

%_smp_mflags -j0
error

%_smp_mflags -j1
real 0m31.406s
user 0m20.616s
sys 0m6.055s

%_smp_mflags -j2
real 0m24.657s
user 0m20.507s
sys 0m6.110s

%_smp_mflags -j3
real 0m22.559s
user 0m20.901s
sys 0m6.269s

%_smp_mflags -j4
real 0m21.480s
user 0m21.154s
sys 0m6.365s

%_smp_mflags -j5
real 0m21.636s
user 0m21.257s
sys 0m6.481s

%_smp_mflags -j6
real 0m21.430s
user 0m21.129s
sys 0m6.294s

commenting out of %_smp_mflags
real 0m21.650s
user 0m21.216s
sys 0m6.409s

The %_smp_mflag in .rpmmacros file is used as the make command

builds a package to set the number of jobs which will run at once.
As it is observed above, if the number of jobs sets to 0, it stops with
error. If there is no argument, it is considered as infinite jobs. I
didn't see any significant increment of performance after the value
of 4. 4 or higher value for the -j switch is best suited for the system
I tested.

Monday, September 13, 2010

SBR600-Building software packages from source code

1. NLED

First of all, I downloaded the NLED source code from

"http://cdot.senecac.on.ca/software/nled/" and extracted

the file using the command "tar -xzf nled_2_52_src.tgz"

Then I tried "make" command in the directory which

contains the source code of NLED but I got the following

error messages.

[jaewoo@localhost nled-2.52]$ make
cc -O -c -o nled.o nled.c
make: cc: Command not found
make: *** [nled.o] Error 127


After this, I realized there is no C compiler installed on my system.

So I did "yum install gcc" and then "yum install "*/ncurses.h"

respectively to install a C compiler and ncurses library.

After these steps were done, the "make" command successfully

created the "nled" editor

2. Installing aMSN

I got the aMSN souce code from "http://sourceforge.net"

"http://softlayer.dl.sourceforge.net/project/amsn/amsn/0.98.3/amsn-0.98.3-src.tar.bz2"

To extract the archive file, use either

"tar -xjvf amsn-0.98.3-src.tar.bz2"

or

"bunzip2 amsn-0.98.3-src.tar.bz2 && tar -xvf amsn-0.98.3-src.tar" command.

When I issued the command "./configure" there were so many

prerequisite packages missing so I had to install all missing

packages first at the below using "yum" respectively :

"gcc-c++ , tcl-devel, tk-devel, libpng-devel, libjpeg-devel,

gstreamer-devel, farsight2-devel".

At last, I was able to successfully run the aMSN messager on

my linux system.


Friday, September 10, 2010

SBR600 - first use of blog

Hello folks!

I'm Jaewoo Park in CTY and this semester will be hopefully my last semester at

Seneca. Although I took ops235, 335, 435, and 535 I'm not so familiar with

Linux as with Windows. However I still have interest in Linux system and will

use Fedora for my home computer.

Let's have a lot of fun during this semester.

I tried to talk to someone on Seneca IRC channel but no one was there. XD



https://fedoraproject.org/wiki/User:Jwpark2


http://zenit.senecac.on.ca/wiki/index.php/User:Jwpark2