yashsingh1/xdaforums huggingface dataset:
[Galaxy S III Android Development] arter97:
Memory experiments.

This build has ART runtime tweaked to save memory.

- ART_USE_HSPACE_COMPACT was enabled; it's sort of like KSM.

- dlmalloc replaces rosalloc; it trades speed for better memory - let's face it, poor performance from Lollipop'ed i9300 is from insufficient memory.

Try the attached build if you want to chime in this experiment, and please let me know if the results(memory managements) are any better.

While I haven't tested, you might be able to dirty upgrade from the previous builds.

But back-up all data before continuing.

http://arter97.com/browse/S3/tmp
[Galaxy S III Android Development] justguesswho:
yes, sir^^

I'm try now
[Galaxy S III Android Development] Sunit6k:
Dirty flashed the experimental build on top of build 15. Everything working as of now. Used it for couple of hours. Will use it for a day and report back.
[Galaxy S III Android Development] mcqaissi:
I tried with clean flash

every things look like without any bugs till now

still testing but the rom too fast and smoothly
[Galaxy S III Android Development] Chimbat:
Installed and tried yesterday, it seems to work very well regarding memory management. I usually use clean master to clean

memory but this time after i installed the rom of Arter97, each time that i asked to clean the memory, i got answer that there was nothing to clean, that memory was already boosted :) Good job!

On another hand i would like to ask the devs [MENTION=5161352]JustArchi[/MENTION] & [MENTION=4898097]arter97[/MENTION] if you guys have a plan and/or a will to overcome the netflix

problem which doesn't want to play the ball with our Exynos and CM. I found a workaround here which is working :

http://xdaforums.com/showthread.php?t=2101525

The dev ( [MENTION=591147]Entropy512[/MENTION] ) of this xposed module explain the problem like that :

But if it was possible to include a patch or hack in your roms, it would be great because using xposed give me some problems.

Thanks for all guys!
[Galaxy S III Android Development] SeptentrioGR:
Don't use clean master is horrible and is bad for your phone. Use greenify instead :)
[Galaxy S III Android Development] Chimbat:
Thanks for your advise.
[Galaxy S III Android Development] neo5468:
Can someone report on arter97's build, if ram management has improved?
[Galaxy S III Android Development] Chimbat:
Is your improvement related to the kernel or to the ROM? Thank you.
[Galaxy S III Android Development] arminbih:
I am trying it now with full wipe together with internal storage so far so good will see how it goes during heavy multitasking thx :)
[Galaxy S III Android Development] odyss199:
If I install xposed will I loose the memory tweaks, since the framework replaces stock libart lib??
[Galaxy S III Android Development] ng1998:
Tried it and I must say memory has improved quite abit I really don't know what magic you have put into it thanks [MENTION=4898097]arter97[/MENTION] . But I can't say much though I dirty flash from archidoid experimental with boeffla kernel
[Galaxy S III Android Development] arminbih:
As far as I can tell it is quite good few lags here and there when going from app to app, but battery life is not that great 10% every 20 min sot, normal use no heavy multitasking. All in all it is quite good.
[Galaxy S III Android Development] neo5468:
That is 3 hours of screen on time when you are on 10%. Isn't that good? Im happy when I get 3 hours, but it's true that my battery is 3 years old.
[Galaxy S III Android Development] arminbih:
I get 4 but after some more use i think it can make it to 4
[Galaxy S III Android Development] neo5468:
How old is ur battery, and is it stock 2100 mAh?
[Galaxy S III Android Development] lephoenix73:
Just flashed Arter97 ROM (beta15 previously). Smooth and faster. Good works, it recall me CM11 speed ;)
[Galaxy S III Android Development] neo5468:
I dirty flashed build 15 first, because I was still on 14, then I dirty flashed Arter97's rom. Difference in RAM management is huge. I can keep open music player and 3 games in the background. Also, PowerAmp does not get force closed anymore, when im browsing heavy page in Chrome. This is insane. Why are you the only one who did this? How did you figure it out? You single handly fixed the biggest issue that s3 ever had; 1gb bottleneck. I was considering buying new phone just because apps were getting closed too frequently, and 1 gb of ram didn't handle poweramp+chrome very well. Now I don't even need new phone anymore. This changes everything.
[Galaxy S III Android Development] flamelab:
[MENTION=4898097]arter97[/MENTION] BIG difference with your mem tweaks. Pretty nice.
[Galaxy S III Android Development] disthomuc:
memtweak

This memtweak is amazing...my phone is faster than ever before.it is smooth and stable...I will report on the battery drain...
[Galaxy S III Android Development] zapty:
ok, Archi has integrated the new memory tweaks judging by the recent github changes mentioning the tweak..

