yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] Sidebandit:
As always grateful for your development of this old phone ?

Nice additions to the kernel + app.

Testing GPU threshold 200 - CPU threshold 70

CPU min 200mhz - Powersaving profile.

Rechecked KSM at 300 pages no change in ram saved. KSM on stock a2n has a much bigger difference with fewer apps installed compared to cm11.

One time brightness increased on its own. Hasn't happened again.

?
[Galaxy Ace II Android Development] ace2nutzer:
Yeah, u guys can do fine tuning with the threshold .. since it's possible to adjust it in 1% steps :o

cpu load is from 1 - 100 which means from 1 - 100% .. that's the threshold ,.. it decides at which % load it should switch to the next higher freq step. Also there's down_threshold .. which decides at which % load it should switch to a lower freq step. But in this kernel it's dynamic_down_threshold because it gets adjusted automatically once u change the up_threshold in the app.

Also there's some limitation to ensure that things works properly ... .. that means, if u set to the lowest allowed threshold in the app ... (which is not 1) then dynamic_down_threshold will habe 5% ...

As u can see, it's programmed that u can't misconfigure the whole kernel. :D

Same is for GPU, but there's a special case that it's not 1 - 100% but it's 1 - 256 ... that's why u see there bigger values ... but it's the same ...

because 256 corresponds to exactly 100%. So if u set 128 it's actually 50% .. i think it's not difficult to understand... right ?

more pages = it'll optimize ram faster ... but it'll not save more ram ... in some cases it's convenient to optimize faster ... in order to avoid low-memory-killer to kill apps from ram.

Hmm probably u swiped with your finger over the status bar ... works even on lockscreen ... that's a CM11 feature and u can disable it if u feel it's annoying that sometimes u'll adjust brightess by accident. This happens also to me sometimes. :)
[Galaxy Ace II Android Development] Sidebandit:
My mistake, I've been looking at KSM wrong. I've been thinking more pages as "casting the net out over more apps, so more savings" instead of optimize faster. So basically for example multi-tasking / getting low on ram ksm can help apps being killed. CM11 seems to be more efficient and i don't have alot of installed apps. Stock samsung less efficient lots of bloats and background processes so ksm showing a better return?
[Galaxy Ace II Android Development] ace2nutzer:
Yes it seems so.
[Galaxy Ace II Android Development] Sidebandit:
Further info for those interested, 2 more device's, J1 mini prime rooted stock mm and a s3 mini Omni 5.1. On the J1 mini KSM results very similar to a2n stock. On the s3 mini similar results to a2n cm11. Suggestive that KSM comes into its own on stock roms. For me, if i find apps getting killed off too quick on cm11 I'll re enable ksm.

Art update, too unstable. Most of the problems seemed to around gapps. Unables for a while but will revert back to dalvik. Would be great to be able to config rom to pick and mix dalvick and art for particular apps. Isn't this like how Nougat and above roms work except its automatic?
[Galaxy Ace II Android Development] ace2nutzer:
Yeah ART-Runtime on KitKat never worked well. (and never will)

It's just for testing purposes, no support from CM at all.
[Galaxy Ace II Android Development] Sidebandit:
Anyway of moding art without using a heavier rom 5.1 and up?
[Galaxy Ace II Android Development] ace2nutzer:
There's nothing to mod except the art flags in build.prop. But itsn't the problem. The Problem is in source code, as art in kitkat was just experimental. Later in higher Android Version it was stable.

Just for fun u can try to replace libart.so and libart-compiler.so from /system/lib/ from another Android Version.

But since they aren't static libs it's unlikely that it could work at all.
[Galaxy Ace II Android Development] Sidebandit:
[MENTION=5840412]ace2nutzer[/MENTION] So in higher roms is it the extra features or the style layout of the rom that cause the "weight" size. I'm thinking cm11 compared to lollipop on this device. Maybe a Frankenstein rom, cm11 with some lollipop features like art / dose. Hybrid rom.

As for Art lib files i was thinking the same with lib/egl/ files from my s3 mini omni 5.1 or my J1 mini prime mm. Back in day, Samsung Galaxy y (2011) it was the thing to mod these files for a particular game. When i get more time i will try swapping out those lib art files just for the fun of it. ?
[Galaxy Ace II Android Development] Sidebandit:
Hi, issues with installing large applications - games 600mb and above. Plenty of storage internel 2.6gb free SD card storage 10gb. Games, War robots, Dark meadows. ???

This is from gapps they download try to install and after a while i get error msg failed to install. Smaller applications install no problems.
[Galaxy Ace II Android Development] ace2nutzer:
Try to swap storages in demo app.

If that will not solve the issue then try with sdcard_only kernel.
[Galaxy Ace II Android Development] Sidebandit:
Thats what I'm using sd_card only. i have no issues with storage space games above won't install.
[Galaxy Ace II Android Development] ace2nutzer:
pls post the output of "df" from terminal emulator
[Galaxy Ace II Android Development] Sidebandit:
COLUMNS=36;LINES=27;export COLUMNS LINES;

u0_a47@codina:/ $ su

COLUMNS=36;LINES=15;export COLUMNS LINES;

root@codina:/ # df

Filesystem Size Used Free Blksize

/ramdisk 15.7M 4.7M 11.0M 4096

/dev 315.8M 136.0K 315.6M 4096

/sys/fs/cgroup 315.8M 8.0K 315.8M 4096

/mnt/asec 315.8M 0.0K 315.8M 4096

/mnt/obb 315.8M 0.0K 315.8M 4096

/mnt/fuse 315.8M 0.0K 315.8M 4096

/dev/shm 315.8M 0.0K 315.8M 4096

/system 538.3M 436.3M 102.0M 4096

/modemfs 15.7M 4.3M 11.4M 4096

/efs 9.8M 4.6M 5.3M 4096

/data 3.0G 566.2M 2.4G 4096

/mnt/.lfs: Function not implemented

/mnt/media_rw/sdcard0 14.8G 5.4G 9.5G 32768

/mnt/secure/asec 14.8G 5.4G 9.5G 32768

/storage/sdcard0 14.8G 5.4G 9.5G 32768

/mnt/asec/com.epicgames.EpicCitadel-1 57.0M 55.2M 1.8M 4096

/mnt/asec/org.videolan.vlc-1 59.0M 57.7M 1.2M 4096

1|root@codina:/ #
[Galaxy Ace II Android Development] ace2nutzer:
Looks great!

Which dalvik heaps are u using ?

For testing try to use

dalvik.vm.heapgrowthlimit=512m
dalvik.vm.heapsize=512m

When updating build.prop, always do a reboot for the settings to take effect.

And report if that worked for u.
[Galaxy Ace II Android Development] :
Well if heap size is too big you will have problem with ram usage.
[Galaxy Ace II Android Development] ace2nutzer:
The idea was that maybe heap size is too small for some big apps, so that's why he can't install it.

That's why i wrote "for testing". or else: for debugging purposes.
[Galaxy Ace II Android Development] Sidebandit:
All good with installation both games ?, above buildprop values.

thanks
[Galaxy Ace II Android Development] ace2nutzer:
Great !

But now u should test how far u can lower the heap without to break those 2 Apps since 512 MB is an overkill for 630 MB RAM.

Try out 384, 256, 192 and 128.
[Galaxy Ace II Android Development] Sidebandit:
testing purposes - experimental only. I have several other devices capable of runing those games. Just wanted to see if i could get them to run on this device for the fun of it ?
[Galaxy Ace II Android Development] Sidebandit:
Ok, my findings 256/96 heap/growth seems to be the sweet spot. First game Unreal3 engine-Dark Meadow the pact no probs runing. The 2nd game War Robots installs but barely loads let alone runs. Apart from the obvious ancient hardware of the ace2 ram is an issue with this game - a laggy swap file needed ???
[Galaxy Ace II Android Development] ace2nutzer:
Good job! I'll try it.

there's actually only KSM support enabled. Swap + zRam is disabled since it's not very efficient.

If u think the lags are caused by the low ram .. and not by too low CPU/GPU performance, then u should try to tune the minfree Values which should deliver better results as zram. Best way is to download any minfree app from app store and tune with them.

if u feel it's very useful to tune the minfree Values (especially for high-end games) and there's no good app available for this, ot they are too much bloated with Ads, then let me know and maybe i'll add minfree control in future a2n kernel control updates.

But be careful, if u set too low or too high values your phone will be very unstable or even it'll freeze.

So before u change the values, (no reboot needed) please search on the web about android minfree values what they mean and how to tune them meaningful. The Default Values u'll see are just the Stock Values already calculated and optimized for low-ram devices from CM.

Anyway, they are optimized for multitasking, not for games. So if u tune for games, so that a sinlge app can run with the full power of the ram, then it'll logically hurt multitasking.
[Galaxy Ace II Android Development] Sidebandit:
[MENTION=5840412]ace2nutzer[/MENTION] this only for test purposes, any serious game playing i use another device. That said it can come in handy to adjust the values on the fly either for larger games or for better multitasking. Sometimes on the ace i can have a 2 browsers open multi tab + social media app + vpn open uploading news stories. So switching low mem profile is useful.

Gaming higher end. In the case of war robots its a combination of ram, cpu/gpu with the ram being the more immediate problem. I still have scope to adjust the cpu/gpu and set the fsb/ddr oc. When tested i left gpu/fsb/ddr as default. I didn't consider adjusting these values as the lack ram - low memory killer was killing google play games which the game needs. If the memory needs of the game were met i would have adjusted gpu/fsb further.

-----

What i will do latert is retry on my s3 mini which is novathor/mali mp400 which is simillar hardware/memory/performance but have the advantage of following settings baked into the rom and can be altered on the fly and returned to default without breaking anything ksm, pages 0/1000, sleep between scans 0/5000ms. Zram disk size 0/2500mb, swappiness 0/100, low mem killer.

If i cant get to run properly on my s3 mini with those controls it aint gonna work on the ace2 cm11
[Galaxy Ace II Android Development] Sidebandit:
Success, war robots running on s3 mini + a2n stock.

a2n stock run into issues continued on stock thread.
[Galaxy Ace II Android Development] ace2nutzer:
lol ... u say the game lags but u even didn't overclock your phone :highfive:

if it lags u've to overclock everything: CPU/GPU to max stable and enabling FSB DDR OC + KSM with 300 pages.
[Galaxy Ace II Android Development] Sidebandit:
No, lag would be a understatement, its was so so bad I didn't consider OC'ing would bring any useful improvements. It was that bad. I was certain the main problem was a ram after checking ram usage on another device 450-500+.

Steps taken CM11 = slideshow.

s3 mini = slideshow.

s3 mini, set mem free min/max, changed cpu profile to performance, scheduler deadline, re-enabled zram, swappiness set to 100. = long load time but not nearly bad as the first time. Perfectly playable.

a2n/stock set mem free min/max, set cpu 1000mhz, GPU 600mhz, ksm 300. playable, but not smooth as S3 mini.

Attempted fbs/ddr overclock, rebooted = grey screen.

Test complete game will work on ace2 stock/cm11.
[Galaxy Ace II Android Development] ace2nutzer:
As for grey Screen: did u read what i've wrote on 4.1.2 Thread ?

