yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] themadproducer:
Dorimanx 2.5 Typhoon 3.7.5 VERY INTERESTING test results.

With the above setup, with or without Zram enabled, launching a half dozen ram hungry games, I was able to practically use up ALL of my FREE ram. In other words, the OS is allowing me to use way more than it used too before it kills an app to free up ram. One possible draw back is that it may take too long to kill an app and regain memory for the NEW app I am trying to use. Up till now, I would always have 150-200mbs free even if I tried to use it all. The memory management has changed radically.

Further more, having Zram enabled gives me more RAM headroom. I don't fully understand it but it seems I simply am able to squeeze another 110mbs or so thanks to the compressed swap file something or other. :rolleyes: I did some app loading speed tests with Zram enabled and disabled...after fresh reboots and the times were not that far off from each other.

So just before I wrote this, my Zram was 99% used up and my regular ram had about 40mb free. 10min later, which is now, I am sitting at about 50% Zram free and 150mb regular ram free. So the OS is kicking in and freeing up ram...it's just coming in later rather than sooner. It's not only doing freeing ram ON DEMAND when it needs it...it is also deciding to reclaim ram at a period of idle or no serious activity.
[HD2 Android NAND Development] dorimanx:
Very good observation :)

Now if you want the full story here it is!:

This comes directly from kernel menu!

[*] Support for paging of anonymous memory (swap)

[*] Support for prefetching swapped memory

[*] Automatic process group scheduling

[*] Enable cleancache pseudo-RAM driver to cache clean pages

<M> Compressed in-memory swap device (zram) ( M = module in libs/modules)

[*] Page cache compression support

[ ] Android Low Memory Killer

============

Now what is it?

[*] Support for paging of anonymous memory (swap)

This allows to use SWAP in any form! disk / ram

[*] Support for prefetching swapped memory

This will check every 10 sec for idle, and if idle,

then it starts to release the SWAP and push the pages back to free RAM

So in deep sleep this process kick in and start his JOB :)

[*] Automatic process group scheduling

This allow system to decide to push resources to active process and take them from idle processes to speed up the active program.

[*] Enable cleancache pseudo-RAM driver to cache clean pages

This will clean unused cache that sit in RAM and do not do any thing!

So also, it's will release the RAM from junk in time scheduler!

<M> Compressed in-memory swap device (zram)

This is the ZRAM Module + stats

It's compress RAM x3 and allow to load more stuff in RAM!

[*] Page cache compression support

This allow to compress the RAM with LZO compression!

That considered fast and with good compression!

[ ] Android Low Memory Killer

This is disabling the KERNEL low mem killer

it's not needed!

every ROM has it's own low mem killer that react faster than the kernel one..

So it's was never been used.

And ROM works even better without it.

I am building kernel 2.6

with some video drivers fix and boost to I/O for sdcard
[HD2 Android NAND Development] dorimanx:
Hot?

No it's not normal...

this mean that you force it to work allot :)

with max OC, so the heating is OK in that condition.

if you have setcpu or any kind of cpu tweaker

set profile to drop the OC 3 steps back if temp reach 42.2C it's best to be safe.

then all will be cool.
[HD2 Android NAND Development] dorimanx:
the task killer works in all roms.

and still some times the ZRAM swap will grow to give you more RAM for very RAM hungry game...

and on daily use with no much staff in RAM the SWAP will stay empty or little used...

This is ok when you cant run more than 40 services in RAM.

The task killer hold this ground.

In my rom people run 50 + all the time!!! :)

then ZRAM active all the time, and help to reach better performance with SWAP!

because DISK swap is slower and sdcard i/o is lower due to SWAP read/writes!

so till user not crossing the 110MB ZRAM swap his disk swap is 0 :)
[HD2 Android NAND Development] dorimanx:
=====

1) can be a bad codding of app...

