Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-07-2008, 08:37 AM
Nikos Chantziaras
 
Posts: n/a
Default Done - KDE desktop running with GCC 4.3.0

Everything is done. I have a fully working KDE desktop, and the whole
system was compiled with GCC 4.3.0, CFLAGS="-O2 -march=core2
-fomit-frame-pointer -pipe" and LDFLAGS="-Wl,-O1 -Wl,--as-needed".

One thing didn't compile though: kde-base/arts (an "undefined
identifier" error, due to a missing #include). So I had to do
USE="-arts" for now.

End-result: it's *damn* fast. Well, at least compared to openSUSE 10.3.
No, it's not 5% faster. Everything seems more like 100% faster.
Well, perhaps openSUSE is "bloated", not sure. But anyway, I must say
I'm more than just impressed. "startx" fires up KDE almost in an
instant. Every application starts immediately. This is insane

PS:
It took me 2 days to get there though :P
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 02:37 PM
ben.kevan@gmail.com
 
Posts: n/a
Default Re: Done - KDE desktop running with GCC 4.3.0

On Apr 5, 8:46*am, Nikos Chantziaras <rea...@arcor.de> wrote:
> Everything is done. *I have a fully working KDE desktop, and the whole
> system was compiled with GCC 4.3.0, CFLAGS="-O2 -march=core2
> -fomit-frame-pointer -pipe" and LDFLAGS="-Wl,-O1 -Wl,--as-needed".
>
> One thing didn't compile though: kde-base/arts (an "undefined
> identifier" error, due to a missing #include). *So I had to do
> USE="-arts" for now.
>
> End-result: it's *damn* fast. *Well, at least compared to openSUSE 10.3.
> * No, it's not 5% faster. *Everything seems more like 100% faster.
> Well, perhaps openSUSE is "bloated", not sure. *But anyway, I must say
> I'm more than just impressed. *"startx" fires up KDE almost in an
> instant. *Every application starts immediately. *This is insane
>
> PS:
> It took me 2 days to get there though :P


Damn, sounds great.

Can you give a little more of a rundown of how it was done. What
version of GCC were you running (meaning compiled from source or from
a opensuse repo)..
I may have to try this on a test machine before I do it on my
production machine, but man.. sounds good.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 05:06 PM
Nikos Chantziaras
 
Posts: n/a
Default Re: Done - KDE desktop running with GCC 4.3.0

ben.kevan@gmail.com wrote:
> On Apr 5, 8:46 am, Nikos Chantziaras <rea...@arcor.de> wrote:
>> Everything is done. I have a fully working KDE desktop, and the whole
>> system was compiled with GCC 4.3.0, CFLAGS="-O2 -march=core2
>> -fomit-frame-pointer -pipe" and LDFLAGS="-Wl,-O1 -Wl,--as-needed".
>>
>> One thing didn't compile though: kde-base/arts (an "undefined
>> identifier" error, due to a missing #include). So I had to do
>> USE="-arts" for now.
>>
>> End-result: it's *damn* fast. Well, at least compared to openSUSE 10.3.
>> No, it's not 5% faster. Everything seems more like 100% faster.
>> Well, perhaps openSUSE is "bloated", not sure. But anyway, I must say
>> I'm more than just impressed. "startx" fires up KDE almost in an
>> instant. Every application starts immediately. This is insane
>>
>> PS:
>> It took me 2 days to get there though :P

>
> Damn, sounds great.
>
> Can you give a little more of a rundown of how it was done. What
> version of GCC were you running (meaning compiled from source or from
> a opensuse repo)..
> I may have to try this on a test machine before I do it on my
> production machine, but man.. sounds good.


Uhm, the above is on a Gentoo box. I mentioned openSUSE because that's
my main system, and now it seems slow compared to Gentoo.

I never compiled openSUSE from source; that's just too hairy to do.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-08-2008, 05:06 PM
Aragorn
 
Posts: n/a
Default Re: Done - KDE desktop running with GCC 4.3.0

Nikos Chantziaras wrote:

