yashsingh1/xdaforums huggingface dataset:
[Touch CDMA Android Development] myshinynewtouch:
Yes, it is horribly slow and always hangs... the regular non-hero builds hold up OK, not great like just plain old winmo which does it perfectly... but OK.. lets say in 1 hr, for plain android ion - it crashes twice.. but on Hero builds, no go - just doesn't do it fine.. crashes a lot..

have you tried a bit of multi-tasking.. my main multi-tasking is have music running in background - and play games (simple card games, sudoku) or browse.. or browse android market.. if hero can do this - i am fulltime on hero - if not will wait for the new donut.. with true cdma support.. and like mssmison promised - a palm pre theme...
[Touch CDMA Android Development] zenulator:
New JACxROM1.3 Vogue Port Up

I've posted a new build. It's not Hero. It's a port of JACxROM1.3 from the dream forums. I'll post the hero build in a little while. It has a lot of parts from hero and a theme by manup. Anyway if you want to take a look here is the dream thread http://xdaforums.com/showthread.php?t=543621. I was bored so I slapped this together in about 20min. Don't use the camera app it will crash your system.
[Touch CDMA Android Development] enatefox:
Well, I've been waiting for Hero since you said you'd release it but JACxROM is really nice. All I want are Hero's widgets but I think I've found their equivalents. Given the speed and looks I might stick with it a bit.

I made wifi work for JACxROM 1.3 for Kaiser and Vogue. You drop my modded system.img from Zenulator (the only part I edited) and use the zImage, rootfs.img and initrd.gz from here, grabbing the latest build. I already have my calibration file and wifi works perfectly so far. Zenulator, where did you get the zImage, etc. from? Are they the same (with wifi hooks)?

Download here

If there's an issue with the build, I didn't make it I only made wifi work (not taking credit/responsibility).

Oh, I need to get su working on it (help?) and shutdown is not working-- haven't tried reboot. It will hang requiring soft reset
[Touch CDMA Android Development] jamezelle:
cant wait for the jacxhero build thanks:)

EDIT:booting now.........
[Touch CDMA Android Development] zenulator:
I didn't really test the xROM. I'll try it out later after I look at the JACxHERO for a bit. I know the xROM is missing modem.apk but you can always add that later on. Like I said I threw it together really quick.
[Touch CDMA Android Development] enatefox:
Well the one I posted has working wifi. Using the market for the first time with it as we speak.

Only issues are root (su) and poweroff is not working. I'm looking into it though. I don't have data so can't say. It is running like ION but looking like a better Hero IMO.