so look forward for a new tasty smooth and awesome build 17
[Galaxy S III Android Development] arter97:
He haven't. dlmalloc is the main show for this memory tweaks.
[Galaxy S III Android Development] arminbih:
All is good room is fast battery has stabilised only thing to report is that i had 2 reboots one while going incognito in chrome and one when opening youtube from facebook wall. All in all fastest ever rom
[Galaxy S III Android Development] rpdroky:
Thanks arter97 for the tweaked version , it works flawless , and indeed the ram is improved :victory:

Cheers :highfive:
[Galaxy S III Android Development] netraraj:
+1: Fantastic performance but had 2 random reboots from yesterday...
[Galaxy S III Android Development] lephoenix73:
Question. Did artem hack will be included in future unofficial cm12.1 ?
[Galaxy S III Android Development] PiniponSelvagem:
I havê to say i love this ROM... Coming from 4.4.2 boeffla S5lite ROM and it frels so much faster nos! Antutu max score is 32000 after installed some apps. RAM management feels so much better to :)

Keep going the good work!
[Galaxy S III Android Development] EP21:
Your coming from camp bloatware and excpect anything less? I'm amazed. Try ad or arters memory optimized build, you'll think it's vtec with a turbo.
[Galaxy S III Android Development] sanguinesaintly:
I hope you mean Blekota ROM and not Boeffla !
[Galaxy S III Android Development] zalimtayyar:
Will those tweaks be erased if I flash boeffla kernel? If yes is there any way too boost speaker output?
[Galaxy S III Android Development] Sunit6k:
Used the memory tweaked build for 2 days. Had dirty flashed it on top of build 15. Had 2 soft reboots.
[Galaxy S III Android Development] neo5468:
I dirty flashed it on top of build 15 as well. No reboots.
[Galaxy S III Android Development] NickName98:
I think it's rom related :)
[Galaxy S III Android Development] PiniponSelvagem:
That ROM hás an option to not install bloatware and i unistalled other stuffs it had. Antutu score was 29000 and since it was touchwiz based it lagged when RAM was nearly full
[Galaxy S III Android Development] zapty:
Well ,Now he has !!
[Galaxy S III Android Development] marenp:
Tell us where is [MENTION=5161352]JustArchi[/MENTION] build with same memory tweak as [MENTION=4898097]arter97[/MENTION] one?
[Galaxy S III Android Development] arter97:
[MENTION=5161352]JustArchi[/MENTION] just merged my memory experiments.

Judging by positive feedback from some beta-testers, I expect this will give a huge boost on overall performance on your i9300 as a daily driver.

Next build from [MENTION=5161352]JustArchi[/MENTION] will have those added, so look forward to that, folks.

And off-topic, it's a semi-miracle that i9300 still is maintained by the most reputable developer on XDA.

Show a little bit of gratitude by dropping a cup of coffee to JustArchi :)
[Galaxy S III Android Development] toto2700:
Overall the phone seemed faster and more responsive but sometimes the phone kept freezing with your ROM. So I went back to KitKat.
[Galaxy S III Android Development] JustArchi:
You're the one who found out those tweaks, and users should thank you, not me, I just decided to implement those awesome findings into my unofficial CM :).

And maintaining i9300 is actually just "keeping it with updated sources", I do not dig inside it anymore.

Thanks!
[Galaxy S III Android Development] luke76bg:
So facebook and messenger don't kill this rom based on lollipop with this memory tweak ? In other roms lollipop based, they can make the phone to become incredible sluggish!
[Galaxy S III Android Development] shaarky:
Is it to early to ask if even Archidroid will get the treatment?
[Galaxy S III Android Development] EP21:
Nothing will fix social app created ram holes.
[Galaxy S III Android Development] arminbih:
Facebook and messenger are no longer lagging with this build 2 days in, only 2 soft reboots sound and mic are not that great, has anyone tried boeffla with this?
[Galaxy S III Android Development] neo5468:
I don't use facebook or messenger apps, so can't report on that, but I have 0 reboots. Also I have no problems with sound/mic. I do run boeffla though.
[Galaxy S III Android Development] Steinhund:
They kill almost every ROM on almost every phone. At least you always have a much better experience if you don't use them.

Personally I think they are designed to do so. :)
[Galaxy S III Android Development] arminbih:
Try it with this rom it is amazing no lags at all using fb, messenger, youtube, chrome together as in multitasking I am really astonished.
[Galaxy S III Android Development] Francesco0301:
Link of memory tweak? Thanks dude.