2)I am working on tweaking the video drivers, and this can help with that problem :)
[HD2 Android NAND Development] themadproducer:
That's some heavy Sh*+ Dorimanx...but I get it.

Once again...killer stuff. Great detailed explanation.

There's some neat stuff happening here.

Thanks
[HD2 Android NAND Development] Bologna:
your rom is one of the slowest of xda ...you can only get better by enabling zram ;) or by switching to a fast rom :p
[HD2 Android NAND Development] idrozd:
Hi! Install latest kernel (dorimanx 2.5) in Hyperdroid CM7 5.5.2.

If you change the dpi = 240 there are terrible brakes on the Main menu LaucherPro.

At dpi = 192, 217 - all OK.

That can be corrected so that when dpi=240 was not terrible lag.

Thank you.
[HD2 Android NAND Development] themadproducer:
Why that's a load of Balogna! (sorry dude, I couldn't resist!!!! :D:D)

But really...you must be kidding right? You could stir up a lot of arguments with that statement. It simply is not true. That is an overly generalized blanket statement. There are infinite variables. Not only that, but Zram is not really speeding up my phone. An app needs to be run a second time to notice any help from ram or Zram or swap. I see Zram being useful at times when many ram intensive apps all need repeated launching within concecutive time period. Soon as the OS rests, many apps that are not getting used get kicked out of memory. I could go on but what's the point.
[HD2 Android NAND Development] Bologna:
dalvik.vm.heapsize=72m?
[HD2 Android NAND Development] themadproducer:
Idrozd...when you say "terrible Brakes"....do you mean it's choppy or jittery....not fast and smooth? With Typhoon rom, I use an unorthodox resolution of 254dpi (big I know), and I cannot use Launcherpro 8.6 because it is choppy with my loaded homescreens....even with memory cache set to HIGH. But version 8.4.1 does not suffer this issue. I have tested a million times. So if you need a temporary workaround, try v8.4.1. You may lose a few minor new features but you can switch to test it without losing your custom setup. (or set the LP memory cache to HIGH if you haven't already...but this may cause launcher redraws. But V6 Supercharger script fixes that)
[HD2 Android NAND Development] Bologna:
...I wasn't kidding, tIphone user! :p :D

...in my opinion (installed 3 times typhoon rom) your base rom is simply too much slow...stop. About Zram...I agree with some parts of your answer but dorimanx roms users, are often heavy application users so zram act as needed for us.

In any case, when you want you can disable compcache from settings and use "only" this incredible kernel.

mine was a provocation to say that dorimanx 2.9.8 rom + dorimanx 2.5 kernel = best rom ever!
[HD2 Android NAND Development] D3LTA:
Running one day now, damm how smooth! You keep amazing me DorimanX!
[HD2 Android NAND Development] jcsy:
from Cyanogen settings which is max at 48M

or from build.prop which can be any number?

so which setting will take place, build.prop or Cyanogen?

i remember not to touch this though, as it broke something in some other ROM a while ago when i asked
[HD2 Android NAND Development] FileFixer:
2.5 work perfect on CM7. Thanks dorimanx.
[HD2 Android NAND Development] deano309:
2.5 Working great on HardDroid2 with zram + startup script :)

Thinking about swapping kernels on the next release!

Thanks :)
[HD2 Android NAND Development] lnndinky:
rolling back to 2.4 kernel , after getting frezee when playing music, loading heavy app like: playing video, play game.

can you making "zram + startup script" for miui rom, thank for watching ^^

i'm using tmous with: CLK 1.6.5 dev, CRM 5.0.26. Miui 1.11.18 with Dorimanx Kernel 2.4 kernel ^^ LOL (stable)
[HD2 Android NAND Development] themadproducer:
Dorimanx,

Just wanted to let you know...yesterday when I was loading as many games into memory to utilize as much ram and Zram as possible...at one point, one of the games was choppy for a long time and then the system got choppy. It simply felt like the ram management couldn't keep up at that point. Perhaps it was trying to liquidate some Zram and it could do it fast enough, or the timing was not optimal. I eventually recovered.