So if i got u then u compared S3 mini with Ace 2 but using the same kernel config like CPU/GPU, KSM and minfree values but with the difference that on s3 mini u used zRam ? - If so, can u please test on s3 mini how it goes with zRam disabled ?? Then it's same config like Ace 2.
[Galaxy Ace II Android Development] Sidebandit:
OK. The reason i used the s³mini is it has similar hardware/performance as the ace2 and has alot of tools baked in as standardl mk,vm,ksm,io,gov,zram,mhz. Easy and quick to change settings on the fly. Zram maybe more crucial on the ace² 623mb ram vs s³mini 828mb. That said the s³mini is running a heavier os which uses up at least half of the 200mb advantage over the ace². I will be testing S3mini with zram disabled latter.

S3 mini does run without zram there's a minor hit in performance.

Ace 2 cm11 poor performance and thats with performance profile + fsb/ddr overclock + lmk. Tbh it ran better on a2n kernel/stock.
[Galaxy Ace II Android Development] ace2nutzer:
Yeah S3 Mini has slighlty better hardware .. i don't know which model u've ... there's a model with higher CPU and better/different GPU as the Ace2 ... so not the Mali 400, also 1024 MB vs 768MB RAM is not the same, it's logical that s3 mini runs better. 828MB RAM for userspace ? zRam is included in those 828MB .. or it's extra ?
[Galaxy Ace II Android Development] gepel:
Hello Ace2Nutzer all of you people, today i tried Viber on Ace2 but as i have seen only messages are working. When i gave a call i took an error message and the app was closed. Also i have a question about cpu undervolting , undervolting means and cpu speed degradation ?
[Galaxy Ace II Android Development] Sidebandit:
My model is GT-18190 NovaThor - Mali MP400 same as the Ace2 Yes it has 828mb user compared to 768mb, 620mb user but the Omni OS is heavier. High ram use for OS. The other model you mentioned is the 18200 and uses a mediatek cpu 1200mhz same as in the Galaxy tab 3. I clocked the Ace² to higher frequencies cpu/gpu, than the s3 mini. Zram - swap parition as you said are obsolete and inefficient but in extreme cases like the game I've been testing then i think a internel swap partition, internel, may benefit.

What surprised me was a2n/stock was better.
[Galaxy Ace II Android Development] ace2nutzer:
Hello gepel, maybe it's related to the dalvik heap size.

Try this values in build.prop:

dalvik.vm.heapgrowthlimit=96m
dalvik.vm.heapsize=256m

as suggestest by Sidebandit seems to work fine.

after that, wipe dalvik-cache.

If it still didn't solve the issue, try to provide logcat and dmesg while the error is happening. (make sure logcat isn't disabled in the kernel app)

UV will not make your phone slower, it'll only save some battery ... but can make the system unstable if it's too much.

hmm OK that's right, like u say it's only beneficial is such case for such extreme big apps .. otherwise it's painful to have it enabled.

Well, then il'll re-add zRam in Kernel and App, so u can enable when it's really needed.

Strange .. it's exactly the same Kernel ... but maybe it's due to the fact that KSM works more efficient in Stock ROM ?
[MENTION=5695278]ChronoMonochrome[/MENTION] any idea why KSM saves in stock 4.1.2 ROM up to 180 MB RAM while in CM11 it saves only around 20 MB ??
[Galaxy Ace II Android Development] ChronoMonochrome:
Hey there!

Well, I'm not certain about KSM, maybe due to stock ROM bloatware? It might be a memory leak on stock as well. You can probably check if the saved memory amount increases by the time.
[Galaxy Ace II Android Development] Sidebandit:
Is it possible ksm is optimised for stock/samsung apps - or simply many stock roms aren't as efficient, bloats?

-

I'm no dev i can only report what I've used. KSM for me works better on stock. Wasn't ksm originally conceived on linux for runing multiple virtual machines? Zram, a small overall improvement on stock/custom at a cost of cpu and if setup wrong size/compression often makes the device lag worst. Swap partition with swappiness adjustable i could control when it used. For me this was around 10-20. Under normal load the swap would be dormant. This was most beneficial when the app/game would run really badly or crash because of insufficient ram.