Thanks for the post-- I'll try Hero but I love how this one runs.
[Touch CDMA Android Development] zenulator:
Yea I went back to ion for a day. I missed the hero widgets but loved the speed. I'm looking into xROM and see whats going on with shutdown.
[Touch CDMA Android Development] jamezelle:
this new hero rom you ported is running pretty smoothly thanks:cool:
[Touch CDMA Android Development] mixxy:
it keeps rebooting on the main boot hero screen....hmm
[Touch CDMA Android Development] zenulator:
The zImage is dzo's latest. The initrd.gz and rootfs.img is vilords. It's in the top of the post. So I think all that is sorted out already since wifi and su is in the latest rootfs. I just included them for people who don't already have them. The xROM build is also on vilords android 1.5 site.
[Touch CDMA Android Development] ghostrid3r:
Same here... mine keeps looping between the "HERO" and "HTC" boot screen endlessly. :(
[Touch CDMA Android Development] zenulator:
Did you start clean with no data.img and all the files in the zip?
[Touch CDMA Android Development] grantemsley:
Is there somewhere a guide with pretty pictures, showing the differences between all these builds? I'm knew to android...so I don't really know what is what.
[Touch CDMA Android Development] femmyade2001:
Thanks, enatefox...i'll:D keep my eyes open!
[Touch CDMA Android Development] zenulator:
well the build i have cooking up is running pretty good so far. anybody have any programs or apps they want me to add?
[Touch CDMA Android Development] enatefox:
Bar Control and Sound Manager are the first things I install after a decent Terminal
[Touch CDMA Android Development] zenulator:
i have better terminal pro in there now. whats bar control?
[Touch CDMA Android Development] enatefox:
best.app.ever.

let's you put app launchers in the notification bar like a quick launch. Set the icons for apps, pull down the bar and click the app to launch it. I have Sound Manager, Terminal, Gmail, etc. right there without having to go to the home page then the app menu.

http://www.cyrket.com/package/com.schwimmer.android.barcontrol
[Touch CDMA Android Development] clockworx:
Just some more info on this, the behavior is kind of bizarre.

I play around with various build, and I know contacts work in Ion for sure, as well as the Rogers build since my girlfriend uses that one.

The # shows up correctly, but with no caller ID info, and if you go to your call history, it will show the # as if it doesn't recognize, but then after a second or so it will refresh to show the correct name associated with the #. Really weird.

I also tried to save an incoming # on Hero to a new contact, just to see if HTC was doing something weird and it could recall the ID on a "fresh" contact save. No luck with that either.
[Touch CDMA Android Development] zenulator:
ok i'll add those. any more?
[Touch CDMA Android Development] enatefox:
Android_File_Browser_2.0, AppInstaller, Bettercut are good ones. Gscript is a paid app like TaskKiller but they have free versions. I would just replace them with the full ones I have if you did add them though.
[Touch CDMA Android Development] zenulator:
ok well keep them comming.
[Touch CDMA Android Development] enatefox:
If you wanted to change the wallpapers a bit, I uploaded over 1,400 of my mine scaled to fit here: http://www.mediafire.com/?mezt4twth33. 110Mb zipped.

Night Time Lapse.jpg is my wallpaper and lock screen currently
[Touch CDMA Android Development] plemen:
Zen - do you already have a camera app in there? If not the fxcamera app you suggested at one point would be a good addition.
[Touch CDMA Android Development] femmyade2001:
...me too, i had done all that. seems they are working on it now...
[Touch CDMA Android Development] pmos69:
ymst.android.homeswitcher.apk
[Touch CDMA Android Development] pmos69:
Well, I was too lazy to change the size of the backing store partition, so it's still at 100MB :D, but on the other hand, the stats don't look bad:

(superhero with about 20 widgets on screen) with both swaps and original swappiness (60):

$free

total used free shared buffers

Mem: 98816 97312 1504 0 2800

Swap: 209648 10368 199280

Total: 308464 107680 200784

$

$ cat /proc/swaps

FilenameType Size Used Priority

/dev/block/ramzswap0 partition 104824 10340 -1

/dev/block/mmcblk0p4 partition 104824 0 -2

$

$ cat /proc/ramzswap

DiskSize: 104832 kB

MemLimit: 14820 kB

NumReads: 2754

NumWrites: 3458

FailedReads: 0

FailedWrites: 0

InvalidIO: 0

PagesDiscard: 0

ZeroPages: 309

GoodCompress: 100 %

NoCompress: 0 %

PagesStored: 2618

PagesUsed: 536

OrigDataSize: 10472 kB

ComprDataSize: 2116 kB

MemUsedTotal: 2144 kB

BDevNumReads: 465

BDevNumWrites: 520

-----

And a few minutes latter with just the backing store and swappiness=15 :

(wifi on)

$free

total used free shared buffers

Mem: 98816 97504 1312 0 488

Swap: 104824 16916 87908

Total: 203640 114420 89220

$

$ cat /proc/swaps

FilenameType Size Used Priority

/dev/block/ramzswap0 partition 104824 16916 -1

$

$ car /proc/ramzswap

car: not found

$ cat /proc/ramzswap

DiskSize: 104832 kB

MemLimit: 14820 kB

NumReads: 6404

NumWrites: 5501

FailedReads: 0

FailedWrites: 0

InvalidIO: 0

PagesDiscard: 0

ZeroPages: 380

GoodCompress: 100 %

NoCompress: 0 %

PagesStored: 4128

PagesUsed: 881

OrigDataSize: 16512 kB

ComprDataSize: 3475 kB

MemUsedTotal: 3524 kB

BDevNumReads: 1265

BDevNumWrites: 952
[Touch CDMA Android Development] pmos69:
Zenulator,

I was a bit surprised with the memory compression ratio achieved by compcache (about 1/5).

Would increasing the compcache memory a little bit more be counter-productive?
[Touch CDMA Android Development] enatefox:
pmos69, I don't know what kind of gains compcache is really responsible using a swap file anyways. The point is to hold a swap file in a compressed container resident in memory. If that swap exceeds RAM (as is almost always the case) then it's not really "holding" it in memory. I think the gain is really from compression but certainly not in terms of performance from having to de/compress each time it accesses it. I would think a lower compression level would be better performance. I certainly don't enable compression on my production SQL Server.
[Touch CDMA Android Development] natefish:
Yes, I remember someone saying (maybe the vilord himself?) that the lack of caller ID is related to the ril.
[Touch CDMA Android Development] tembares:
I have two questions:

I thought I have used the files to also have a 'fast' SuperHero (not the PureBlack):

Zenulator_SuperHero_Kaiser-wifi-su--081609.img

rootfs-compcache-swap60-20swappiness.zip zImage-18-08-09

SuperHero081609.zip

But Android is really slowwwwwwwwwww...................

Can someone give me the links to the files I need to use Android as it has to work?

My second question:

To make it also a lot faster, I red I have to partition my SDCard.

I work with Ubuntu and ran Gparted. The problem is that I cannot find the SDCard as device. I can only found my hard disk.

Someone have some tips?
[Touch CDMA Android Development] KERKEDAGAIN:
Yeh..i had the same problem. Apparently you have to add it as a device which should prompt you to install the USB drivers..once they're installed you have to restart (well, i'm using Sun VirtualBox so not sure if this applies for you) and it shows up thereafter.