So far, without the heavy loading of apps, and just normal use, everything is smooth.
[HD2 Android NAND Development] iamcxa:
is there have anyone use vpn after flashed DM's newest kernel? i just want to check the issue about connect to vpn. I used panda pow and some other vpn service yesterday, but all of them are couldn't be connected, all of them just told me the vpn was disconnect.

that is sadly because my country and Google since earlier this year have some "interesting" mistake, so I can't buy all of paid app until now.
[HD2 Android NAND Development] opravar:
I am using pptp vpn and it works from 2.4 kernels prefekt for me. Which rom do you using?
[HD2 Android NAND Development] dalerka:
No, flashed it right now.

And so the Q is - hot to fix it?
[HD2 Android NAND Development] dorimanx:
well, please dont forget, we have phone :) not laptop, or quad core station.

and cpu is only 1Ghz one core, no Hyper threading, so running 3 or more heavy games, will show that game 4 is choppy...

so just use the phone normally , and play one heavy game.. then exist and play Another.. :)

then all cool, and working stable.

i cant boost the hardware more than i did, for now :)

when we all switch to dual core phones, there we will be able to run 5 games, with no problem..

till then this is the limit...

in my rom, i can run 9 games with 300MB swap! but i cant really play them without choppy frame rate..

i made that test only for stress testing, and loaded the games only to the first screen. not loaded the levels inside..

so total running services was 70!

i do that always to test my work, and some times it's crashing the phone...

so i go back to searching what more can be done..

and when holding, then i post my work..

Our cpu is too slow.. :)

also the sdcard I/O is only class 4 (the card reader) so all the class 6/8/10 sdcards are not utilized to full. :(

this is another bottle neck for our phones..

But thanks for your tests, it's good to have one more result.
[HD2 Android NAND Development] iamcxa:
I'm using my own ROM from my signature. But you offered

me a reasonable reason, I'll try to find the problem out, thank you.
[HD2 Android NAND Development] dorimanx:
is it working with 2.4 ? and VPN installed from menu?

if so then i need to check what been changed that can damage the VPN connection.
[HD2 Android NAND Development] Keresztapper:
Did you read this in the first post?

"Warning!!!

If you are using not CM7 ROM then replace my initrd.gz with one from your rom / older kernel.

look for it in ZIP, folder BOOT

For CLK you need to post initrd.gz from your ROM and i will merge it with kernel."
[HD2 Android NAND Development] fhasovic:
Here: http://dl.dropbox.com/u/25475388/initrd.gz
[HD2 Android NAND Development] Cheech1976:
I did just that with the build i am running (android 2.3.3 sense 2.1) and it wouldn´t boot.
[HD2 Android NAND Development] xanthrax:
it`s ok now ! calibration complete through battery calibration app and wiped battery stats through recovery . 2 min after standby i`ve got 7 ma drainage . i uninstalled also juice defender . my opinion is that all the time when the apps are restored via titanium backup , like i did it now ... , problems occured even though i did a clean rom flash so , i will never do that again , i`ll rather spend 2 hrs more to reinstall everything that i need than looking for an answer for my issues and , another think , meanwhile i`ll enjoy more beer ! :cool:
[HD2 Android NAND Development] mwakious:
no luck on my sense 2.3.5....stuck on the boot logo.....:o:o

changed 02_modules to 01modules then 02modules...nothing...i'll try an other way...DORIMAX do you have an idea?:confused:
[HD2 Android NAND Development] ak100:
Native USB Tethering + my fix in configs

It mean we can use stock USB Tethering in 2.3+ ROMs?
[HD2 Android NAND Development] Bologna:
under windows 7 works usb tethering, yes, no apk needed

under linux/mac use wired tether
[HD2 Android NAND Development] Petulinek:
On Typhoon cLK 3.7.3 notifications sounds and rings very low, ROM is slower
[HD2 Android NAND Development] Clom801:
Me too, it didn't boot :(
[HD2 Android NAND Development] kafer12:
thanks a lot!
[HD2 Android NAND Development] sbryan12144:
For the users having Sense problems, did you delete the initrd.gz in the zip before you flashed?
[HD2 Android NAND Development] johnnyham89:
All I did was choose the option o replace the current files. Did it work when you deleted it?
[HD2 Android NAND Development] icke:
Hmmm...gives me "No Service" and then bootloops. :confused: I'm on Typhoon 3.7.3-MAGLDR. Any hints?
[HD2 Android NAND Development] sbryan12144:
I haven't tried it, but I know his initd.gz is made for ASOP/CM7, not Sense. So that would be a problem. I always delete the initrd.gz out of kernel packages unless it's for the rom your using.
[HD2 Android NAND Development] icke:
Ok...will try it without initrd.gz.

BTW: Typhoon is CM7 rom.;)
[HD2 Android NAND Development] Cheech1976:
I copied the one from the build i am using, but did not delete it. Result was that it didn´t boot up.

Do you think leaving it out will do the trick?

Right now i´m using HierOS´ 1.8.1 and that doesn´t even have a /boot folder, also no zimage file.
[HD2 Android NAND Development] D3LTA:
You on clk isn't it
[HD2 Android NAND Development] zagzag99:
It seems there's a difference in the modules packed in the zip of 2way recording.

I've replaced the /system/lib/modules/ with the files from the normal zip and it's all seems to work now.
[HD2 Android NAND Development] Cheech1976:
No i´m on magldr, and just checked the file i downloaded, it is the version for magldr as well.
[HD2 Android NAND Development] Panda_Face:
So far I'm really liking this. First thing I've noticed is the "Time in State". I have a setCPU profile for when the screen is off, set to conservative, and I'm seeing 75% in the 128mhz area. This is great! My last kernel didn't do that, only 45% in 128mhz range.
[HD2 Android NAND Development] iamcxa:
Well, all things are on itself place. don't know on 2.4, I'm first time to use this. So I want to ask first if someone like me before say is a bug.
[HD2 Android NAND Development] DannyBiker:
[DELETED] A Rom post in the kernel thread. My mistake.
[HD2 Android NAND Development] themadproducer:
Dorimanx,

what an awesome reply dude. Your last few replies have given me/us lots of great insight. It's great to cross reference power user experience with Super Dev knowledge.
[HD2 Android NAND Development] Salvestro:
It's possible to enable USB OTG on this fabulous kernel? This feature will be your kernel simply PERFECT!

Inviato da HD2 from Italy
[HD2 Android NAND Development] Bologna:
I've an identical unresolved question for that in the forum...hd2 with windows mobile have had this feature...so theorically it's possible...
[HD2 Android NAND Development] dorimanx:
i will try,

option exist, but i never turned it on and compiled ok.

this may be the biggest problem.

if it fail to compile, if i cant resolve it with my knowlage, then no support, till i find working source.

i am working on kernel all the time,

news is,

i have upgraded kernel from 2.6.32.15 to 2.6.32.39!

and added stable bfs cpu scheduler version 363

its working great at my phone now.

i will test some more and debug and post it for all.

speed is greatly increased and graphic speed also improved.

so get ready for new age. :-)

Sent from my HD2
[HD2 Android NAND Development] djsolidsnake86:
very good news! :)
[HD2 Android NAND Development] jairrab:
Wow great news!
[HD2 Android NAND Development] themadproducer:
Current Widget High Drain Notification

Kinda spreading the word here...

Checkout latest Current Widget app will alert during High BATTERY Drain.

Absolutely a MUST HAVE tool for troubleshooting new roms/kernels... and FREE.

http://xdaforums.com/showpost.php?p=19700299&postcount=20344
[HD2 Android NAND Development] iamcxa:
Wow woo wow woo! Finally BFS!
[HD2 Android NAND Development] Realalist:
Great great great kernel but I cannot get two way recording to work.
[HD2 Android NAND Development] stanburn:
Hi Dorimanx!

Great updates to the kernel! My hd2/typhoon rom's running smooth but hardly any noticeable increase in power drain!

I was actually searching for a kernel or rom that enabled or added another nand partition or disk image to act as swap. So for your zswap is the closest. I'm apprehensive about using your rom with the sd based swap because it might shorten my sd's life.

Thanks and more power dorimanx!
[HD2 Android NAND Development] jcsy:
more and more and more? :) waiting patiently for 2.6 then :)
[HD2 Android NAND Development] themadproducer:
REVISED...my previous answer was incorrect. I was thinking a differnt kernel. The beauty of this kernel package v2.5, is that it is an all in one with choices during install. I would simply try reinstalling it making sure u choose the version that allows call record etc.
[HD2 Android NAND Development] gpietron:
You can select this option installed from the menu - working with no problem.
[HD2 Android NAND Development] wilderwind:
Excellent kernel!

HTC Leo EU, MIUI 1.11.25, MAGLDR 1.13, 1459MHz by SetCPU, zram patch installed. Everything works smooth and fast, no issues.
[HD2 Android NAND Development] aash05:
I'm using Hyperdroid 5.5.2; i was wondering once i flash this kernal what additional steps do i have to take for wifi calling to work
[HD2 Android NAND Development] Elmar1801:
Can't wait! When will you upload it?
[HD2 Android NAND Development] dorimanx:
still some bugs exist.

and i need some more time to debug, sorry for delay.

Sent from my HD2
[HD2 Android NAND Development] Elmar1801:
No problem. Thanks for the info.
[HD2 Android NAND Development] kazantip1288:
PLEASE! fix in new version your kernel - the phone showing that there are two cameras. thanks.
[HD2 Android NAND Development] Realalist:
I DID install the correct version and it does not work on miui dev v38.0
[HD2 Android NAND Development] ph03n!x:
@Dorimanx, with zram installed and compcache of 26% on CM7 nightlies released on 15th November (cLK), I am not able to test zram. If I enter zram_stats in terminal (after su), it gives me "Filename type size used priority", but does not show any values. After a delay, it gives ZRAM_STATS in the next line and comes back to the # prompt. What am I doing wrong?

EDIT: Got it to work after using the 131MB script. Wonder why it did not work on my ROM, it being a CM7 build too...

EDIT AGAIN: Works with the CM's compcache settings if I use Dorimanx's INITRD.GZ

Also, I read in sbryan's thread that he has included BFS v404 - not sure if it is stable or if there are any issues with su (no user feedback saying they have problems), thought I will let you know.

Any plans to move to 2.6.35? marc1706's kernel was fine when I tested, but has a problem booting in cLK without the USB connected. Can you fix upgrade to .35? :)

EDIT: Just saw this:

:)
[HD2 Android NAND Development] mwakious:
big fan!!

hi DORIMANX!!

i saw the great news for the new release....just in time that i'm beta testing...:D:D

one thing..my user have hotreboots and bth not working:o...did you look at this???
[HD2 Android NAND Development] djsolidsnake86:
on miui roms zswap works?
[HD2 Android NAND Development] Looki75:
Dorimanx! Don't forget us!

We are all waiting for your Kernel 2.6!

Hope you could solve the issues...!!! ;)
[HD2 Android NAND Development] jcsy:
I use an app called active apps, which can see the apps opened and running, like Samsung task manager integrated into their ROM

Previously, running about 5 apps, before low memory kill kicks in

Now I have 10 running and no complaints from the ROM, but really slow performance since alot of swap is happening... with memory as low at 18 MB.

I believe with all the swapping it taxes the CPU more causing more battery drain

Right?
[HD2 Android NAND Development] Panos5vRS:
Thanks again for your amazing work!

;-)
[HD2 Android NAND Development] Elmar1801:
This is kernel not rom thread
[HD2 Android NAND Development] Panos5vRS:
sooooo true! sorry
[HD2 Android NAND Development] themadproducer:
I would agree with you. (from an advanced user experience level but I don't know for sure) I still have Zram enabled but I am not sure I like it better if it slows things down and uses more CPU when using max ram is available. Dx and I were chatting about that or something similar a few pages back. One thing I have always noticed when NOT using any SWAP or Zram in Typhoon rom, is that even if games get kicked out of memory, on next launch, they still reload rather quickly using normal RAM...compared to Zram and/or SWAP speed.

I am doing a loose test as we speak to see if long term standby battery drain ma values are lower without ZRAM/Compcache enabled.

I don't want to go off topic, but IDEALLY, I would love to be able to lock some core apps into memory (eg Dialer, SMS, Calendar etc) at all times. You know, a few apps that don't use a lot of memory but would open instantly. The thread "Supercharger V6" attempts that but it is still not happening quite right except for the Launchers. (at least for me)
[HD2 Android NAND Development] essi_baba:
How To Activating SWAP Partition Without losting any data?

signor dorimanx

please learn me how to Setting Up and Activating SWAP with test it Partition Without losting any data step by steb

im use this method not different in ROM :confused:

How to test swap partition ? :)​

What is this script ? V6 SuperCharger

Need be used in rom?

note: My rom is Qaliza's Deisre HD ARA v1.2 clk and kernel hiros 1.8.5 :cool:
[HD2 Android NAND Development] TOPTIP:
Change kernels

Hi! I have a problem with data connection when i try to instal some roms (Hyperdroid CM7 and SuperOSR).

Somebody told me to change the kernel... but i don't know how!

I tried "search", but there is no tutorial for SD roms or roms installed with Portadroid, just for nand roms.

Can anyone teach me how to change the SD rom original kernel to Dorimanx kernel?

I also post a similar question in Portadroid thread, but no response until now.

Thanks in advance.
[HD2 Android NAND Development] jcsy:
i believe you dont need to use V6 Supercharger, and I wonder why this question is here...

anyways, swap is for people using KERNEL 2.5 and ZRAM script to enable

what are u using? magldr or clk ?

download the package, depending on your answer above on the first page

copy paste it into your SD card

reboot

boot into clock work recovery, go to update and install zip from sd card

choose the file , done

ON ANOTHER NOTE, PLEASE BACKUP FROM YOUR CLOCKWORK FIRST, which is found under Backup/Restore menu as well
[HD2 Android NAND Development] Howell:
Sorry jcsy but TOPTIP asked for a way to replace kernel in a SD Rom not a NAND Rom... So all you said does nor help him...

TOPTIP : I will try to find what you asked for as I get on a computer ;)

Sent from my HD2 running Dorimanx Rom
[HD2 Android NAND Development] Tak3r07:
Hey,

Im still experiencing 60 mA battery drain with different govenors (im on 2.5 1,5 ghz):
[HD2 Android NAND Development] Bologna:
Se max cpu to 1496
[HD2 Android NAND Development] TOPTIP:
No data connection

You got it, Howell!

Hope you can help me... :)

jcsy, thank you anyway!
[HD2 Android NAND Development] jcsy:
Sorry, I misread

I came from SD ROM before and I remember changing kernel usually just need to replace zImage and I think initrd manually

Then boot up.

I would do this from windows mobile 6.5 mounting the SC card as USB. Problem is now I forgotten how

I doubt nand kernels would work on SD builds though. I deleted all my SD kernels after I migrated to nand and never looked back so I can't provide u with other kernels to try

So I guess u are better off with kernels from SD builds and replacing zimage file should do the trick