Author Topic: Why Cacko Is So Slow?  (Read 5421 times)

samxiao

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
    • http://
Why Cacko Is So Slow?
« on: March 30, 2005, 02:21:15 am »
i had use OZ, pdaXrom
and i found Cacko the slowest of all (maybe i'm using C700 ??   )

is there any way to speed this up?

any idea? suggestion?
Zaurus C1000 (formerly SL5500 and C700)
Cacko developer ROM 1.23 beta + Debian Sarge + X/Qt
1GB Transcend 80x SD (ext2) / 512MB Lexar SD (ext2) / 256MB SanDisk CF(vfat)
Netgear MA701 WiFi CF
Ambicom GPS-CF
Pocketop IR keyboard (has positioning problem with C1000)
Brando LCD screen protector

Apple PowerBook 12" G4 Rev. C + Mac OS X 10.4.x (Tiger)

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Why Cacko Is So Slow?
« Reply #1 on: March 30, 2005, 08:08:38 am »
Try adding 64 Mb a swap file on your SD card - you'll see the difference, especialy if you're using Korganizer PIMs.

samxiao

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
    • http://
Why Cacko Is So Slow?
« Reply #2 on: March 30, 2005, 11:47:50 am »
Quote
Try adding 64 Mb a swap file on your SD card - you'll see the difference, especialy if you're using Korganizer PIMs.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=72820\"][{POST_SNAPBACK}][/a][/div]


any tutorial for doing that?

i tried before
because i forgot to do fsck after reboot
it almost kill my SD
Zaurus C1000 (formerly SL5500 and C700)
Cacko developer ROM 1.23 beta + Debian Sarge + X/Qt
1GB Transcend 80x SD (ext2) / 512MB Lexar SD (ext2) / 256MB SanDisk CF(vfat)
Netgear MA701 WiFi CF
Ambicom GPS-CF
Pocketop IR keyboard (has positioning problem with C1000)
Brando LCD screen protector

Apple PowerBook 12" G4 Rev. C + Mac OS X 10.4.x (Tiger)

Kodo

  • Newbie
  • *
  • Posts: 11
    • View Profile
Why Cacko Is So Slow?
« Reply #3 on: March 30, 2005, 01:24:35 pm »
Quote
Quote
Try adding 64 Mb a swap file on your SD card - you'll see the difference, especialy if you're using Korganizer PIMs.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=72820\"][{POST_SNAPBACK}][/a][/div]


any tutorial for doing that?

i tried before
because i forgot to do fsck after reboot
it almost kill my SD
[div align=\"right\"][a href=\"index.php?act=findpost&pid=72844\"][{POST_SNAPBACK}][/a][/div]

Adding a large swap partition would really be the finest solution for many problems. Yet, I've heard rumours stating that flash cards can stand only a limited number of write operations before they report themselves as gone. Would anybody report about doing a swap-partition on a SD card, using it for a longer time, happily without the forementioned feared problem?  

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
Why Cacko Is So Slow?
« Reply #4 on: March 30, 2005, 02:10:59 pm »
Quote
Adding a large swap partition would really be the finest solution for many problems. Yet, I've heard rumours stating that flash cards can stand only a limited number of write operations before they report themselves as gone. Would anybody report about doing a swap-partition on a SD card, using it for a longer time, happily without the forementioned feared problem? 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=72853\"][{POST_SNAPBACK}][/a][/div]

Cards these days are good for ~100,000 writes per cell, and they have wear-leveling that spreads the writes out over they entire card. Last time I looked into this, in a worst case scenario with constant swap file use on a full card (eg: the swap file fills the card and you're basically using all of it), it was calculated that it could last a couple of days before dying.

That's an artificially high case, postulated by calculating the maximum numbers of writes the kernel *could* make that I got off an embedded linux mailing list a couple of years ago.

I had a friend who's a hardware tinkerer who didn't believe me when I told him using CF for swap was a bad idea so he did it anyway. He killed his CF card in 2 weeks. It was an older card so I don't know how many writes it already had on it. This was on a full sized PC he was using for a media center, using a CF card as a hard drive.

I've never used a flash device for swap myself - there are apparently plenty of people who use it on a regular basis without issue. I'd be tempted to swap on a cheap smaller capacity "disposable" card rather than my expensive 1gb cards. (For example - I picked up a few 64mb CF cards for ~$15 each the other day.)

Just keep in mind that eventually you *will* kill your cards if you're writing to them, no matter what. Swapping just happens to be a particularily write intensive operation. I would never recommend swapping to internal flash on your Z. Personally I make an effort to move any files that get written to (KO/Pi databases, datafiles, etc) to an external flash card to try and keep the internal flash on my Z healthy. This is one of the reasons that I'm looking forward to the 3000 - with it's nice and replaceable 4gb hard drive.
« Last Edit: March 30, 2005, 02:13:36 pm by kahm »
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive

Kodo

  • Newbie
  • *
  • Posts: 11
    • View Profile
Why Cacko Is So Slow?
« Reply #5 on: March 30, 2005, 03:39:54 pm »
Thanks kahm, that was enlightening.  

Its easy to validate swap partitions as write intensive, considering that every running process may buffer its volatile data into it, refreshing it every now and then - when streaming encoded music, for example, this is happening in a rather high frequency, if part of it is decoded in your flash partition. So my guess is that the warning should be taken serious.  

On the other hand, if you are trying to do a memory intensive task, it could be the only way to activate a swap partition to get it done. Then one should not forget to erase the swap partition afterwards, since Cacko mounts any existing swaps at boot time and this could be forgotten easily.

A less critical way to poke some memory out of the Z is to stop the qeserver-threads when you actually don't need them (you will see which Qtopia programs run without them, once they are stopped). On my C700, I found this the only way to comfortably use zeditor and compile Java source with Kopi in QConsole at once. If you stop your running qeservers, however, you have to restart them with the zaurus user and qpe group as command line parameters, when you need them again:

Code: [Select]
$ qeserver zaurus qpe
If you need them for system administration tasks, like changing your tab configuration with the "Tab Setting" application, you should start a qeserver as root, but give it the same user and group parameters as shown above. Personally, I'm using a toggle script for this which can be triggered from a desktop icon.  
« Last Edit: March 30, 2005, 03:47:18 pm by Kodo »

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Why Cacko Is So Slow?
« Reply #6 on: March 30, 2005, 04:18:49 pm »
OK if CF burns out what about SD?
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....

samxiao

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
    • http://
Why Cacko Is So Slow?
« Reply #7 on: March 30, 2005, 04:58:12 pm »
Quote
OK if CF burns out what about SD?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=72873\"][{POST_SNAPBACK}][/a][/div]


but CF is not a good option for swap

because if you have a CF wifi (blame Sharp for not putting built-in wifi)
it will cause inconvience


so i will rather use SD

my Lexar has 5 yrs warranty

i guess it should be fine
Zaurus C1000 (formerly SL5500 and C700)
Cacko developer ROM 1.23 beta + Debian Sarge + X/Qt
1GB Transcend 80x SD (ext2) / 512MB Lexar SD (ext2) / 256MB SanDisk CF(vfat)
Netgear MA701 WiFi CF
Ambicom GPS-CF
Pocketop IR keyboard (has positioning problem with C1000)
Brando LCD screen protector

Apple PowerBook 12" G4 Rev. C + Mac OS X 10.4.x (Tiger)

samxiao

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
    • http://
Why Cacko Is So Slow?
« Reply #8 on: March 30, 2005, 04:59:45 pm »
Quote
Thanks kahm, that was enlightening.   

Its easy to validate swap partitions as write intensive, considering that every running process may buffer its volatile data into it, refreshing it every now and then - when streaming encoded music, for example, this is happening in a rather high frequency, if part of it is decoded in your flash partition. So my guess is that the warning should be taken serious.   

On the other hand, if you are trying to do a memory intensive task, it could be the only way to activate a swap partition to get it done. Then one should not forget to erase the swap partition afterwards, since Cacko mounts any existing swaps at boot time and this could be forgotten easily.

A less critical way to poke some memory out of the Z is to stop the qeserver-threads when you actually don't need them (you will see which Qtopia programs run without them, once they are stopped). On my C700, I found this the only way to comfortably use zeditor and compile Java source with Kopi in QConsole at once. If you stop your running qeservers, however, you have to restart them with the zaurus user and qpe group as command line parameters, when you need them again:

Code: [Select]
$ qeserver zaurus qpe
If you need them for system administration tasks, like changing your tab configuration with the "Tab Setting" application, you should start a qeserver as root, but give it the same user and group parameters as shown above. Personally, I'm using a toggle script for this which can be triggered from a desktop icon. 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=72868\"][{POST_SNAPBACK}][/a][/div]


it's troublesome to turn off/on all the time

any automation script to do so?
Zaurus C1000 (formerly SL5500 and C700)
Cacko developer ROM 1.23 beta + Debian Sarge + X/Qt
1GB Transcend 80x SD (ext2) / 512MB Lexar SD (ext2) / 256MB SanDisk CF(vfat)
Netgear MA701 WiFi CF
Ambicom GPS-CF
Pocketop IR keyboard (has positioning problem with C1000)
Brando LCD screen protector

Apple PowerBook 12" G4 Rev. C + Mac OS X 10.4.x (Tiger)

tg

  • Full Member
  • ***
  • Posts: 145
    • View Profile
    • http://
Why Cacko Is So Slow?
« Reply #9 on: March 30, 2005, 05:07:36 pm »
Quote
Quote
Thanks kahm, that was enlightening.   

Its easy to validate swap partitions as write intensive, considering that every running process may buffer its volatile data into it, refreshing it every now and then - when streaming encoded music, for example, this is happening in a rather high frequency, if part of it is decoded in your flash partition. So my guess is that the warning should be taken serious.   

On the other hand, if you are trying to do a memory intensive task, it could be the only way to activate a swap partition to get it done. Then one should not forget to erase the swap partition afterwards, since Cacko mounts any existing swaps at boot time and this could be forgotten easily.

A less critical way to poke some memory out of the Z is to stop the qeserver-threads when you actually don't need them (you will see which Qtopia programs run without them, once they are stopped). On my C700, I found this the only way to comfortably use zeditor and compile Java source with Kopi in QConsole at once. If you stop your running qeservers, however, you have to restart them with the zaurus user and qpe group as command line parameters, when you need them again:

Code: [Select]
$ qeserver zaurus qpe
If you need them for system administration tasks, like changing your tab configuration with the "Tab Setting" application, you should start a qeserver as root, but give it the same user and group parameters as shown above. Personally, I'm using a toggle script for this which can be triggered from a desktop icon. 
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]


it's troublesome to turn off/on all the time

any automation script to do so?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=72880\"][{POST_SNAPBACK}][/a][/div]


I have not tried it but maybe something like swapd is a better solution?

[a href=\"http://www.elsix.org/index.php?w=project&p=swapd]http://www.elsix.org/index.php?w=project&p=swapd[/url]

ev1l

  • Hero Member
  • *****
  • Posts: 608
    • View Profile
    • http://bbshuffle.blogspot.com/
Why Cacko Is So Slow?
« Reply #10 on: March 31, 2005, 08:02:19 pm »
Cacko has a swap managing tab in the memory applet. It's a lot less trouble than most other solutions. Do suspend the Zaurus before ejecting the card, though, or you'll hate yourself on the next swap read/write, which will happen a couple of milliseconds later. Hello hardlock, how *you* doin'?

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Why Cacko Is So Slow?
« Reply #11 on: April 01, 2005, 02:18:03 am »
Quote
I have not tried it but maybe something like swapd is a better solution?

http://www.elsix.org/index.php?w=project&p=swapd
[div align=\"right\"][a href=\"index.php?act=findpost&pid=72882\"][{POST_SNAPBACK}][/a][/div]

I tried it and it even works, but for some reason it slowed down Zaurus a lot. Probably due to constant free memory pooling. So I'm not using it now, instead I simply have a 128 Mb swap file on my SD card

tovarish

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
Why Cacko Is So Slow?
« Reply #12 on: April 01, 2005, 04:14:23 am »
so how long will an sd card (on an average, say Sandisk 1gb) last if a swap file is activated in it. I do notice a difference between using swap and no swap but i dont want the card to die too soon and at a bad time.


tovarish

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Why Cacko Is So Slow?
« Reply #13 on: April 01, 2005, 04:38:18 am »
Quote
so how long will an sd card (on an average, say Sandisk 1gb) last if a swap file is activated in it. I do notice a difference between using swap and no swap but i dont want the card to die too soon and at a bad time.


tovarish
[div align=\"right\"][a href=\"index.php?act=findpost&pid=73098\"][{POST_SNAPBACK}][/a][/div]

I'd probably bet on a few years. I may be wrong, but I personaly don't care how much it will last

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Why Cacko Is So Slow?
« Reply #14 on: April 01, 2005, 04:52:22 am »
Note also that normally it should not kill the card, but rather "blocks of of the card".

So that if you have a partition for swap, in theory this partition will become unusable faster than the rest of the card but the card should still be usable.
SLC-860 cacko / senao wifi