> ben.kevan@gmail.com wrote:
>
>> Can you give a little more of a rundown of how it was done. What
>> version of GCC were you running (meaning compiled from source or from
>> a opensuse repo)..
>> I may have to try this on a test machine before I do it on my
>> production machine, but man.. sounds good.

>
> Uhm, the above is on a Gentoo box. I mentioned openSUSE because that's
> my main system, and now it seems slow compared to Gentoo.
>
> I never compiled openSUSE from source; that's just too hairy to do.


Binary distribution kernels and libraries - the most important one
being /glibc/ - are typically compiled for generic architectures - the same
is true for everything in the system, actually, but the kernel and /glibc/
have the biggest footprint on the performance curve.

Even with /x86_64,/ they make use of generic "optimizations" that will run
equally well - or equally poor, depending on how you value it - on AMD and
Intel.

Gentoo is a source-based distribution and will thus most of the time be
compiled for your specific hardware, unless you stick to the pre-compiled
binary packages, which is what a lot of n00bs do - that way, they can brag
about running Gentoo without having to get their hands dirty <grin> - and
thus Gentoo will always have a faster feel than any other distro - LFS not
included. ;-)

--
Aragorn
(registered GNU/Linux user #223157)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-08-2008, 05:06 PM
Nikos Chantziaras
 
Posts: n/a
Default Re: Done - KDE desktop running with GCC 4.3.0

Aragorn wrote:
> Nikos Chantziaras wrote:
>
>> ben.kevan@gmail.com wrote:
>>
>>> Can you give a little more of a rundown of how it was done. What
>>> version of GCC were you running (meaning compiled from source or from
>>> a opensuse repo)..
>>> I may have to try this on a test machine before I do it on my
>>> production machine, but man.. sounds good.

>> Uhm, the above is on a Gentoo box. I mentioned openSUSE because that's
>> my main system, and now it seems slow compared to Gentoo.
>>
>> I never compiled openSUSE from source; that's just too hairy to do.

>
> Binary distribution kernels and libraries - the most important one
> being /glibc/ - are typically compiled for generic architectures - the same
> is true for everything in the system, actually, but the kernel and /glibc/
> have the biggest footprint on the performance curve.
>
> Even with /x86_64,/ they make use of generic "optimizations" that will run
> equally well - or equally poor, depending on how you value it - on AMD and
> Intel.


Although that's true (and makes sense), the biggest speed-ups I have are
with X11/KDE. I could be wrong, but I think the LDFLAGS play the major
role here. `ldd` reports much less linked-to libraries on Gentoo (I use
-O1 as well as --as-needed). The speed difference of the apps
themselves isn't that dramatic (though they *are* a bit faster, like
Konqueror displaying complex pages somewhat faster), but their loading
time is really decreased a lot; Konqeueror pops-up instantly on Gentoo,
but needs about 2 seconds on openSUSE (both have the "Preload an
instance of Konqueror" disabled in the control center).

Now one might argue if those 2 seconds are worth the trouble. Well,
call me a geek, but they are for me :P The grin on my face when a
friend boots the system and is presented with a full eye-candy KDE
desktop in no-time is priceless

RAM requirements are also nice; due to Gentoo's way of handling
dependencies, I don't have to drag-in all the useless stuff I don't
need. For example, on Gentoo I have about 15MB RAM usage on fresh boot
without X11, while on openSUSE it's about 70MB. With KDE fired up for
the first time, my Gentoo setup uses about 80MB, while it's 150+ on
openSUSE. But with 2GB RAM in my case, and today's machines in general
this isn't really a problem, so this is probably not a strong argument.
Still, I think it's very nice to only have stuff you actually need
instead of stuff the dependencies need.

Now I'm not bashing openSUSE here! It's a very nice distro (the best
binary distro for Desktops IMHO; I run away screaming when seeing
Ubuntu). But I start to like Gentoo a lot and I use it more and more often.


> Gentoo is a source-based distribution and will thus most of the time be
> compiled for your specific hardware, unless you stick to the pre-compiled
> binary packages, which is what a lot of n00bs do - that way, they can brag
> about running Gentoo without having to get their hands dirty <grin>


Not much point in running Gentoo at all in this case :P But still, it
makes a *bit* of sense due to "emerge"; that's a hell of a tool to have.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-08-2008, 05:06 PM
pk
 
Posts: n/a
Default Re: Done - KDE desktop running with GCC 4.3.0

Nikos Chantziaras wrote:

> Although that's true (and makes sense), the biggest speed-ups I have are
> with X11/KDE. I could be wrong, but I think the LDFLAGS play the major
> role here. `ldd` reports much less linked-to libraries on Gentoo (I use
> -O1 as well as --as-needed).


I think it's not due to the LDFLAGS, but rather to Gentoo's USE flag
mechanism. Binary distros have no equivalent mechanism, so they end up
building every possible extension/feature for each program they package.
This, of course, means additional programs and libraries installed as
dependencies.
With Gentoo, otoh, you can selectively enable/disable only what you want,
depending on your actual system. With Gentoo you can easily avoid
building /lots/ of libraries and dependencies by simply doing (just some
examples) USE=-gtk, USE=-doc, USE=-samba, or even USE=-X if you don't have
X. This is something binary distros cannot do, and they are forced to
compile in every possible extension for a given package, even if 80% of the
stuff will sit there unused all the time.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-08-2008, 05:52 PM
Arthur Hagen
 
Posts: n/a
Default Re: Done - KDE desktop running with GCC 4.3.0

Nikos Chantziaras <realnc@arcor.de> wrote:
[chop]
>
> Although that's true (and makes sense), the biggest speed-ups I have
> are with X11/KDE. I could be wrong, but I think the LDFLAGS play the
> major role here. `ldd` reports much less linked-to libraries on
> Gentoo (I use -O1 as well as --as-needed). The speed difference of
> the apps themselves isn't that dramatic (though they *are* a bit faster,
> like
> Konqueror displaying complex pages somewhat faster), but their loading
> time is really decreased a lot; Konqeueror pops-up instantly on
> Gentoo, but needs about 2 seconds on openSUSE (both have the "Preload an
> instance of Konqueror" disabled in the control center).


What seems to make the most difference for KDE speed is to install prelink,
and then prelink all libraries and binaries on the system, and then set the
flag that tells KDE that the system is prelinked. This is especially true
on systems with relatively slow CPUs.

Prelinking does give a nice overall speed boost to the system too, at the
expense of some disk space, and having to re-run prelink every time you
install something.

> RAM requirements are also nice; due to Gentoo's way of handling
> dependencies, I don't have to drag-in all the useless stuff I don't
> need. For example, on Gentoo I have about 15MB RAM usage on fresh
> boot without X11, while on openSUSE it's about 70MB. With KDE fired
> up for the first time, my Gentoo setup uses about 80MB, while it's 150+ on
> openSUSE. But with 2GB RAM in my case, and today's machines in
> general this isn't really a problem, so this is probably not a strong
> argument. Still, I think it's very nice to only have stuff you
> actually need instead of stuff the dependencies need.


No matter how much RAM you have, decreased usage is always a good thing.
If you keep your machine running, all the RAM will eventually be used for
disk caching. 70 MB less used then is the equivalent of adding a 70 MB
cache to your hard drives.
Unlike the typical Windows box, which will run slower and slower with time
and eventually requires a reboot, a Unix/Linux box will run better with a
long uptime, as it eventually will swap out pages that are loaded but never
used, and reclaim that RAM as disk cache instead.

> Now I'm not bashing openSUSE here! It's a very nice distro (the best
> binary distro for Desktops IMHO; I run away screaming when seeing
> Ubuntu). But I start to like Gentoo a lot and I use it more and more
> often.


There are other reasons to bash them, like their sleeping with Microsoft, or
not supporting SElinux. :-) I used to be a SuSE supporter myself, but
after they were bought by Novell, they have, IMhO, gone downhill. OpenSuSE
isn't much better, as it is limited by what the commercial parent distro
does.

> Not much point in running Gentoo at all in this case :P But still, it
> makes a *bit* of sense due to "emerge"; that's a hell of a tool to
> have.


"Hell" seems to be the right word, yes. It sucks. But it sucks far less
than many other installation tools. (Being a sysadmin, it's all about
picking the lesser evils.)

Regards,
--
*Art

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-09-2008, 04:49 AM
Nikos Chantziaras
 
Posts: n/a
Default Re: Done - KDE desktop running with GCC 4.3.0

Arthur Hagen wrote:
> [...]
> What seems to make the most difference for KDE speed is to install
> prelink, and then prelink all libraries and binaries on the system, and
> then set the flag that tells KDE that the system is prelinked. This is
> especially true on systems with relatively slow CPUs.


Does this have any ill effects with emerge? RPM-based distros are
hash-checking the executables, modifying them can have strange effects.
Is emerge immune to that?


>> Now I'm not bashing openSUSE here! It's a very nice distro (the best
>> binary distro for Desktops IMHO; I run away screaming when seeing
>> Ubuntu). But I start to like Gentoo a lot and I use it more and more
>> often.

>
> There are other reasons to bash them, like their sleeping with
> Microsoft, or not supporting SElinux. :-) I used to be a SuSE
> supporter myself, but after they were bought by Novell, they have, IMhO,
> gone downhill. OpenSuSE isn't much better, as it is limited by what the
> commercial parent distro does.