Hope this helps..
[Touch CDMA Android Development] enatefox:
tembares, did you (sorry if this sounds condescending) select the right drive from the drop down at the top right of Gparted? You could always do what I do and fdisk the partition then mkfs the filesystem.

The first question though, what does "free" show in Android? You need to be using the swap file or it won't give you any performance. If it shows nothing is being swapped then don't expect it to do much. Think of it like a turbo that needs to spool up...
[Touch CDMA Android Development] tembares:
We are all human and with every feedback people give me I can grow. So, thank you for your answer.

The previous answer made me search on the internet (had to do it earlier :rolleyes:). This gave me the answer:

http://xdaforums.com/showthread.php?t=535914&page=3 => post 22 ===> gnome-format.

This one recognized my SD card.

So, when someone else have this issue, use gnome-format :p

But... do you know the answer on my first question:

What files do I have to use to make Android faster for me?

I am using a Kaiser.
[Touch CDMA Android Development] enatefox:
rootfs.img

zImage-14-08-09a because I don't like the DMA overheating issue till it gets fixed

system.img from 8-15 with wifi

I think the initrd.gz came from the PureBlack or SuperHero bundle. Should be the same as the latest from Vogue-Android though.

I dd a 256Mb data.img too because I have a lot of apps.

It lags a little until swap gets used at least 10Mb then it flies.
[Touch CDMA Android Development] mattcoz:
I installed that yesterday, then uninstalled it after I realized it didn't use the app icons. What I'd really like is something like this, plus a listing of currently running apps, all in the notification bar, with the real icons. That would just be glorious. :p
[Touch CDMA Android Development] enatefox:
The developer can't let you choose the icons for licensing reasons. It's easy to either live with the ones that are their, download his icon pack, add your own or send them to him so he can add them. He's currently asking for people to submit them.

Aside from that, it's a very useful app for functionality. I use Task Switcher that does what the name implies (real icons btw).
[Touch CDMA Android Development] JacenSolo2001:
Ok, with all the brains here, someone is bound to have an idea on how to resolve my issue.

I've tried the different rootfs files (with compache, etc..) here's the issue I've ran into.

If i boot up my phone, launch the android OS, and immediately run benchmark, I get good scores, cpu 120, etc..... after running for a short amount of time, (10 minutes or so), if I run benchmark again, the scores are awful, it seems like things aren't unloading or something, slowing my phone down to a crawl....

Any takers?

:confused:
[Touch CDMA Android Development] tembares:
Posted my favorite earlier before: Locale

With this application you can set your settings, like sound, ringtone, ..., based on different items, like time, position, ...

So, every day from 23:00h until 06:15, my volume=0, vibrate=off (of the phone ;)) and brightness=1.

Have a look at it!!!!
[Touch CDMA Android Development] ibanezbass:
Zen, can you see about perhaps using the Mms.apk and maybe the contact app from ION to fix the sms/mms problem in HERO?
[Touch CDMA Android Development] mssmison:
Won't fix it.
[Touch CDMA Android Development] pmos69:
May depend on the widgets you are using.
[Touch CDMA Android Development] JacenSolo2001:
thanks for a response - the only widgets i'm running currently are taskiller, battery (w/wifi, gps, & display controls) and then the normal ones (market, messaging, etc...)
[Touch CDMA Android Development] ibanezbass:
What makes u say that?
[Touch CDMA Android Development] pmos69:
The point is the compression, indeed, but this is very different from doing compression on an SQL server.

I was not talking about increasing the compression level, but eventually allocating more memory to compcache.

Even if accessing compcache is very slow, compared accessing physical memory directly, it's still way, way faster than accessing a swapfile or partition on a flash card.

When facing the fact the the phone has very tight memory constraints, the compcache compromise makes a lot of sense and is very effective.

