Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Compile times... Console versus Konsole

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
retroman
Apprentice
Apprentice
User avatar
Posts: 207
Joined: Thu Nov 18, 2004 6:25 pm
Location: Stuttgart

Compile times... Console versus Konsole

  • Quote

Post by retroman » Fri Oct 27, 2006 6:37 pm

Hello all,

While the outcome should be obvious to all. I did a test today to see how drastic the time reduction can be if a particular package was emerged in a console rather than in a konsole in KDE. I never had a difinitive number to go by.

He was the test controls.

Package used: gaim Size : 5.979MB (downloaded before test into /usr/portage/distfiles)
Not emerged as an upgrade, on both tests there was no older gaim to remove, same version

TEST1-(usual computer setup): KDE, XORG, kbluetoothd, kweather, Karamba [1 applet running] , klipper, ksched.

System services:
Runlevel: default
local [ started ]
netmount [ started ]
bootsplash [ started ]
xdm [ started ]
hpoj [ started ]
sshd [ started ]
cupsd [ started ]
vmware [ stopped ]
autofs [ stopped ]
bluetooth [ started ]
alsasound [ started ]
xinetd [ started ]

TEST2-(minimal)

TTY console
System services:
Runlevel: default
local [ started ]
netmount [ started ]
bootsplash [ started ]
autofs [ stopped ]
xinetd [ started ]

Results with 'time emerge gaim'

TEST1: 6M 12.566S
TEST2: 4M 46.675S

That makes an emerge from the console in this test roughly 23% faster than in my normal operating mode.

I wonder what procentage of people do an emerge --update --deep world from kde vice the console??


Jordan
Top
Corona688
Veteran
Veteran
User avatar
Posts: 1204
Joined: Sat Jan 10, 2004 7:51 pm

  • Quote

Post by Corona688 » Fri Oct 27, 2006 7:03 pm

I do know that a plain xterm has a "-j" option to let it scroll more than one line at once, which speeds up rapidly scrolling text significantly for emerges. What this option would be for konsole, if any, I can't say. In the end a hardware console is just so much less work on everything; instead of each character taking up 800 bytes of video memory, each character takes up one byte of video memory...

Unless you're using a framebuffer console or something silly like that. Then it's even slower.
Petition for Better 64-bit ATI Drivers - Sign Here
http://www.petitiononline.com/atipet/petition.html
Top
justbrowsing
n00b
n00b
Posts: 5
Joined: Sat Oct 21, 2006 10:30 am

  • Quote

Post by justbrowsing » Sat Oct 28, 2006 8:28 am

Hi,
Corona688 wrote: instead of each character taking up 800 bytes of video memory, each character takes up one byte of video memory...
so you're saying the speed difference is because of scrolling text? If that's true, what about starting the emerge in a screen session and detach it while compilation, so there would be no visible scrolling and usage of video memory? You could always monitor the emerging process by checking the emerge.log.

At least on my old laptop I'm quite positive memory usage (only 256MB) is the main problem, and saving overhead for X and kde is the key for faster compilation times, besides using distcc.

But then again, can't hurt to test :-)
Top
Corona688
Veteran
Veteran
User avatar
Posts: 1204
Joined: Sat Jan 10, 2004 7:51 pm

  • Quote

Post by Corona688 » Thu Nov 02, 2006 6:47 pm

justbrowsing wrote:so you're saying the speed difference is because of scrolling text?
Bingo. I can't find it, but I think someone managed a speedup of around 5-10% with that xterm flag. Remember, while the xterm's printing, that's time by definition spent not compiling -- even if there's multiple jobs, they all have to wait for the output window to stop blocking. It's CC output -> pipe -> virtual TTY -> domain socket -> X11 -> video memory instead of CC output -> virtual TTY -> video memory. And there's a lot of printing going on.

And framebuffer consoles, well... They scroll so slow you can watch it.
If that's true, what about starting the emerge in a screen session and detach it while compilation, so there would be no visible scrolling and usage of video memory? You could always monitor the emerging process by checking the emerge.log.
I don't know much about screen, but that sounds sensible.
At least on my old laptop I'm quite positive memory usage (only 256MB) is the main problem, and saving overhead for X and kde is the key for faster compilation times, besides using distcc.
There's an easy way to test that -- run a compile in a physical console while X is running. Ctrl-alt-F1 brings you to a real text console(as do F2-F6, you get six seperate consoles), ctrl-alt-f7 brings you back to X.
Petition for Better 64-bit ATI Drivers - Sign Here
http://www.petitiononline.com/atipet/petition.html
Top
addeman
Apprentice
Apprentice
User avatar
Posts: 181
Joined: Thu Nov 04, 2004 4:12 pm
Location: Stockholm, Sweden
Contact:
Contact addeman
Website

  • Quote

Post by addeman » Fri Nov 17, 2006 8:26 pm

Results with 'time emerge gaim'

TEST1: 6M 12.566S
TEST2: 4M 46.675S

That makes an emerge from the console in this test roughly 23% faster than in my normal operating mode.
Have you considered that after having done the first compile some results remain in RAM? Maybe a restart between the tests would give a more accurate result.

I also belive that the tests should be done in screen or similar if you want to test the overhead of running X and the various other services.

To test the overhead of a just konsole the test should be run in konsole vs. konsole + detached screen.

Just my thoughts.

Best regards
addeman
Top
Bornio
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 129
Joined: Mon Dec 16, 2002 5:25 pm

  • Quote

Post by Bornio » Sun Nov 19, 2006 9:32 pm

i discovered the oppotise.
time car /usr/share/words on konsole @ full screen took about 3.8 seconds. in normal Console, it took about 17 seconds
more so, shrinking the size of Konsole to the smallest possible size resulted in times of 0.5 seconds
it seems like the speed in konsole (and hence xterm) is relevant to the size of the window needing to be rendered.

Also, i saw no speed ups/downs when changing fonts or encoding.
Top
Post Reply

6 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic