POV-Ray : Newsgroups : povray.off-topic : Compiling stuff Server Time
5 Nov 2024 13:25:14 EST (-0500)
  Compiling stuff (Message 4 to 13 of 283)  
<<< Previous 3 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Eero Ahonen
Subject: Re: Compiling stuff
Date: 8 Dec 2008 10:26:48
Message: <493d3cb8$1@news.povray.org>
Invisible wrote:
> http://xkcd.com/456/
> 
> Mmm... I did this.
> 
> Do you have *any idea* how long it takes to compile the Linux kernel? I
> mean, damn, how *big* is it?? I thought the final binary was only a few
> KB in size...

Usually 8-10 minutes IME.

-Aero


Post a reply to this message

From: Invisible
Subject: Re: Compiling stuff
Date: 8 Dec 2008 10:43:31
Message: <493d40a3@news.povray.org>
>> Do you have *any idea* how long it takes to compile the Linux kernel? I
>> mean, damn, how *big* is it?? I thought the final binary was only a few
>> KB in size...
> 
> Usually 8-10 minutes IME.

Exactly. "Normal" programs take less than 4 *seconds* to compile! o_O


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Compiling stuff
Date: 8 Dec 2008 10:45:39
Message: <493d4123@news.povray.org>
Invisible wrote:
> (It's no surprise however that Firefox and OpenOffice are slow as hell.
> Oh, and KDE... *very* slow!)

Compiling all of KDE using GCC 3 == PAIN


Post a reply to this message

From: Eero Ahonen
Subject: Re: Compiling stuff
Date: 8 Dec 2008 11:03:29
Message: <493d4551$1@news.povray.org>
Invisible wrote:
>>> Do you have *any idea* how long it takes to compile the Linux kernel? I
>>> mean, damn, how *big* is it?? I thought the final binary was only a few
>>> KB in size...
>>
>> Usually 8-10 minutes IME.
> 
> Exactly. "Normal" programs take less than 4 *seconds* to compile! o_O

#define normal_program;

It depends very much of the scale of the program. OpenOffice takes
couple of hours IIRC.

For comparison:
grunka linux # time emerge povray
-clip-
real    2m0.416s
user    1m15.329s
sys     0m40.495s

POV-Ray, as you surely know, "only" calculates images after all (Unix
version doesn't even have a GUI nor editor). Linux kernel inholds
drivers for most of the hardware you're using (possibly even all of
them), does memory allocating, process handling, networking,
firewalling, RAID-handling, even cryptographic thingies.

-Aero


Post a reply to this message

From: Invisible
Subject: Re: Compiling stuff
Date: 8 Dec 2008 11:13:56
Message: <493d47c4$1@news.povray.org>
>> Exactly. "Normal" programs take less than 4 *seconds* to compile! o_O
> 
> #define normal_program;
> 
> It depends very much of the scale of the program.

Indeed yes.

Since even quite "large" programs take only a few seconds to compile, 
the Linux kernel must be *huge*...

> OpenOffice takes couple of hours IIRC.

...and OpenOffice must be absolutely gigantic. But then, it's a pretty 
complex bit of software, so you'd expect that. The Linux kernel's job 
seems quite a bit simpler by comparison.

> Linux kernel inholds
> drivers for most of the hardware you're using (possibly even all of
> them), does memory allocating, process handling, networking,
> firewalling, RAID-handling, even cryptographic thingies.

Ah yes, I'm forgetting: The Linux "kernel" isn't just the OS kernel. How 
silly of me...

(It probably contains drivers for every piece of hardware known to 
mankind, even if you don't need it. And I'll bet even if you disable 
those parts, it still has to process that part of the source code to 
decide whether or not to compile it...)


Post a reply to this message

From: Mueen Nawaz
Subject: Re: Compiling stuff
Date: 8 Dec 2008 12:13:46
Message: <493d55ca$1@news.povray.org>
Invisible wrote:
> Do you have *any idea* how long it takes to compile the Linux kernel? I
> mean, damn, how *big* is it?? I thought the final binary was only a few
> KB in size...

	8-10 minutes is not that long. I've been running Gentoo for over 5
years on the same machine, so I can tell you how long it took for any
package I've ever compiled via Portage.

GTK+ 2.x takes about 40 minutes
xulrunner (which is the bulk of the Firefox compile): 1 hour.
Thunderbird: 1.5 hours
gimp: 40 minutes
glibc: 1 hour
xorg-server: 25 minutes

> Oddly, X11 also takes forever.

	For me, other things take a longer forever.

> (It's no surprise however that Firefox and OpenOffice are slow as hell.
> Oh, and KDE... *very* slow!)

	KDE need not be slow if you only compile what you want. I stopped using
DE's years ago, so now I only have a few KDE apps installed that I use.