Inviato dal mio GT-I9300 utilizzando Tapatalk
[Galaxy S III Android Development] luke76bg:
9

Nope, on kit kat i have no problem at all, using facebook, messenger

And other heavy apps. Only on lollipop based roms. Obviously i use greenify, but on lollipop rom it was useless. With facebook and messenger lag and lag….
[Galaxy S III Android Development] NickName98:
Then the answer is clear... Flash kitkat! It has been discussed a million times.. They are bad apps, lollipop isn't the fastest thing ever created on i9300, don't expect them to run smooth and not drain your battery or ram.

Let's not talk about Facebook or Messenger in this thread again :)
[Galaxy S III Android Development] arter97:
I can already see brainless kangers taking these memory tweaks without thinking.

That trades performance for more available memory, please think.
[Galaxy S III Android Development] JustArchi:
Some people never learn, although those tweaks may be crucial for all phones running LP on <= 1 GB RAM.

It's not only S3 who's suffering. Google brought many memory leaks and drastically increased memory footprint compared to dalvik found in KK. If dlmalloc allows us to put less presure on ZRAM (by for example being able to turn it off by default, which I need to consider according to my own results with new tweaks), it'll still be faster and more effective.

However, I wouldn't put it on any phone with more than 1 GB of RAM, unless somebody has really good reasons. I still can't believe Nexus 9 with 2 GB can't handle it properly, even if it needs 2 zygotes for 32 and 64-bit processes.
[Galaxy S III Android Development] JustArchi:
A good article describing what's going on can be found here: http://blog.poweredbytoast.com/tag/dlmalloc

Android by default uses jemalloc, which is defined here, and ART in this case uses rosalloc.

We however have a choice to use dlmalloc instead, which will also make ART to use it instead of rosalloc.

Comparison of those two can be found in article linked above.

This should pretty much answer all of your questions what is going on here lately.

TL;DR + My points

dlmalloc:

- simple

- lower memory footprint

- faster than jemalloc in single-threaded operations

jemalloc:

- much more complex

- higher memory footprint

- uses nice tricks to keep performance at maximum

- much faster than dlmalloc in multi-threaded operations

- very close to dlmalloc in single-threaded ones

Both allocators are great and optimized. They just have different objectives. On low-memory phones such as my S3 and Xperia M dlmalloc may be much faster and better due to (mainly) lower memory footprint. We lose precious performance on a need to compress RAM (zRAM) in order to be able to use Lollipop, so by using dlmalloc we may actually be able to resign from having a need of zRAM, and actually increase performance, too. On higher-memory phones, where memory is not a physical limitation and CPU does not waste cycles on memory-saving tricks such as zRAM, dlmalloc may only cause slowndown, unless CPU has only 1 core, which is impossible in 2 GB-memory phones.

And extra note: dlmalloc is what has been used in KK with Dalvik.
[Galaxy S III Android Development] arter97:
I agree but I just saw someone taking that on 2GB 1080p, 32-bit device. *rolleye*
[Galaxy S III Android Development] arter97:
Specifying dlmalloc also forces ART to use it.

On L, ART uses rosalloc to drastically improve performance.

At.. a much higher memory cost.
[Galaxy S III Android Development] JustArchi:
Yep, corrected a bit my post to be more clear. The rest of the Android still uses jemalloc though, and ART is not the only system process, so it also benefits other binaries.
[Galaxy S III Android Development] EP21:
[MENTION=5161352]JustArchi[/MENTION] [MENTION=4898097]arter97[/MENTION]

So glibc (ptmalloc) would be like the middle choice between dlmalloc and jemalloc - better memory allocation and lower footprint than jemaloc and better thread performance than dlmalloc? Or am i wrong?
[Galaxy S III Android Development] SeptentrioGR:
Sounds interesting and if dlmaloc works better for our device sacrifice a little bit of performance not big deal. It would be interesting to try it out.
[Galaxy S III Android Development] disthomuc:
This dlmaloc related Rom is the fasted and smoothest Rom I have had for a Long time. Also the energy conumption is low.

I hope this is definitly finding its way to the next official Version of this inofficial CM12.1 for galaxy S3 :
[Galaxy S III Android Development] exwan:
Tried the experimental version. It is smooth from time to time. But had 2 soft reboot since then.

And this is not rom related i think. But i notice whatsapp became totally sluggish sometimes. Is there anyine else with the same issue?
[Galaxy S III Android Development] TheTurbanater1298:
I'd like thank [MENTION=5161352]JustArchi[/MENTION] and [MENTION=4604352]Moster2[/MENTION] for this excellent of lollipop and making it such a great port. Thanks for all the awesome versions of this ROM and making my phone so cool but, something near and dear passed away yesterday.