Memory is the most scarce resource in our setup. So scarce it has a huge impact on performance, either because android has to do "housecleaning", killing least important processes to free memory (which will then have to be reloaded from the slow flash) or because there simply is not enough physical memory free and memory pages are swapped to a swapfile/partition on the slow flash.

These are the 2 reasons you see those small (or not) "freezes" on the phone when under load.

With the compcache compression levels I see on my phone (1 to 5) what we are talking about, in a simplistic way, is of a way to transform each MB of physical memory into 5MB of slower memory. If the "increased" memory, although slower, can avoid accessing a swapfile/partition or killing background processes, you will surely see performance gains.

The difficult part is: what's the best compromise for the compcache memory size in relation to the total physical memory.
[Touch CDMA Android Development] pmos69:
I was talking mainly about the more "hungry" screen widgets from HTC, such as the weather widget.
[Touch CDMA Android Development] mssmison:
Because I know it won't. The issue is that the hero build expects to be able to say things to the ril that our community built ril doesn't understand yet. It has nothing to do with the sms program.
[Touch CDMA Android Development] pmos69:
I'm using this combo (today):

base: http://vogue-android.googlecode.com/files/SuperHero081609.zip

zImage: http://vogue-android.googlecode.com/files/zImage-18-08-09

system: http://vogue-hero.googlecode.com/files/Zenulator_SuperHero_Kaiser-wifi-su--081609.img

rootfs: the top-secret one, although http://vogue-hero.googlecode.com/files/rootfs-compcache-swap-2009-08-16.zip also worked nicelly.

You might also try natalic's bundle:

http://xdaforums.com/showthread.php?p=4355398#post4355398

(It's basically Zenulator's PureBlack with all the rest in a nice blundle)
[Touch CDMA Android Development] JacenSolo2001:
Actually no, just the basic ones, no htc ones right now.

Phone's been up for 4 hours starting to crawl, so I've rebooted the whole thing and am back up to speed again. I thought that the cache would keep the speed up for me..?
[Touch CDMA Android Development] enatefox:
when it crawls again, type "free" in the terminal and see if swap is full
[Touch CDMA Android Development] JacenSolo2001:
Ok, I get 3 rows of numbers:

not sure how i'd know the swap file is full. Here they are:

mem 98852 97480 1372

swap 24708 3948 20760

total 123560 101428 22132
[Touch CDMA Android Development] enatefox:
How much are you using the phone, putting it to sleep, changing activities? You only have about 4Mb swapped of about 25Mb available. I on the other hand, have had my phone running for about 6 hours straight, I have at the moment:

Mem: [98816] [97068] [1748]

Swap: [86128] [42904] [43224]

Total: [184944] [139972] [44972]

So I'm swapping over 42Mb of data and have a little more than that available just from swap (60Mb total) and compache making up the difference. Needless to say, Rosie doesn't "reload" it just appears and then the clock slides around in it's glorious manner. Whether it was just sleeping or I hit back a bunch of times in a full screen app.
[Touch CDMA Android Development] jamezelle:
are you using the "top secret" rootfs with partitions OR compcache rootfs with swapping?
[Touch CDMA Android Development] ibanezbass:
mission I understand what ur saying but i'm a little thrown off by ION and HERO are 1.5 so why dont they work the same? for example if sms talks to ril in ion why not in hero?
[Touch CDMA Android Development] JacenSolo2001:
not using it much at all, actually, I put it to sleep for the most part. If I get mail i'll read it in the gmail app (not the big htc one). I don't have the big clock on it, the only other thing i've done after this reboot was check amazon. com on the browser.

I'm using system-2009-08-08 - because it seems to have everything working for me so far (gps, my location, sms working right) only thing that doesn't is weatherbug, which errors out as soon as it starts.

Any ideas on what i can change or do to get better life out of it?