-- 
If you think nobody cares, try missing a couple of payments.


                    /\  /\               /\  /
                   /  \/  \ u e e n     /  \/  a w a z
                       >>>>>>mue### [at] nawazorg<<<<<<
                                   anl


Post a reply to this message

From: Mueen Nawaz
Subject: Re: Compiling stuff
Date: 8 Dec 2008 12:16:06
Message: <493d5656$1@news.povray.org>
Invisible wrote:
> I still don't entirely "get" why you would ever recompile the OS kernel.
> I mean, all it does is memory allocation, interrupt scheduling, etc.
> What's to change?

	When I initially compiled the kernel after installing Gentoo, I had no
DVD drive, and was also short a lot of other hardware. So I turned those
options off. Later on, when I got certain hardware, I needed to enable
those options.

	Lately I've had to connect to work using a PPTP VPN (evil stuff). I
hadn't compiled PPTP support in the kernel. So: Recompile. Another time
I needed to use DAV. Not enabled in kernel - so I compiled.

	I don't do it often - probably 1-3 times a year.


-- 
If you think nobody cares, try missing a couple of payments.


                    /\  /\               /\  /
                   /  \/  \ u e e n     /  \/  a w a z
                       >>>>>>mue### [at] nawazorg<<<<<<
                                   anl


Post a reply to this message

From: Jim Henderson
Subject: Re: Compiling stuff
Date: 8 Dec 2008 13:48:17
Message: <493d6bf1$1@news.povray.org>
On Mon, 08 Dec 2008 13:31:27 +0000, Invisible wrote:

> http://xkcd.com/456/
> 
> Mmm... I did this.
> 
> Do you have *any idea* how long it takes to compile the Linux kernel? 

It depends.

On a lot of things, like how fast your system is, whether it's multi-core 
(if made with -j that will do parallel compilation, speeding things up a 
bit), how much memory you have, how fast your disk I/O channel is, memory 
channel, etc.

> I
> mean, damn, how *big* is it?? 

It depends.

On a lot of things, like which modules you compile into the kernel, 
compile as kernel modules, or don't compile.  Also on which options you 
actually enable.

> I thought the final binary was only a few
> KB in size...

It depends.

On my 64-bit system, the kernel is about 2.1 MB in size, but that doesn't 
include 108 MB of modules for this specific kernel.

> Oddly, X11 also takes forever.

It's a lot of code, video drivers for many different types of cards.

> (It's no surprise however that Firefox and OpenOffice are slow as hell.
> Oh, and KDE... *very* slow!)
> 
> Damn, I really don't know why the hell I did that...

Well, now you've learned something - LFS does take time. :-)

Jim


Post a reply to this message

From: Jim Henderson
Subject: Re: Compiling stuff
Date: 8 Dec 2008 13:49:44
Message: <493d6c48$1@news.povray.org>
On Mon, 08 Dec 2008 14:00:24 +0000, Invisible wrote:

> Kyle wrote:
>> That's funny.  Been there.
> 
> "...I'm too late." ;-)
> 
>>> Do you have *any idea* how long it takes to compile the Linux kernel?
>>> I mean, damn, how *big* is it?? I thought the final binary was only a
>>> few KB in size...
>> 
>> The wait is even more fun the second time around, after you realize you
>> forgot to configure a necessary driver into your custom kernel. :D
> 
> I still don't entirely "get" why you would ever recompile the OS kernel.
> I mean, all it does is memory allocation, interrupt scheduling, etc.
> What's to change?

Driver support beyond what's in your shipping kernel.

> Also... Gentoo is the only Linux distro I've ever seen where compiling
> the kernel was actually successful. Every other distro managed to either
> spit cryptic error messages at me, or just leave me with a nonbootable
> system.

Well, I've compiled on RedHat and on openSUSE, as well as having 
installed Slackware and Linux From Scratch and compiled kernels for them.

Try LFS, that'll really teach you a lot about linux, even if you don't 
get a bootable system.

Jim


Post a reply to this message

From: Jim Henderson
Subject: Re: Compiling stuff
Date: 8 Dec 2008 13:51:24
Message: <493d6cac$1@news.povray.org>
On Mon, 08 Dec 2008 13:45:55 -0200, Nicolas Alvarez wrote:

> Invisible wrote:
>> (It's no surprise however that Firefox and OpenOffice are slow as hell.
>> Oh, and KDE... *very* slow!)
> 
> Compiling all of KDE using GCC 3 == PAIN

Building GCC on Sun systems was fun - IIRC, it compiled itself three 
times, first time using the commercial compiler that came with the OS, 
and then two separate passes with GCC itself to optimize its own code.

Jim


Post a reply to this message

<<< Previous 3 Messages Goto Latest 10 Messages Next 10 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.