It severed a good three (almost 4) year and passed away midday yesterday.

A colleague from work dropped Sammy from a ledge while he was eating. I have mourned my loss and am ready to move on. I am currently looking for a Nexus 5 as my daily companion.

R.I.P My beloved Samsung Galaxy S3. 2012-2015
[Galaxy S III Android Development] huzzam:
about 24 hours on a full charge is a good usage for me... do you usually do much better?
[Galaxy S III Android Development] flopponator:
Mostly i get around 4-5 hrs of sot
[Galaxy S III Android Development] JustArchi:
Well, somehow you might be the right, the thing is, Android can be built only with jemalloc + rosalloc, or dlmalloc, there is no third option.
[Galaxy S III Android Development] Ariano Ângelo:
Noted an improvement in performace with Arter's build

Enviado do meu GT-I9300 através de Tapatalk
[Galaxy S III Android Development] VanXamar:
Just a question... Will I loose the memory tweaks of arter if I flash another kernel like archi kernel?

Thanks in advance.
[Galaxy S III Android Development] Mad_Lion:
I am questioning the same thing? And what if I flash Xposed? [MENTION=5161352]JustArchi[/MENTION]
[Galaxy S III Android Development] JustArchi:
XPosed is the single most unoptimized thing that exists for now. It's stated multiple times in AD flasher and many other places that it causes much worse ART performance due to two main things:

1. Binary is not optimized for device

2. Xposed itself has many hooks, which hook into methods, which causes slowdown.

First thing can be solved if developer decides to ship Xposed together with his ROM (like arter did in his temasek build, don't know if he's still doing that), second thing can't be solved anyhow.

If you want my advice - stay away from Xposed.

No, kernel only replaces two things: kernel itself, and kernel modules used by the ROM. dlmalloc is higher, C level malloc implementation, kernel is running on bare-bones level, nothing affects him apart from hardware. You won't lose any optimizations by flashing other kernel, apart from kernel's optimizations itself. That's why you can use AD with BK and still have blazing fast OS, even though AK is much faster.
[Galaxy S III Android Development] luke76bg:
Ok it trades performance for more memory, i understand, but the rom freeze here and there continously, it's impossible to use for daily use, kit kat roms don't have this problem even with every kind of apps installed. With greenify of course. I suppose that for marshmallow things will not be better. Next year goodbye s3 for me. I need a new phone. Lollipop is so smooth when it's properly working. The difference is staggering with kit kat :(
[Galaxy S III Android Development] PiniponSelvagem:
ATM i dont have any freeze here.. Try to greenify facebook and messenger, worst apps ever, they are like devil Chrome that i refuse to use cuz its badly coded, xD
[Galaxy S III Android Development] nkirk:
Not a single freeze here with arters build. 2 days already. BK however.

Edit: Had one reboot, could also be due to the slightly old ramdisk of BK also.
[Galaxy S III Android Development] luke76bg:
I can only greenify messenger because if i greenify facebook i lost notifications. On kit kat rom, archidroid 4.4.4., I don't have any problem at all with facebook and messenger. They arte heavy apps i know, but works very good on kit kat. The problem is on lollipop ???
[Galaxy S III Android Development] maik facturas:
you could try facebook lite. it's like facebook 10 years ago but worth the try if u'r talking about battery like and keep notifications. Anyway isn't it out of topic?
[Galaxy S III Android Development] JustArchi:
Build 16 Download: MEGA | XDA

Suggested GAPPS

Other GAPPS

Changelog:

Build 16

- Enabled kCollectorTypeHSpaceCompact for ART

- Changed malloc implementation to dlmalloc

# Both of above changes should greatly improve memory management and cut memory usage on low-memory devices

# Thanks to arter97 for finding them out and suggesting to use in i9300

- Disabled ZRAM by default

- Implemented dex-preoptimization for ART

- Updated sources

- Probably some other misc things I fixed/improved in the meantime

We work on this project for FREE. While not mandatory, donations encourage us to continue to do so, and we'd deeply appreciate them, if you feel generous.

Donate to JustArchi

Also consider donating to arter97 for awesome memory suggestions.

Have fun.
[Galaxy S III Android Development] jukyO:
Donation done:

7MV36657U98404428

And one for [MENTION=4898097]arter97[/MENTION]

0LR87962W3241611W

[emoji2]
[Galaxy S III Android Development] jeevanreddy58:
Zip file size is increased to 283MB from 236...
[Galaxy S III Android Development] KeTuRr74:
Size is not important :)
[Galaxy S III Android Development] JustArchi:
And first boot time decreased to 1 minute from 6.

