Comments: emerge life


Whats the current kernel version for gentoo ?
Any choices for kernel versions ?

I am still stuck with fedora/debian and pretty much
handmade stuff... cant schedule enough downtime.

I have a stupid toshiba laptop ... none of the distros quite satisfied me in terms of ACPI, openoffice/staroffice and suspend support. Do provide some feedback if you make any significant breakthroughs in these areas.

Posted by Rohit at April 30, 2025 07:27 AM

There is a whole slew of chioces with gentoo. Look at the Gentoo Linux Kernel Guide for more info. I installed the gentoo-dev-sources series, which is 2.6.5 with a whole bunch of performance enhancing patches not available in the vanila kernel.

I think I have made some headway with ACPI. I think I got speedstep to kind of work, and also frequency scaling depending on whether AC power is connected or not. The suspend works in the sense that the system goes into power saving mode, but when I wake it up again, there is nothing on the LCD. I'll post more on this later.

Posted by ankit at April 30, 2025 12:29 PM

Ankit :

For the uninitiated, this is because gentoo compiles everything on the computer it is being installed on. This ensures best performance and no feature bloat.

Sayantan :

I have been exclusively on Linux for almost 2 years now. I have tried everything - Debian, Redhat, Fedora, SuSe, RedHat enterprise etc. etc. [mainly due to the fact that I am sys-admin in my research lab!]. I have "heard" a lot about the so-called efficiency which is obtained when compiling the software versus just installing the binaries. I have tried to investigate it to the extent that I have compiled KDE 3.x many times over with -O3 and all the compile switches suggested in newsgroups. [Mind you, gcc does have some _very_ aggressive compiling options !]. But frankly speaking, I have NOT been able to see a big difference in performance. Have you ? I would REALLY love to see some real proof of the performance gain [no, this is not a bait or a flame, just genuine curiosity !!!].

Ofcourse, I am not talking about comparing performance of debug builds with custom builds ... but more like comparing the performance of Debian binaries w.r.t. compiled stuff. [I know for sure that Redhat binaries are definitely not optimal ... I saw some of their KDE compile switches]. So far, I see that Debian does the best job distributing binaries...

But really is the "emerge" feature something new ? I don't know about Gentoo, but this was available as apt-get in Debian initially. Since Debian has been around for quite sometime [and that its totally open source], I kinda don't see anything new, apart from the fact that it forces compile on users.

Posted by Sayantan Sur at April 30, 2025 10:53 PM

Sayantan, you have some really good questions.

Yes, I have seen speedups when comparing gentoo with other distributions such as fedore, and suse. One of the main reasons behind this is the architecture flags. A binary that is to run on any x86 processor can not make use of features like sse2, mmx, 3dnow etc. The second important advantage is the "USE" flag. Many applications have gui support for both gnome and kde, for example. By saying USE="-kde", the app gets compiled without KDE support. See this for more info on the USE flags. See some performance benchmarks here.

I have never tried Debian myself - never been a big fan of a distribution that forces its users to call it GNU/Linux... Sure, Debian has had apt-get for ages. I am sure it is pretty good. I've just never tried it. My other problem with Debian is their strict "free-only" policy. If my linux distribution cannot provide me with the nvidia drivers that I need, I would rather use a different distribution!

The last thing about gentoo forcing people to compile all apps is completely wrong. You can install the complete gentoo system without having to compile a single file! Then wait for the next "release" (one every 3-5 months), and emerge the precompiled binaries again to upgrade! True, if you want to live on the cutting edge, you have to compile. But it is just as easy as any other install. It does everything automatically. Just takes a while...

The other really cool thing about gentoo is its community. I found a similar community behind Slackware. It is hard to explain what sets it apart, but it is something I never found with other distributions (yes, including Debian).

One last thing - I initially decided to install the firefox binary ("emerge mozilla-firefox-bin") instead of compiling it. I used it for a while, and then re-emerged it using "emerge mozilla-firefox", which forced a re-compile. Not only did I get a faster browser, I also get full anti-aliased fonts!!

Posted by ankit at April 30, 2025 11:18 PM

I have been lusting for Gentoo for quite some time now. There was another distro before, with a similar concept, I think it was called Sorcerrer Linux or something of that sort.

My biggest problem:

1. Time Required
2. Continious Connectivity.

Is there some way I can first set up a mirror on the network and from where all the people can set up Gentoo on their machines. Is it possible for this mirror to be updated on a daily/weekly basis?

Looking for a cheap desktop in Hyderabad, so that I can 'play' around with stuff. For one year or so my laptop will have to be dedicated to WINDOWS only.

Cheers,
Dhar

Posted by Dhar at April 30, 2025 11:31 PM

Dhar, You can set up a mirror and have all updates come from there. Howevever, I would recommend doing a Stage 3 install, and use the Universal LiveCD, and Packages CD to get the latest binary snapshot of everything (this is about a week old, so it is all fairly recent). Think of this as the traditional "release". If you need to upgrade anything, you'll have to emerge it. In that case, I would recommend a "emerge --fetchonly packagename" to download all the code. You can then do a "emerge packagename" even if you disconnect.

See here for the installation instructions.

Posted by ankit at May 1, 2025 08:23 AM

Ankit :

The second important advantage is the "USE" flag. Many applications have gui support for both gnome and kde, for example. By saying USE="-kde", the app gets compiled without KDE support.

Sayantan :

Maybe most applications don't even use both supports ! C'mon, if you were writing an application with support for various different platforms, your branch of execution would be based on a 'switch-case' statement, wouldn't it ? Agreed, that by compiling in support for only one platform (or option) can save you wee-little bit of space, but given the very aggressive methods of the loading binaries, you can be almost sure that those parts of the binary are never even loaded by Linux.

I made an ignoramus statement of Gentoo forcing compile ... sorry about that. But I should point out that Debian has a "non-free" branch too. Just that its not in the default debian tree. If you want non-free stuff, just add that apt-line in /etc/apt/sources.list and that's it ! You can use it just like before ! The idea behind Debian is that people who just do a default install SHOULD NOT get some proprietary drivers and thus be free of any legal problems. I agree that Debian people can be very over-zealous at times, but the quality of the distribution really amazes me, so I stick with it !

Okay, I didn't believe the performance numbers on the Gentoo site. First of all, they didn't mention what kernel was running on both of the machines ! Secondly, Mozilla load times can vary lots depending on preferences ! For e.g. if my preferences file is on NFS, then whatever Mozilla tries to optimize on startup is lost, since NFS takes most of the time. I believe I've seen differences in start time depending on options like Javascript, plugins installed etc. etc.

Also, I don't buy the idea of "prelinking". Its essentially putting all the libraries in the executable. This has 2 main disadvantages :

1. Binary can be arbitrarily large,
2. Recompiling software when libraries get upgraded.

I believe that it was the 2nd option which really made shared libraries popular. Ofcourse, prelinking might work for individual desktops of enthusiasts, but I'm not sure about enterprise systems.

Even after saying so many bad things about Gentoo, I am thinking of actually trying it out :-) Seems interesting ... afterall, If I can get just Mozilla pre-linked it might be worth it !

Posted by Sayantan Sur at May 1, 2025 10:20 AM

Sayantan,

You make some really good points there. The support of different platforms only increases bloat, and only increases load time if the application is well written. But in certain cases, enabling special GUI support might involve loading themes, setting fonts, and doing all the stuff you are never going to use. It would also seriously slow the app if it was poorly written.

I think you've completely missed the thing about pre-linking. No one is advocating the use of pre-linking over shared libraries - it would be stupid in most cases. But what gentoo gives you is the option of enabling it either on a per-app basis, or through the entire system if you so wish. It is giving you more choice, thats it. If you dont like it, dont use it.

Another thing is that with slackware, redhat, etc., I found that almost all new sutff I installed was from compiling source myself. Either it was a new version of an application that did not have an official package yet, or it was a new app that wasnt popular enough. What gentoo gives you is a neat, and organized way of doing this. It gives you a way of doing pakcage management if compiling from source is something you do often anyways (which is true in my case!)

Anyways, to each his own. I would not recommend gentoo, or slackware, or even debian to a newbie. But if you are brave and like to have some fun, give them a shot. Each distribution has its own strong points and week points. But I think I've found my perfect distribution!

Posted by ankit at May 2, 2025 04:30 PM
Post a comment









Remember personal info?