I'm not interested in political things, really. I couldn't care less
about Novell's business decisions; openSUSE is a stable and polished
distro, and that's it. Novell being Microsoft's b*tch is perhaps
important to Novell's commercial customers, not me. If they want to
become "evil", let them be; the software in openSUSE isn't.

With the other big commercially backed-up distro called Fedora, I was
downgraded to a Red Hat beta tester with many things breaking
constantly. This in not the case in all the years I use (open)SUSE. At
least it doesn't feel that way.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-09-2008, 04:49 AM
Arthur Hagen
 
Posts: n/a
Default Re: Done - KDE desktop running with GCC 4.3.0

Nikos Chantziaras <realnc@arcor.de> wrote:
> Arthur Hagen wrote:
>> [...]
>> What seems to make the most difference for KDE speed is to install
>> prelink, and then prelink all libraries and binaries on the system,
>> and then set the flag that tells KDE that the system is prelinked. This
>> is especially true on systems with relatively slow CPUs.

>
> Does this have any ill effects with emerge? RPM-based distros are
> hash-checking the executables, modifying them can have strange
> effects. Is emerge immune to that?


It has no adverse effects on emerge or gentoo tools. It can have an effect
on some tripwire type tools which erroneously make the assumption that
binaries should be unchanged. prelink is a somewhat simplified cousin of
IRIX' "rqs" (requickstart) system. Since IRIX by default requickstarts
after installation, most tripwire type tools had to start doing the right
thing, and checksum an unlinked temporary copy, not the
quickstarted/prelinked code. Else they would be rather useless on IRIX
systems (and later, linux systems with prelink).

One caveat: You need to have "pic" enabled as a USE flag, system wide. But
having position independent code is usually a good idea anyhow.

Regards,
--
*Art

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-09-2008, 05:05 PM
Nikos Chantziaras
 
Posts: n/a
Default Re: Done - KDE desktop running with GCC 4.3.0

Arthur Hagen wrote:
> Nikos Chantziaras <realnc@arcor.de> wrote:
>> [...] Does [prelink] have any ill effects with emerge? RPM-based
>> distros are hash-checking the executables, modifying them can have
>> strange effects. Is emerge immune to that?

>
> [...] One caveat: You need to have "pic" enabled as a USE flag,
> system wide. But having position independent code is usually a good
> idea anyhow.


This:

http://www.gentoo.org/doc/en/prelink-howto.xml

Says: "Also make sure that you do *not* have -fPIC set in your
CFLAGS/CXXFLAGS."

Other pages say that on AMD64 (that's what I have) -fPIC *must* be
enabled on shared libs.

I don't have "pic" in USE, and I also don't have "-fPIC" in CFLAGS.
Adding "pic" to USE followed by an `emerge -pDN world` only results in:

[ebuild R ] media-libs/mesa-6.5.2-r1 USE="pic*"
[ebuild R ] app-arch/gzip-1.3.12-r1 USE="pic*"

I hereby announce that my confusion is complete :P
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:59 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711