Author Topic: Why Is Debian Slow?  (Read 12270 times)

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Why Is Debian Slow?
« on: May 11, 2008, 10:09:37 pm »
First off, this is an honest question, NOT an attempt to start a flame war. I REALLY want to like Debian on my Zaurus.

What makes Debian so much slower than Angstrom? They both run off of the HDD and they both use EABI (?), so why the huge performance gap? Is it something I could fix?

Thanks.

PS: Is there a way to have a Debian-Angstrom dual-boot? I know at least for a while Debian was using the Angstrom kernel.

EDIT: Nevermind. I decided that my Angstrom build environment was foobared enough, as were the images, so Debian gets another chance. I'd still like to know why it's slow, though.
« Last Edit: May 11, 2008, 10:36:15 pm by Capn_Fish »
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

axeTail

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
Why Is Debian Slow?
« Reply #1 on: May 12, 2008, 07:17:46 am »
Quote from: Capn_Fish
First off, this is an honest question, NOT an attempt to start a flame war. I REALLY want to like Debian on my Zaurus.

What makes Debian so much slower than Angstrom? They both run off of the HDD and they both use EABI (?), so why the huge performance gap? Is it something I could fix?

Thanks.

PS: Is there a way to have a Debian-Angstrom dual-boot? I know at least for a while Debian was using the Angstrom kernel.

EDIT: Nevermind. I decided that my Angstrom build environment was foobared enough, as were the images, so Debian gets another chance. I'd still like to know why it's slow, though.

Hi Capn_Fish,

Are you running titchy? I've installed zdevils rootfs, with the yongguns kernel and it's fast.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Why Is Debian Slow?
« Reply #2 on: May 12, 2008, 12:41:34 pm »
Nope. I'm running the Yonggun kernel with the rootfs referred to above, and things take several seconds to load (even Rxvt).

EDIT: OK, maybe not several seconds, but a few.
« Last Edit: May 12, 2008, 12:43:52 pm by Capn_Fish »
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

mikeones

  • Newbie
  • *
  • Posts: 20
    • View Profile
Why Is Debian Slow?
« Reply #3 on: May 12, 2008, 12:50:31 pm »
Quote from: Capn_Fish
Nope. I'm running the Yonggun kernel with the rootfs referred to above, and things take several seconds to load (even Rxvt).

EDIT: OK, maybe not several seconds, but a few.
Speed is the same here.  I figured it was normal on the arm arch.
sl-3100

matthis

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://badaboum.bidibom.free.fr/mat/
Why Is Debian Slow?
« Reply #4 on: May 12, 2008, 07:59:49 pm »
I am running debian from the internal microdrive on my sl-c3200. I thought the delays were due to the fact that the microdrive is slow...

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Why Is Debian Slow?
« Reply #5 on: May 12, 2008, 10:57:12 pm »
Angstrom runs from the MD, and it is much faster.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

JohnX

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • http://
Why Is Debian Slow?
« Reply #6 on: May 13, 2008, 04:49:15 am »
A couple differences I can think of (off the top of my head) that might affect this:
-CPU specific gcc optimizations in Angstrom vs standard lowest common denominator Armv4t optimizations in Debian
-Angstrom often builds things without options that aren't typically used on a handheld, where Debian typically includes all options
-Lots of fine tuning to reduce memory usage, such as reducing the number of services run by default
-ash/busybox vs bash/coreutils

Overall, this is why for day-to-day stuff I boot angstrom from SD and for when I *need* something from Debian I boot it from a usb-stick.
Zaurus SL-C1000 - Linux 2.6.22 - Angstrom/Debian dual boot - Ambicom 802.11b - 1GB Corsair SD
Nokia N800 - 2GB PQI SD card
Zaurus SL-5500 - OZ 3.5.3/Hentges T2/Opie - 64MB Lexar SD card

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Why Is Debian Slow?
« Reply #7 on: May 13, 2008, 07:43:47 am »
Ahh, that would make sense.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Why Is Debian Slow?
« Reply #8 on: May 13, 2008, 09:16:20 pm »
How hard is it to get a build setup to rebuild the repos (or at least a more condensed version) with armv5te optimizations? I have a comp that I could dedicate (1GHz Via C7, 250GB SATA HDD, 1GB RAM) to the build, if it meant a faster Debian (Angstrom has me ticked off ATM ).
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

judecn

  • Newbie
  • *
  • Posts: 11
    • View Profile
Why Is Debian Slow?
« Reply #9 on: May 14, 2008, 02:27:22 am »
The SD card reader on the C-series is a serious bottleneck in my experience.  The internal flash is faster, giving Angstrom et. al. the appearance of being faster.  Also, with Debian, programs are bigger (as mentioned above, they are more featureful), so loading/unloading data from storage will naturally take longer anyway.  However, in my experience, EABI programs in Debian run about as fast as their Angstrom counterparts once loaded into RAM.

If you are using a GUI, by far the biggest bottleneck with responsiveness is anti-aliasing.  If you can turn it off (if your GUI even supports it), you will notice a HUGE speed boost.  In fact, with XFCE on my Debian zaurus, the difference in speed before and after is about an order of magnitude.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Why Is Debian Slow?
« Reply #10 on: May 14, 2008, 07:56:41 am »
Angstrom runs from the MD on Spitz.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

JohnX

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • http://
Why Is Debian Slow?
« Reply #11 on: May 14, 2008, 08:41:52 am »
Cross compiling will be harder than native compiling. Someone apparently did ubuntu builds specifically targetting different ARM processors ( mojo.handhelds.org ), but they used a build farm of ARM machines, IIRC and/or qemu-arm-system on x86 machines. qemu is an option for you, but you'll probably end up with slower compiles than on a real zaurus. That being said, profiling certain programs and/or libraries and recompiling them with fewer options or CPU optimizations might make a big difference in some cases.
Zaurus SL-C1000 - Linux 2.6.22 - Angstrom/Debian dual boot - Ambicom 802.11b - 1GB Corsair SD
Nokia N800 - 2GB PQI SD card
Zaurus SL-5500 - OZ 3.5.3/Hentges T2/Opie - 64MB Lexar SD card

domi007

  • Newbie
  • *
  • Posts: 21
    • View Profile
Why Is Debian Slow?
« Reply #12 on: June 19, 2008, 02:54:17 pm »
You can try crosstool.
It can download all the things you need for cross-compile. It has a specific script for intel-xscale processors.

DOMy

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Why Is Debian Slow?
« Reply #13 on: June 19, 2008, 06:14:37 pm »
I will have to look into that. Thanks much!
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

radiochickenwax

  • Full Member
  • ***
  • Posts: 158
    • View Profile
Why Is Debian Slow?
« Reply #14 on: June 21, 2008, 10:02:46 pm »
Quote from: domi007
You can try crosstool.
It can download all the things you need for cross-compile. It has a specific script for intel-xscale processors.

DOMy


Any pointers to a zaurus/cross-tool "how to"?
ZAURII:    sl-6000 : (temporarily) bricked pdaxrom b1   ||   sl-c3200 : yonggun/Debian-EABI
OTHERS:  htc-excalibur,  axim x5,  ipaq 4355, (still trying to find useable linux setups)
thinking about gumstix to replace/augment zaurus