---------- Post added at 03:54 AM ---------- Previous post was at 03:52 AM ----------

I'm no dev i can only report what I've used. KSM for me works better on stock. Wasn't ksm originally conceived on linux for runing multiple virtual machines? Zram, a small overall improvement on stock/custom at a cost of cpu and if setup wrong size/compression often makes the device lag worst. Swap partition with swappiness adjustable i could control when it used. For me this was around 10-20. Under normal load the swap would be dormant. This was most beneficial when the app/game would run really badly or crash because of insufficient ram.
[Galaxy Ace II Android Development] Mohammad Jebreeni:
Greetings [MENTION=5840412]ace2nutzer[/MENTION] and [MENTION=5695278]ChronoMonochrome[/MENTION],

I know this may seem irrelevant, but I don't know any other way to contact you guys and I've seen that you've been active here the last few days.

I need the stock Gingerbread firmware of our beloved Ace 2 (GT-I8160) (from the area of Saudi Arabia, KSA, Jeddah (JED) if possible, if not any would do).

Thanks a lot in advance, and have a nice day / good night.

P.S: I used the search feature already and found many threads all with dead links, and tried Google ofc, so don't worry I tried that xD
[Galaxy Ace II Android Development] ace2nutzer:
Yup :) And on Android the multiple virtual (java) machines are the Apps. :highfive:

But it seems that on Android >= 4.4.4 it's heavily improved so that KSM don't need to do much here.

Kernel + App Update incoming ... with zRam Support enabled.

Anyway, i've faced that on 4.1.2 Stock (and probably on CM11 as well) there was still memory allocation failures from Mali-GPU Driver. This caused lags and freezes.

I've finally managed to fix it (hopefully) completely. - That means it's possible that zRam will be (again :D) redundant :o

Because i've reduced MALI_BLOCK_SIZE from 256 KB --> 4 KB .. this saves a lot of RAM !

Are u sure u want such old ROM ??

If u just want to do a full flash of all partitions .. (to fix issues or so) then try with the MB4 ... it should be a 3-parted ROM if i'm not wrong ...

Just download, unpack and see:

http://xda.mister-freeze.eu/XDA-files/ace2nutzer/GT-I8160/Stock_ROM/

then flash latest JB ROM NF2 ... and then u are ready for flashing a2n kernel for stock over the temp_cwm !

Or if u're really searching for the Stock GB ROM, then try here:

https://www.sammobile.com/samsung/galaxy-ace-2/firmware/GT-I8160/JED/download/I8160JPLK2/9941/
[Galaxy Ace II Android Development] Mohammad Jebreeni:
Thanks a lot for the quick reply mate :D

I couldn't download the stock rom from SamMobile because it needs a premium paid account (the free option has been made unavailable for some reason... :'( ).

I actually need the stock rom to try and see if the following works out: installing the stock rom then Magisk then formatting and wiping cache then gradually installing Lineage OS 15.1 (it is mentioned in various forums here and there that Magisk could need the stock boot image, I also tried flashing it using Magisk Manager and TWRP but that only changed the error message to another error message both irrelevant to everything -_- xD ).

Sorry for the digression. Please inform me of any other way to discuss with you.

Have a nice day / good night! ;)
[Galaxy Ace II Android Development] ace2nutzer:
### OFFTOPIC ###

Sorry, only here on XDA.

Well, then as i said ..

With ODIN:

MB4, then let it boot .. then

NF2, let it boot ...

boot to recovery

wipe data

download mode

flash with ODIN latest TWRP Kernel from ChronoMonochrome

Now u could flash any repartition scripts (zips) (maybe optional)

and then u're ready for flashing Lineage OS.

Magisk + Stock GB is NOT needed.