Thanks again for helping !!
[Touch CDMA Android Development] enatefox:
jamezelle, second one. I got the rootfs with 60Mb swap + compcache. It is slow at first (about to try Zen's newest 2.0 in a minute though) but once you've got it to swap like by loading a heavy app or process, it will be ready to load again. Then, the home screen is quick, the lock screen doesn't flicker, etc.

ibanezbass, Hero and ION are not open source. HTC has (I believe) it's own RIL and at the least has it's own way of handling things. The rest of the build consists of the open source side of things. I've been looking around for ways to interface the two but I'm not sure how it's going to work out.
[Touch CDMA Android Development] jamezelle:
so i

must

load a resource demanding app/process in order to "switch on" swapping other wise it wont turn on?

thanks again

EDIT: zens newest 2.0 rootfs? where could i find that?
[Touch CDMA Android Development] enatefox:
That's one way to fill swap. Basically a shortcut to what would happen from normal use anyways. Force it to run out of it's effective memory (which is less than available) so it feels it should dump to swap to load the next thing. Then it's in swap so it's ready to be loaded. I may suck at explaining how it actually works but that's basically how you can deal with it. Also, he took 2.0 down for now.. missed it by that much
[Touch CDMA Android Development] mssmison:
Because htc took the open source cupcake and heavily modified it with closed source stuff, .
[Touch CDMA Android Development] KERKEDAGAIN:
with or without swappiness?
[Touch CDMA Android Development] enatefox:
Swappiness at 20. Default is 60 if you get the one without. I don't know what's better though.

su
echo 20 | tee /proc/sys/vm/swappiness

Will set it to 20 or whatever you want. I think it needs to swap out to take effect though.
[Touch CDMA Android Development] zenulator:
I'll put up the new test build tomorrow. I had it up for a minute and took it down after I realized I left out some things. I'll also put out an updated rootfs.img for mounting the backing store partition as well as using the optional Linux swap file.
[Touch CDMA Android Development] jamezelle:
Thanks sounds good :)
[Touch CDMA Android Development] pmos69:
Assuming you have compcache, it seems you are not using swap at all.

The problem is: the compcache is not enough and I would say when you load any program or access anything, processes have to be killed and stuff reloaded from flash.

Try to use something like http://vogue-hero.googlecode.com/files/rootfs-compcache-swap-2009-08-16.zip

You can see more details about swap utilization with cat /proc/swaps
[Touch CDMA Android Development] pmos69:
If you don't have a personal life, a kaiser build would also be nice :D
[Touch CDMA Android Development] pmos69:
Low values should be better (<=15).

The intention is to prevent real swapping unless it's really necessary.

High swappinness results in "preventive" swapping, were stuff gets swapped to flash even if there's no actual demand for more free memory.
[Touch CDMA Android Development] JacenSolo2001:
I'll give that one another try.

About swap utilization: is that a command I type?

And apart from taskiller is there another way to kill processes?

Thanks!
[Touch CDMA Android Development] pmos69:
yes it's a command.

There may be other task managers out there. look in market.

or use "kill -9 process_number" :)
[Touch CDMA Android Development] optimistik:
Does anyone know if internet usage monitors work?

I tried 3G Watchdog and Netcounter both report 0 usage no matter what.
[Touch CDMA Android Development] enatefox:
JacenSolo2001,

echo 20 | tee /proc/sys/vm/swappiness

pmos69, I'm not sure how true that is because we want swap to be used to some degree-- 50% used seems to be very good for me. Trying to prevent swapping would undermine the steps to create it. Correct me if I'm wrong but in the case of compcache, which should be seen as 'slow' swap, I would think it would be optimal to try to enforce true swap's usage and when it bottoms out, to resort to compcache. Without swap, we fall back to about 1-2Mb of real memory. Swappiness at 20 has never steered me wrong.

The album app shoots CPU usage up to over 90%. It is very intensive and can force a swap of existing memory which would normally be TouchFlo. Once I go back from setting wallpaper for example, swap is up (like a good 40/80Mb used) and it flies.
[Touch CDMA Android Development] pmos69:
nope, compcache is not "slow swap", at most it's "slow memory" or "extremelly fast swap" (compared to real swap to the flash).

Low swappiness means "don't page memory to swap

unless needed

" when there's a need for memory, the swap will be used.

One other thing: compcache is used first and then physical swap. This makes every sense since compcache:

Is much faster than using a swapfile

compresses memory, thus giving efectivelly a memory pool about 4-5x the physical memory you gave it
[Touch CDMA Android Development] pmos69:
swap parameters

Hi Zenulator,

Besides setting swappines to a low value, there's another setting that can be important for performance of a swap(file) in flash, which is page-cluster (has a default value of 3)

Setting it to 0 results in better performance.

These are the settings I use, personally.

The 2nd part of settings, also important, reduce the wear of the flash card. They are common also for linux netbooks that use SSDs.

echo "0">/proc/sys/vm/page-cluster
echo "1">/proc/sys/vm/swappiness

echo "5" > /proc/sys/vm/laptop_mode
echo "1500" > /proc/sys/vm/dirty_writeback_centisecs
echo "20" > /proc/sys/vm/dirty_ratio
echo "10" > /proc/sys/vm/dirty_background_ratio

Besides this, I guess finetuning the lowmemorykiller parameters is what's left.

(or buying a faster flash :( )

Best regards