yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] melethron:
its not a setting in ramdisk or build.prob (grepped "install") and pm isn't running on boot (at init.d at least). Im not sure if "ro.phone_storage=1" will lead to prefering internal install.

I think i just add a loop after init.d calls filesystem ready;

test=`pm getInstallLocation`
while [ ! -n $test ]
do
sleep 3;
test=`pm getInstallLocation`
done
pm setInstallLocation 1

This checks every 3 second if there is a value set (and it wont be set until pm is running). So if pm starts it will set the value then. Its the best way i can think of for now.
[Desire Android Development] melethron:
I tested ownhere's kernel from the 3.7 rom:

E/dalvikvm( 718): Cannot get policy, owner thread id=820
E/dalvikvm( 718): Cannot get policy, waiter thread id=732
E/dalvikvm( 718): Cannot get policy, owner thread id=820
E/dalvikvm( 718): Cannot get policy, waiter thread id=732
E/dalvikvm( 718): Cannot get policy, owner thread id=732
E/dalvikvm( 718): Cannot get policy, waiter thread id=740
E/dalvikvm( 718): Bad cgroup data {▒ȫJh��}
E/dalvikvm( 718): Bad cgroup data {▒ȫJh��}
E/dalvikvm( 718): Bad cgroup data {��J�&(}
E/dalvikvm( 718): Bad cgroup data {��J�&(}
E/dalvikvm( 718): Bad cgroup data {▒ȫJh��}
E/dalvikvm( 718): Bad cgroup data {▒ȫJh��}

If he doesnt get the messages maybe its an issue of 1.72 ....

Dont wanna test his rom now.... but maybe its because he use an older base....
[Desire Android Development] coutts99:
Ah thanks for the confirmation :)
[Desire Android Development] melethron:
damn i want bfs ... i think managing interactivity through cgroups sucks on such an environement. I have no idea of the actual code of cfs/bfs but i aggree with con kolivas principle thoughts on scheduling.

I think i test ownheres rom and maybe downgrade some binaries if possible....
[Desire Android Development] coutts99:
Why not go AOSP :) I've a nice 2.6.37 kernel for AOSP, and I don't think those errors affect AOSP :)
[Desire Android Development] woti23:
jfs:

the db writes are 25% more than ext4, but the overal read/write performance on 10k/1M files is much lower at least on my sdcard

sio:

has no impact on my sdcard when jfs or ext4:

overall performance the same compared to deadline, also db writes

vr i/o scheduler, ext4:

db writes the same, overall performance +5% (3000->3150)
[Desire Android Development] melethron:
Because i like sense hd. Its only a bit slow on data2sd. If i get to be fast enough for my needs then i use it. If not its oxygen for me. (but i dont expect sense to be as fast as oxygen of course ;) )
[Desire Android Development] melethron:
Well i dont think that 10k/1M doesnt matter that much.

About sio did you compare the overhead of noop/sio/deadline? Also the advantage of sio over deadline should be slightly lower cpu usage because its closer to noop.

What settings did you use for vr. vr(0.2) ?
[Desire Android Development] Terepin:
So, where is v0.6?
[Desire Android Development] thay:
Sense roms have unique features that no other roms have at the moment (one example is autofocus in video mode) :) and give at the moment the best user experience for many users
[Desire Android Development] Alex-V:
It must be the something in the kernel...i dont have this with neos test kernel...and also not with coutts normal cfs kernels...with 1.72...it have to to with the new build
[Desire Android Development] woti23:
what do you mean with 0.2?

the values are 1 to unlimited (0 alias of unlimited)

tested with 10 (default) rev_penalty
[Desire Android Development] coutts99:
Is neos test kernel CFS?
[Desire Android Development] melethron:
As you can see im trying to sort some kernel things atm.

i referred to this: http://www.gelato.unsw.edu.au/IA64wiki/IOScheduling/VRscheduler

yes (with tty autogroup :rolleyes: )
[Desire Android Development] melethron:
neos test is cfs. Issue is the rom (not sure if framework or binaries). I tested ownheres kernel on this roms and get errors. I tested his rom and no errors.
[Desire Android Development] woti23:
me too ;-)

from your source: "... behaviour of our V(R) implementation differs somewhat from the published algorithm. The R parameter (which we have called rev_penalty) has been redefined to be an integer in the range [1,∞) which is multiplied with the sector distance of a head-reversing seek to get the effective distance. Thus, rev_penalty=1 means that forward and reverse seeks are equally expensive and the nearest of the two will be chosen (i.e. SSTF). As it increases, reversing the head direction becomes more expensive, until pure SCAN behaviour is reached. In practice, the range of rev_penalty is limited by the size of an int variable, so rev_penalty=0 can be used as an alias for SCAN."
[Desire Android Development] melethron:
missed that. could you try rev_penality=0 (aka V(1)). This would mach sio (no seek penelaty like noop + deadlines) with the difference that rw request are sheduled at the same time.
[Desire Android Development] woti23:
btw: raid, but interessting

http://www.disy.cse.unsw.edu.au/theses_public/08/aaronc.pdf
[Desire Android Development] Fightspit:
@woti23,

These tests use a rotational hard-disk drive not a flash memory. So you can't say that a best IO scheduler on a HDD will be the same on a flash memory.

Edit: Look at this paper, there are some benchs on a SSD (flash) with different IO scheduler:

http://dropzone.tamu.edu/techpubs/2009/TAMU-ECE-2009-02.pdf
[Desire Android Development] woti23:
i know, but they describe/compare almost all relevant i/o scheduler, and describe their philosophy.
[Desire Android Development] Alex-V:
Yes i think..mhh..how i can see this really..? But its no matter as i have the issue also with a bfs...but not with neo's test kernel

With kind regards...Alex
[Desire Android Development] melethron:
yes it is. To test: "adb shell" then "zcat /proc/conig.gz | grep BFS" or "CFS". You see "=y" or "is not set" then.
[Desire Android Development] melethron:
Interesting. VR performs good on raid 0 (some simulatieres there to ssd channels). Maybe single r/w queue + forward and backmerging is a good idea. I give VR a try.

Also thanks for that. Wonder if there is patch for that sched somewhere.
[Desire Android Development] coutts99:
What sched is it?
[Desire Android Development] Fightspit:
It seems the NAND flash is not sometimes correctly recognized by the kernel according to this link:

http://ubuntuforums.org/showthread.php?t=1601297

By running this command:

=> you get 0 for the SDCARD (that is normal)

But if you write:

=> you get 1 for the NAND and it is

not

normal

A quote from the OP:

More details in the link above.
[Desire Android Development] melethron:
echo " +++ Changing scheduler behaviour for mtd";
for i in 1 2 3 4 5;
do
echo deadline > /sys/block/mtdblock$i/queue/scheduler;
echo 0 > /sys/block/mtdblock$i/queue/rotational;
done;

noticed that some time ago ;)
[Desire Android Development] Fightspit:
Ah :D ⁪⁪⁪⁪⁪⁪⁪⁪⁪⁪⁪⁪⁪⁪⁪⁪⁪⁪⁯____________
[Desire Android Development] Terepin:
No new ROM today then.
[Desire Android Development] martino2k6:
Come on... Give the guy a break already, it's pretty clear that there is something great in the making here and that he wants to make a rom that will be as complete as possible and not just something half-done.
[Desire Android Development] thebazman:
im looking forward to this too, patience young skywalker

regards
[Desire Android Development] Terepin:
That is merely a statement of fact, nothing else.
[Desire Android Development] melethron:
Dont be to excited. Im rather new to cooking roms and the next version is my own port....
[Desire Android Development] lvnatic:
How is the ROM working these days? I flashed one of the very 1st versions when it came out and I had a lot of lags and slowdowns comparing to baadnwz's dhd port for example and rolled back to leedroid the next day, there is no Sense HD port atm that runs good on my device, at least not for me (im very exigent when it comes to speed, i just can't stand any rom that runs laggy, even if that delay is 3 mili seconds).

Note: my SD is class 2, will it work fine for me? I'm using ext2 cause its the fastest from all the partitions. I still didn't understand from the main post, does the ROM install on nand (phone memory) or on the ext partition?
[Desire Android Development] martino2k6:
Well, I'll see what you'll come up with :)

Currently toying with Oxygen while trying to figure out whether I would actually miss Sense or not...
[Desire Android Development] melethron:
@all: i give a s**t about trying to fix the BFS errors for now. I messed around with old binaries and new framework and i couldnt get the rom to boot :(

I use a CFS Kernel with cgroups set up right and use that for the rom. Still some minor stuff to do but i think i can update tomorrow.

First version was awful ... really awfull ... its much better by now (but still much rom for improvement). About ext2. Its unjournaled. I rather prefer a journaled filesystem an the sqlite hack from ownhere.

Moving back from oxygen to a "New sense" rom is like driving with full speed at a wall.....^^

I would use that amazing rom but i want sense. Gingerbread have some nice lagfixes from google and it is impossible to make a 2.2 as fast as that.
[Desire Android Development] paulove:
@melethron

Do you have an idea why my 4GB class2 original card works, but not my 16GB class 4 card?

Same partition size on reiserfs and swap.

paulove
[Desire Android Development] animehq:
A gingerbread sense rom for the desire hd probably come soon...

But for the kernel...
[Desire Android Development] melethron:
no idea ... sorry :(
[Desire Android Development] paulove:
You said that it looked like busybox crashes during boot...

Doe's the size matter?

Am I the only one with this problem?

paulove
[Desire Android Development] melethron:
was wrong about busybox. The system wouldn't continue to boot if "filesystem ready" isn't set. I really have no idea where the issue lies.

Maybe try to repartition the sd again and use the zips to align/format.
[Desire Android Development] paulove:
I have repartitionded my sd card.

Alex said it is reported to a problem with large and better sd card and data2sd.

Thanx for great help.

paulove
[Desire Android Development] melethron:
could you post the output of "adb shell cat /proc/mounts" and "adb shell df" after the script in logcat finished.
[Desire Android Development] paulove:
I started the adb logcat to wait for it to stop so I can run the command you

sugested.

But, then it booted :confused::confused::confused:

It still boots....

The log contains a lot of "Fixed by seo"

paulove
[Desire Android Development] melethron:
the init.d part of the script looks normal now. fixed by seo is also ok (some permission fixes)

btw i meant i need the output of the commands...
[Desire Android Development] paulove:
I was not enabled to run them as tho rom booted... :p

Is there a way to check it now? (got it)

paulove

When i booted after restoring apps I got a warning : zip header missmatch
[Desire Android Development] melethron:
Partition isn't mounted. Do the following in recovery (adb shell) and post the output.

fdisk -l /dev/block/mmcblk0

mount sd-ext

cat /proc/mounts
[Desire Android Development] Terepin:
Will you manage to release v0.6 today?
[Desire Android Development] melethron:
I'm not at home atm and have some other stuff to. But I think I manage to update tonight.

But the release will still be alpha. Wanted to make a beta but not everything is as good as I want it.
[Desire Android Development] Terepin:
You know, you are trying so hard to literally suck every bit of performance from the phone, that you have forgot one thing that will speed up things a bit as well. Do you know what I'm talking about... ? ;)
[Desire Android Development] melethron:
to bo honest ... no ...
[Desire Android Development] Terepin:
One letter: Z. :)
[Desire Android Development] martino2k6:
Yeah, Oxygen was nice... but I decided to roll back after I couldn't restore my text messages. Damn, only if Sense wasn't proprietary and we had the sources. That way we could have the best of both worlds.

Tried MIUI too, but those iOS-styled preferences just put me off so much...

EDIT: One more thing, I noticed that many HD roms come with an older version of Gallery 3D which doesn't have the fixes for displaying pictures in high-resolution. Would it be possible to include one with the fixes? (Personally I found CM builds to have the least bugs and best performance.)
[Desire Android Development] melethron:
If you refer to a Z rom:

1. I think its a myth that its faster. I wanted to do some "diff" between files of Z and HD (to confirm my opinion that those are only slight difference in rosie) but i didn't do it yet . But from testing i didn't notice any difference between Z and hd-rom (at least with same set up).

2. I dont like rotatiting rosie and i dont like the bigger fonts of Z....

Didn't include gallery yet. Apks and apk updates comes at last.

Apps i want to add:

- Astro filemanager

- Addfree

- Gallery

- Titanium backup

Apps i remove:

- Soundhound (its a TRIAL only ... hate to be force to use shareware....)

- AmazonMP3 (****ty boaltware)

Also i removed the skins that are available on HTC hub. If someone eagerly want them i can put them to /system and symlink them to internal data (where the system apps are stored).
[Desire Android Development] melethron:
Robocik just asked me something about cgroup errors. I wrote a large answer and i add that here because others might be interrested:
[Desire Android Development] paul92:
First, thanks for this work, I'm waiting for the update to switch from Oxygen.

Just a little question : are you going to use a Z or an HD rom ? (I hope the first)

Sorry for my English...
[Desire Android Development] melethron:
I use HD. I like the smaller fonts of HD and i dont like rotating home screen. Maybe i make Avaritia Z some day.
[Desire Android Development] thebazman:
+1

prefer the smaller fonts also
[Desire Android Development] mdaaddic:
Sense does not start

Hi, I just installed your rom. After Boot and asking for pin-code. Phone shows the green htc logo, but nothing happens then. Sense does not start. I have ext4 partition on my sdcard did a full wipe before flash.

ok I can setup my desire, it took long very long time for complete boot...
[Desire Android Development] melethron:
Tap on the screen and wait a bit. That sometimes works... there is much to do after first boot. I never got this issue myself so im not sure what causes this.

Nice quote btw ... i love goethe...

I felt the same when trying to find a proper word for Λόγος.
[Desire Android Development] Paradoxxx:
This rom is Super-Fast.

I Use EXT4 No swap and got 2000 At quadrant :)

Awesomeness

Gonna Try ReiserFS Ans swap soon.

Thx, and I Prefer HD Base too :)
[Desire Android Development] Paradoxxx:
Is there a way to get more sound power?

Because on Z Rom there is more sound with headsets, so is there a way to increase it?
[Desire Android Development] melethron:
I think its kernel dependent . Ill use coutts latest kernel in the next release ( with slightly other .config - still not sure if BFS or CFS ... compiling BFS atm and testing a bit more then). He increased sound on that, ... but it got lowered a bit in dec. Not sure what version robo uses on 0.6 but it was released 1 day before the sound level got lowered by coutts. I wont change the kernel for now but maybe i compile an optional kernel for that. But i wont make it default because i dont wanna damage my ears and the hardware.
[Desire Android Development] radiohitec:
Do you have ext4 or btrfs partition?
[Desire Android Development] Fightspit:
I made a 1024 MB btrfs partition with the gparted live CD.
[Desire Android Development] radiohitec:
Ok that's ok, please wait on the white logo than, and go out....

Edit: Have flash again here, after pin code, you have white screen, I wait a few minutes than it's ok and have the profider settings.

Mayby bether for you to check your btrsf partition, format it again, than in recovery wiped only data, cache and system, and flash again!
[Desire Android Development] Fightspit:
Ok, I am going to restart from 0 (reformat btrsf, wipe, flash, pin code and wait)
[Desire Android Development] radiohitec:
Please do not wipe ext!
[Desire Android Development] Fightspit:
Thanks for the advice :)
[Desire Android Development] radiohitec:
No thanks mate!

Wiped only data, cache and system!
[Desire Android Development] Fightspit:
Don't worry, I understood ;)

I just finished to wipe cache, data and system.

Now the ROM is installing...

Edit: Ok, my phone finished the boot animation, the pin code menu displayed, I entered my pin code, I get "Unlocking you sim card, setting up your phone..." and I finally get the HTC white screen. So i think it is time to wait a long time.
[Desire Android Development] melethron:
No it wont recognize it. Thats why install everything to internal first (data is almost full and system too). If you wipe sd-ext with clockwork it will format as ext4. AmonRa will give an error since it doesnt format but only "rm -r *" (delete all).

I have 2gb. This depends on the partition size. The "regular" internal is only used for dalvik cache. Everthing else is on the 2nd sd partition.

You ALSO need to remove the 40a2sd script. I'm not sure about 2.3b cause i tested it with 2.2f. But if ROM layout hasn't changed then removing those 2 files and pushing to init.d should be enough considering the layout. Apart from that you have to do "adb shell chmod 755 /system/etc/init.d/40data2btrfs". If it still doesnt work then i have to take a closer look at the layout of leedroid. But pls post in the btrfs thread then. This thread is intended for the ROM. BTW thanks for uploading. I added this to main post.

It's a bit slower than the other HD roms. For btrfs support i needed the internal /data to install. This means the script on the first boot has to copy almost 150mb to sd card. You can also do "adb logcat" while booting. I made a lot "echo" messages in the script so you can see in logcat what it does atm.

Please note that those scores are FAKE! It's only placebo from write cache. This Rom is actually slower than a non data2ext/btrfs ROM if you have a sdcard under class 6. Check the btrfs thread to see how to bench the i/o proberly. There's an app called "tap benchmark" (can be found on XDA) that shows the proper I/O.

Yes, thats the way to go. Dont format sd-ext if you use btrfs. I also wonder about those long times on white screen. I didn't have this issue. It was sluggy after first boot but the white screen was only like 2 sec.
[Desire Android Development] lvnatic:
I don't understand, what do you mean by "a second" partition. I already have 1gb ext4 partition on my SD card, do you mean it is possibile to have 2 different partitions on the SD or something like that? Or I'm good to go with my current partition?

Since I don't have any idea what that btrfs means I am only talking about the ext4 partition (after the "or" in requirments you're saying something about a brtfs partition, I hope I don't need anything of that kind unless I have a clear tutorial on how to do it).

Yeah....sry for the newbie questions :D but my sd card is 2nd generation and as I can see I will have many benefits from this ROM since all other HD ROMs are laggy for me.
[Desire Android Development] LoQo_:
I have a sd card class6
[Desire Android Development] radiohitec:
This ROM works also with your ext4 partition, no prob.

When you will btrfs please make from your ext4 partition a btrfs with Gparted
[Desire Android Development] Fightspit:
I have been in the setting provider but when I pressed the 1st button "Next", I get the HTC white screen a second time.

It was lagging in the setting provider so I think the phone doesn't finish to boot completely.

I am waiting again... ^^
[Desire Android Development] radiohitec:
Thanks mate it works on 2.3!!!!

When you will btrfs, don't forget after install to flash the coutch btrfs kernel.

Have a nice weekend!
[Desire Android Development] anko184:
I think i hit a bootloop.
[Desire Android Development] melethron:
Well you do have 2 partitions then. One is your normal FAT32 partition and the other one is ext4.

I also wrote 2nd because the ext4 Partition is behind the FAT32 Partition (for those that make them on a pc - if the would make the ext4/btrfs first and then fat it wouldn't work). Its the same as for app2sd+.

I think i change it to:

"A 2nd Partition in ext4 Format."

Should be more clear this way. Sorry it is indeed misleading the way i wrote it.
[Desire Android Development] LoQo_:
mirror

http://www.megaupload.com/?d=2Y711SHI
[Desire Android Development] Fightspit:
Ok, I finished completing the setting and now the home screen is loading :D

Edit: Since I flashed the ROM, it took 1.5 hour for me to be where I am :D
[Desire Android Development] mattiadj:
I have a problem.

installed on 4gb btrfs partition. When i try to install from market says me that i not have enough space!!!
[Desire Android Development] radiohitec:
Please make your btrfs partition smaller, the max is 2GB otherwise market wil not works!
[Desire Android Development] mdaaddic:
Thanks for this quick reply. I had big problems with the performance of the rom, it was not useable for me. It is because of ext4 sdcard partition, I think. Now I have no time to backup and repartition my sdcard. So if your rom evolves to version 1.0 I'll try it again.

Yes, Goethe for ever! I love him too...
[Desire Android Development] Paradoxxx:
Please, let me damage my ears :). Does it really damage the hardware?

Nah, really, I don't have enough sound :D
[Desire Android Development] Terepin:
1. Two facts: Desire Z is less powerful than Desire and it's aimed for professional sphere. What is your logic telling you? ;)

2. Fonts can be made smaller.
[Desire Android Development] melethron:
1. HTC is "profit-orientated" company. Making two different versions of New Sense costs more. What is your logic telling you? ;)

2. Fonts can be made larger also.
[Desire Android Development] Terepin:
1. That Sense 2.0 is optimized for Z then. :)

2. Then make patch for bigger fonts.
[Desire Android Development] melethron:
You want a zrom then use robos or cook your own. Again i dont like rotating rosie, ... i dont like bigger fonts,... and i tested z base and hd base and felt no difference. Maybe i make avaritia z some day, ...
[Desire Android Development] biliskner:
LOL pwned! (sorry couldn't help myself).

more improvements on data2ext/sd pls. all these cook x/y/z rom blah blah = fail. there's like 20 cookers out there, don't make this thread into yet another: "i want this xyz rom, give me now".

kthxbi:)
[Desire Android Development] melethron:
Well good ideas on roms will spread anyway to other roms. If robo likes my scripts he will include it.

About the update. Im really sleeping atm and i wont manage to finish the ROM tonight. But im almost done. Update tomorrow. Promise.
[Desire Android Development] biliskner:
I'm waiting patiently for the update, no worries :)

Had a weird error on Friday night - I checked the logs and for about 4 hours (9pm - 1am) phone was at 100% CPU usage. It was "syncing" (after those 4 hours, I started playing with it and it rebooted by itself, and kept rebooting non stop (it will go to Sense screen then sit there for 2-3 mins then reboot). So i had to manually shut down from power menu and then start up, then it was fine...

On the weekend, I found out that FB sync was stuck making the CPU run at 100% non stop. Something is wrong with FB sync and logcat shows not much info. I've turned FB sync off and it's fine now. Weird error that just started happening 5 days after everything was OK with the ROM (I FB synced it 1.5 weeks ago when I first flashed the ROM...) so yeh, it looks like it just started happening randomly.

look forward to update!
[Desire Android Development] Paradoxxx:
Could somebody give me a Sound Boosted Kernel?

:D
[Desire Android Development] coutts99:
Some quick tap benchmarks of the various IO schedulers -:

BFQ	2642.00
VR (Rev 1)	2876.60
VR (Rev 10) 2808.00
SIO 2475.40
NOOP 2461.20
Deadline 2824.40

I ran tap 5 times and those are the averages, this was on Oxygen RC6 with 2.6.37

I might change to VR and see how it goes.