### OFFTOPIC ###
[Galaxy Ace II Android Development] Mohammad Jebreeni:
Would that make it possible to install Magisk then? My aim is that, not to install Lineage OS alone (I could do that already with no issues).
[Galaxy Ace II Android Development] ace2nutzer:
Probably not. Our Ramdisk is way different from the most other phones ... so as long the magisk developer will not add support for the sort of ramdisk we're using here, it'll never work.
[Galaxy Ace II Android Development] Mohammad Jebreeni:
Ok thanks a lot for putting an end to the misery and fail tries xD :) Sorry again for the offtopic discussion. Danke sehr und viel Spaß ;)
[Galaxy Ace II Android Development] Sidebandit:
[MENTION=5840412]ace2nutzer[/MENTION] great news about upcoming update and mem alloc fix ??? This device has come along since GB stock. Thanks to devs like you.

----

Ksm, I always retest after updates. At the present I use it on a2n stock and disabled on cm11. Zram, well if mem alloc makes it not needed then thats great?

Great job!
[Galaxy Ace II Android Development] ace2nutzer:
I can't say if now it's really redundant .. but i'm sure that it'll be less needed than before. But i'll keep it now for ever in the App.. i think it can't hurt.

So in a case that it's still needed, u can still easily enable.
[Galaxy Ace II Android Development] Sidebandit:
Typo in my last comment "great?" didn't mean to put in the question mark. It really is great if zram is not not needed. All of these swap,ksm,zram add cost to a ancient cpu. If given the choice i'd sooner lighten the rom and delete not needed apps which are constantly leaching resources in the background. Ram, from what i remember from read spec (a few years ago now) the ace 2 has ddr2 ram and the s3 mini has ddr3. Need confirmation on this.

Dalvik settings i used in previous post heap/growth 256/96 only for very large apps games. In fact I'm trying out a lower value 128/64.
[Galaxy Ace II Android Development] ace2nutzer:
Well we need a default dalvik heap Value that works for every situation... so a minimum value possible that works for biggest apps is a good Value. Otherwise we've malfunction.

As for swap and co.: i think nobody should use real swap to sdcard on Android .. that's quite painfull. So we use zRam if needed, because

1: it consumes some power while compressing/decompressing data in ram.

2: Android is designed to work without swap/zram at all.

That means: Android uses "overcommit_memory = 1" compared to a normal Linux OS ... and that's the point why Android RAM is always full and because of that, the swap system tries to swap pages to the zram device in ram. .. but once the ram is again full, it'll swap again ... resulting in a full swapp device even if u don't perform much of multitasking, which is painful for a battery device.

That's why KSM makes more sense, also it's patched by me to use very low cpu cycle ... u can check KSM CPU % usage on idle which is 400 MHz .. and u'll see even with pages to scan = 300 it's not higher than 3% cpu load !. That load is constantly ... but not while deep sleep of course.

While zRam CPU load is higher while compress/decompress data, but it's not permanent .. at least not in idle.

Anyway, that sounds maybe painfull, but it's still acceptable with the efficient LZ4 Compressor. :)

OK Guys, today i'll release the Update .. making your Phone working like a charm. :cowboy:
[Galaxy Ace II Android Development] Sidebandit:
[MENTION=5840412]ace2nutzer[/MENTION] Will the buildprop values need changing with the up coming kernel release?

What do you reckon?

PUBG Mobile Lite: Requirements

There are no such minimum requirements to play PUBG Mobile Lite. It can be played on pretty much any Android smartphone. However, we recommend that you play it on a smartphone running Android 4.3 Jelly Bean or higher with at least 1GB of RAM and 500MB of storage. The company states that the game will run on any device smoothly, even if the device has lower than 2GB of RAM.
[Galaxy Ace II Android Development] ace2nutzer:
Only on Stock maybe .. but i'm waiting for your final suggestion, then i can re-upload the CM11 with updated build.prop.

Actually i think 256/96 is OK.

But what about 192/96 or 128/64 ??

Can u please test with biggest apps ??

Let me know which smaller combi works for biggest apps.