Please continue.
[Galaxy S III Android Development] b0unty:
the rom seems to be odexed it's probably why it's larger and probably why it's faster
[Galaxy S III Android Development] V1rus200:
hello guys if i dirty flash build 16 over 14 will have problems because i have Slim_mini_gapps.BETA.5.1.build.0.x-20150620 and not the new suggests gapps by open gapps?
[Galaxy S III Android Development] Ariano Ângelo:
So what? Our device have 1,5 gb of system partition. That's really not a problem, niether for slow internets, it's a small diference.
[Galaxy S III Android Development] EP21:
Mind you not every one has left the stock partitipn size. Some of us had a repartition made, so that less space was wasted, just idling in the no go part.
[Galaxy S III Android Development] Ariano Ângelo:
Well, I don't want to have the risk of brick my phone, so I left the partition with 1,5 gb. 5 mbs, 1 GB it's not worth the risk when you have a SDCard slot and 16 gb of internal storage :)
[Galaxy S III Android Development] pappt:
Would someone test, whether the screen lag on incoming calls still present in build 16?
[Galaxy S III Android Development] pepo930:
I have only once concern - how's the camera?

Does it freeze/crash and show errors like "cannot connect to camera" like most ROMs?
[Galaxy S III Android Development] SeptentrioGR:
There are no such errors on camera anymore :) and this rom it's quite stable so far
[Galaxy S III Android Development] arminbih:
Testing now not on full wipe. Wiped cache, dalvik, system. So far it looks great no lags or freezing when chatting over messenger and using chrome, I believe it is even faster then previous build. Did notice a little drop in performance when scrolling or opening high content apps and pages.
[Galaxy S III Android Development] PiniponSelvagem:
Does anyone was able to install xposed in latest build (beta 16)?

I tryed dirty flash and clean flash and goes to boot loop... is it because of new ram management? cuz in beta 15 is working great.
[Galaxy S III Android Development] Flo0fy:
Well looks like I can't flash the update over BUILD 15. Recovery goes black screen for a second and then goes back to main menu. Using PhilZ Touch 6.0.4.5
[Galaxy S III Android Development] McMatias_2:
Use TWRP 2.8.5 , works great.
[Galaxy S III Android Development] peter_parker77:
From build 15, would I gain anything from a clean install or a dirty one would do just fine?
[Galaxy S III Android Development] kosmasgr:
Make a clean install dude. new build has many optimizations for performance and ram management
[Galaxy S III Android Development] RajashekarReddy.A:
As JustArchi said, there are quiet great changes that are made in build 16.

So it is recommended to clean flash. ( Otherwise, try dirty and checkout if it is fine)
[Galaxy S III Android Development] slonioo:
2 seconds lag still there
[Galaxy S III Android Development] slonioo:
MMS sending/receiving problems

Bug present since first builds of CM 5.x.x last year.

All is fine with KK. Tried it last weekend on latest nightly - MMS worked like a charm.

BUG DESCRIPTION: First MMS is being send. After this there is no possibilities to send or receive MMS (even after reboot).

Log file done on clean installation of build 16 with CatLog.

Tried 3 different polish GSM providers (T-Mobile, Orange and PlusGSM) - in all cases it look the same as described above.

The same problem appears on ArchiDroid 3.1.2 – tried also today.

Please someone look at the screenshots and log file and write, if it is this ROMs problem or an CM bug. If CM related, would appreciate to inform me, where I can send this data to CM team.
[Galaxy S III Android Development] PiniponSelvagem:
I could do dirty flahs and clean flash with no worries... But xposed isnt working, males bootloop só i went back do beta 15
[Galaxy S III Android Development] Rexus1:
Nice rom build 16 works great :)

Anyway to reduce screen burn in? i can see my statusbar and keyboard on white images.
[Galaxy S III Android Development] PiniponSelvagem:
A screen replacement... Its the only way to remove it. But too make is less noticeble, some say that an inversion of the burn in image (too burn the inverse) ll make it less noticable, but meh...
[Galaxy S III Android Development] galen2:
I flashed build 16 but i go back to build 15 too due to xposed bootloop.
[Galaxy S III Android Development] lephoenix73:
Flashed build 16 on artem custom build. No problems
[Galaxy S III Android Development] MastahF:
I flashed build 16 (dirty), but experience many more chrome crashes now than I did before. Maybe related to the zram?
[Galaxy S III Android Development] slonioo:
Make a clean flash - to many changes in build 16, to make a dirty one.