yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Mini] alin.p:
Well, you might have seen me talking about minfree values a lot. Changing that has a lot of impact on your performance. If you have tried Emanon and was amazed by its speed, it was mostly because it had really big minfree values.

Here's a simple script to change those values at boot: View attachment zzminfree.txt

Delete the .txt extension an copy it in your init.d folder and set full permission(check everything). If you take a look at the script, you have 6 values there. If you want to give more priority to your foreground apps, just raise the 3rd, 4th, 5th and 6th value.

After that, I deleted bloatware apps(and those that I have an alternative for) from /system/app:

Apollo(I use Poweramp, no need to keep this)

BasicDreams(I don't use this feature at all)

Browser(I use Next Browser, believe me, it's awesome)

CMFileManager(I use Solid Explorer)

ChromeBookmarksSyncAdapter (If you delete Browser then you don't need this anymore)

HTMLViewer(Does anyone use this anyway?)

HoloSpiralWallpaper(I don't use Live Wallpapers, eats battery and RAM)

LatinIME(Careful, this is the keyboard. Delete it only if you already have installed another keyboard)

LiveWallpapers

NoiseField

PhotoTable

QuickSearchBox

Talk(If you don't use Google Talk)

Trebuchet(If you use another launcher,which I recommend because this is really RAM hungry, delete this)

UserDictionaryProvider(Only if you deleted LatinIME)

VisualizationWallpapers

Now you have a lot of /system space. If you have Titanium Backup installed, in the menu you'll find an option named "Integrate sys dalvik into ROM". Use it.

This is something like odexing your system, but keeps the classes.dex files inside the apps.

Also Performance settings are really important, but you know what to do here.

I already talked about SuperSU and why you want to install it.

One last thing, flash this: View attachment Services.zip

It is a patched services.jar.

Also, keep your memory clean, not bloated with useless apps that stay in background.

And please don't take this post as a "do what I say and you'll see your phone perform like a Nexus 4" . Take it as an advice, and if the ROM still doesn't suit your needs afterwards, you can always go back to Gingerbread. :)
[Samsung Galaxy Mini] <JohnCarter>:
good work bro ..

but can i get the link for sources ?
[Samsung Galaxy Mini] RicardoQ5:
Alin.p, Thank you very much for taking the time to help us. I'll take your advice. :good:
[Samsung Galaxy Mini] distan7:
[MENTION=4525074]alin.p[/MENTION] is the PureAudio you're talking about is Jeeko's Pure Audio from ★ [MOD] ◢ PureAudio™ Engine ◣ | 1.0 Studio Quality | 04.05.2013 | All Devices | ? I installed Jeeko's Pure Audio (had to mount system first, else the script won't be installed). Apollo just won't play any song. I can press the play butotn, but that's it. No sound. And sooner Apollo FC.

I use your badass 4.2.2 on CM10.1 RC5, with this scripts installed :

1) Int2EXT+MOD

2) CrossBreeder 6.10.13 (using the one from your 1st post).

3) Your 9zram script (also from your 1st post)

4) Pure Graphics HD (Jeeko's too).

And I had removed D2SP Manager using TB.

Any suggestion ?
[Samsung Galaxy Mini] alin.p:
Well I just remembered that CM10 has a different libaudio than CM9 and Gingerbread. I'll post a CM10.1 version of PureAudio in the OP later.

EDIT: Done!

It's right.. here. :D

Inspect the commits before trying to apply anything to other sources. They are very messy. Sorry about that but I just can't get used to "git commit" every little edit I do.
[Samsung Galaxy Mini] :
Alin.p

Please add these links to the topic:

http://dl.xda-developers.com/attach...e08679c7/51b88e94/2/0/3/3/6/1/2/zzminfree.txt

http://xdaforums.com/attachment.php?attachmentid=2033651&d=1370926686

and this information

Now you have a lot of / system space. If you have Titanium Backup installed, in the menu you'll find an option named "Integrate sys Dalvik into ROM". Use it.

This is something like odexing your system, but keeps the classes.dex files inside the apps.

Tested kernel 900 mhz (unfortunately the phone reboots, I think that the manager did the addition of tract to the problem (modded lazy, higher clock only when typhus load to 844 mhz normally and then reduce the percentage of load (example 75% up to 864)
[Samsung Galaxy Mini] prafiles:
Can you lift some of the kernel restrictions. I cant change some kernel options like dirty ratios and swappiness?
[Samsung Galaxy Mini] alin.p:
I'll add them, looks like a lot of people don't know these tricks yet.

Well there's not much you can do for higher OC. Every device has its limits and we have really good developers that already found our lil' Mini's limits. I'll just remove the 900 OC version. Testing has said its word.

You can't change dirty ratios (and you don't have to as they are already optimized) because they are dynamic now. I changed the writeback algorithm so the dirty ratios are 0 while the screen on, to preserve battery and give priority to other important stuff. While screen is off, the ratio bumps to the optimal value (which I don't remember at the moment, but be sure that I did a lot of research on those values).

Same for swappiness: with the new zRam compression I had to adjust the swappiness to a value that didn't overload the location where the zRam driver compresses the pages. I put a restriction to that because people use a lot of scripts that change this value to the "well-known better value"
[Samsung Galaxy Mini] aniketh12:
Bro...u say like itz a piece of cake...!! i am doing Electronics Engineering.. bt still i would'nt wanna mess with the motherboard... I removed the board and i just tried cleaning and adjusting the power button thinking it would work... But nope... it did not work.. hopefullly in the coming week i will go to SAMSUNG service center and get it repaired.. or better buy a new phone... Bt 1 thing... U are very warm and kind and so freaking patient with Noobs and pros... Ur attitude rocks bro...!! :THUMB UP: for U and for all ur work...
[Samsung Galaxy Mini] alin.p:
:)) well thanks man, and sorry about your phone. Maybe it seemed easy for me because I fixed tons of this kind of small problems. My dad taught me, he knows a lot of electronic stuff.

But to be sincere, I fixed a reasonable number of phones, but I never did touch a Smartphone. Maybe this kind of phone has a more sensible motherboard.. I guess that cramming such a big number of features on such a tiny board doesn't leave place for errors of any kind.

By the way, in my opinion, Electronics Engineering is one of the most cool things you can learn in college. When you get out of there, you're like a tiny mother****er who can hack any electronic thing around him. You chose well man :D
[Samsung Galaxy Mini] Jeeko:
So, if I make a package that removes the "useless" apps, add the proper minefree values tweaked for our devices and patch service.jar, the performances would seems like CM7?

Now I've installed minefree.zip, now I have to flash Services.zip too?

And what is Cross_Blender? :D
[Samsung Galaxy Mini] alin.p:
Well, yeah... kind of. It will be similar.

Keep in mind that after all those tweaks, the performance will depend solely on your CPU settings and apps installed. Most of us have no idea that seemingly light apps can have a big impact on performance just because they stay in the background and use your memory (or worse, they get killed by the LMK and they restart continuously) . If you look in Settings->Apps->Running you'll see what is running and if you think some app should not be there, you should do something about that.

CrossBreeder is a collection of tweaks that you don't normally find in other scripts roaming around these forums.

1. It keeps your entropy free (Seeder does this too, but using a slower binary)

2. Redirects that entropy to frandom partition, because it is much faster than the default urandom

3. Uses dnsmasq to get rid of internet ads, restrictions, slow connections here and there.

4. Uses pixelserv to smooth the animations

5. I don't remember but I'm pretty sure there was a fifth thing. :)

Yeah, flash every zip there in the OP, the order doesn't count. :)

Note for anyone: If you want to odex anything or use Titanium Integrate feature, make sure you do that after making all the changes to the framework files. (services.jar is a framework file) Otherwise you'll get FC's on every odexed or integrated app.
[Samsung Galaxy Mini] Jeeko:
Ok man, soon I make a performances pack that includes CrossBlender / Services.jar / minefree values and zRam patch
[Samsung Galaxy Mini] alin.p:
Ah sh*t. I just remembered that I forgot to fix permissions on minfree and zRam. I'll report back after I fix them so you and others can reflash.
[Samsung Galaxy Mini] Jeeko:
So? :mad:
[Samsung Galaxy Mini] alin.p:
Okay done. If you get a bootloop, reflash services.zip too. I fixed permissions on that too. Without appropriate permissions the scripts will just stay there in init.d folder without executing.

I'm waiting for that performance package. :)
[Samsung Galaxy Mini] Jeeko:
Luckly I haven't got any bootlops....

After Crossblender flashing all launcher animations were disabled.. why?
[Samsung Galaxy Mini] alin.p:
CrossBreeder does this if the device has a smaller than 512 MB RAM. You can just re-enable them at 0.5x, the UI will still be smooth.
[Samsung Galaxy Mini] Jeeko:
Anyway, can you give me a list of apps that i can remove? (just the name of apk) :D

Damn, I get CM7 performances!!!
[Samsung Galaxy Mini] alin.p:
Oh, I didn't know it works on launcher level..

Well I'll just copy the list from a few posts behind:

This is my setup. You choose what to keep and what not based on the alternatives you have.

Apollo(I use Poweramp, no need to keep this)

BasicDreams(I don't use this feature at all)

Browser(I use Next Browser, believe me, it's awesome)

CMFileManager(I use Solid Explorer)

ChromeBookmarksSyncAdapter (If you delete Browser then you don't need this anymore)

HTMLViewer(Does anyone use this anyway?)

HoloSpiralWallpaper(I don't use Live Wallpapers, eats battery and RAM)

LatinIME(Careful, this is the keyboard. Delete it only if you already have installed another keyboard)

LiveWallpapers

NoiseField

PhotoTable

QuickSearchBox

Talk(If you don't use Google Talk)

Trebuchet(If you use another launcher,which I recommend because this is really RAM hungry, delete this)

UserDictionaryProvider(Only if you deleted LatinIME)

VisualizationWallpapers

And I really recommend to install SuperSU and their binary(this installs when you open the app, just choose Normal when it prompts). The original CM10 binary is damn slow. For example Titanium Backup takes 8-10 seconds to open with the old binary and 2 secs with SuperSU.

One more thing: If you want to keep your sanity, don't include CrossBreeder in the performance package. It is updated frequently, I don't think you want to modify the zip and updater-script every 12 hours. Today was updated 2 times. I'm editing and uploading the latest version right now.
[Samsung Galaxy Mini] Jeeko:
Obiviously :)
[Samsung Galaxy Mini] Jeeko:
Performances Pack

CM10.1 with CM7 performances? Here you are​

Set Minefree values tweaked for our device

Removes useless apps: HTML Viewer, GTalk, HoloSpiral Wallpaper, Effem.apk, LiveWallpapers

Enable zRam support

Services.jar fixed (now you can get more multitasking)

Other little things (GPU Render, Home launcher in-memory....)

New things coming soon...

Thank me and alin.p for his tweaked files
[Samsung Galaxy Mini] alin.p:
Good job man! Added a link to your post in the OP.

By the way, can you add my fixed version of PureAudio for CM10.1 to your thread?

The AudioFilter is now different from the one I posted in your thread. I finally managed to port all the effects from your original PureAudio zip. DSP and any other eq works perfectly also.

It's up to you, obviously, but if you do it, you should probably add a note regarding AudioFilter file size. If one user's original AudioFilter should be bigger than 3-4 kb, he should flash my version, otherwise, your version. It doesn't depend on Cyanogen version, but on the audio libraries compiled for the respective device.
[Samsung Galaxy Mini] Jeeko:
Ok, so I advise the users that If Audiofilter file is bigger than 3-4 kb, they have to flash your version
[Samsung Galaxy Mini] :
Alin.p you work on the 3.xx kernel for galaxy mini?

If so tell me how you are going work.
[Samsung Galaxy Mini] alin.p:
Still trial and error testing.

The boot process doesn't get to the part where I can get a debug so most of the time I'm fixing what's not broken.

I'm more focused on my exams right now. I do the compiling stuff between learning sessions and other hobbies, so it will take some time.
[Samsung Galaxy Mini] prafiles:
Awesome work! I will switch away from swapall then. Will try to use default values. Actually my sdcard is slow so increasing dirty ratios helps me to overcome those tricky situations. Will surely look into your sources soon! :D
[Samsung Galaxy Mini] alin.p:
I have a slow sdcard too. But I use it only for storage and in the /sd-ext partition I keep only the apks of the apps installed. Other things like swap files, moving dalvik-cache or (god forbid) app data slows the phone a lot. There's no point in using the slower sdcard for these things, when we have the faster NAND flash memory which with a little clean-up can hold all your apps, odex and dex files and app data.

Also there's no point in using swap when we have such a fast compressing/decompressing zRam.

I have to admit, using this kernel requires moving away from some of your usual tweaking, but you'll love the result in the end :)
[Samsung Galaxy Mini] mnemonyc:
For OP

Is it possible to have patched service.jar for RC3? I need it for my nee work. Thanks.

Inviato dal mio GT-I9300 con Tapatalk 2
[Samsung Galaxy Mini] alin.p:
That one in the OP works for RC3 also.
[Samsung Galaxy Mini] prafiles:
Thank you! You kindness :D

I am doing this right now. Going all ZRam.

And I cant find a link to your sources.
[Samsung Galaxy Mini] mnemonyc:
Yes work good for performance but no for my home screen layout.

This is screenshot with original service.jar

And this with modified service.jar

Any solution? Thanks!

Inviato dal mio GT-I9300 con Tapatalk 2
[Samsung Galaxy Mini] alin.p:
They are right here. I've said it before to the others requesting the sources. Careful with the messy commits, I wasn't used with commiting every little modification.

Well that's really weird. Send me your original services.jar so I can patch it.
[Samsung Galaxy Mini] :
Alin.p have a question about lagging the application first time use ?

It gives a link to a movie

http://przeklej.net/file_details/104155.html

(Movie .7 zip archive)

What it is due ?

Scripting is a little better, but the minimum (the performance is good but not on it)
[Samsung Galaxy Mini] alin.p:
I don't understand. What application gives you a link to this 7zip archive?

And what scripting are you talking about. :)

EDIT: Can anyone check if adb pull works properly(try a relatively large file)? It doesn't work for me and I want to make sure if it's my USB cable's fault or the kernel.
[Samsung Galaxy Mini] :
Applications stutter when you first start

http://przeklej.net/file_details/104155.html (compressed video, watch)

It's about these scripts

Various tweaks

Script to enable zRam with optimized DiskSize for our Mini: zRam.zip (flashable zip)

Script to set LowMemoryKiller minfree values ​​at boot: minfree.zip (flashable zip)

Patched services for better multitasking: Services.zip (flashable zip)

Jeeko's PureAudio fixed for CM10.1: PureAudio ™ 1.0 - STUDIO.zip [Please thank Jeeko for this awesome mod. ]

If you have Titanium Backup installed, in the menu you'll find an option named "Integrate sys Dalvik into ROM". Use it.

This is something like odexing your system, but keeps the classes.dex files inside the apps. Do not worry if you do not have a lot of system space, Titanium will ODEX as much as it can until the free space runs out.

Jeeko's Performance Pack includes the first three tweaks and something more. Take a look.

TIP: So in latest version of CrossBreeder, the OP added some system tweaking Which Interferes with our kernel. So I edited Those parts that match our settings and device limits.

If anyone wants to install CrossBreeder:

-First uninstall by flashing this file: CrossBreeder_Uninstall.zip

-Then install this custom version: CrossBreeder_6.13.13_v2-Badass.zip

improve performance
[Samsung Galaxy Mini] alin.p:
Tell me:

1.In which order you installed the scripts

2.What are the contents of your init.d folder

3.What are your Performance settings

EDIT: We'll solve this in PM so we don't clutter the thread
[Samsung Galaxy Mini] :
I recorded a video of my mini

and I threw at this link please

look at it

http://przeklej.net/

file_details/104155.html

You'll understand when you see
[Samsung Galaxy Mini] ast00:
Try uploading it to an english site please! I'm not dev of course, but I want to see it and I had some trouble finding download button. I only speak english and hungarian :p

But now I got it.
[Samsung Galaxy Mini] piterdemon:
This is Polish site, find button "pobierz"

Wysyłane z mojego GT-S5570 za pomocą Tapatalk 2
[Samsung Galaxy Mini] alin.p:
Alright guys, 1.3 update available. This brings a smoother UI (still trying to enable all the Project Butter components) and a little bit better memory management in terms of IRQ handles.

The SmartassV2 BoostPulse interface is available and enabled by default. I need to know if this has any impact on battery. I didn't notice any battery drain because of this feature but I still need feedback.

Note: Don't post battery feedback after a kernel flash without first fully charging your battery and having constant Performance settings for the full testing time.

About 3.0, I'm kinda hopeless right now. I fixed everything I thought that would cause the failed boot. Still nothing. I'm gonna leave this project for a while.. maybe until I get a surprising brilliant idea that makes me feel like an idiot because I didn't get it earlier.
[Samsung Galaxy Mini] Spincervino:
Wow man, Project Butter?! How are you doing this? Definitely including Badass Kernel v1.3 in the MiniBean V2.. so excited about Project Butter :D

May even start testing v2 now that i'm seeing this!

Don't worry much about kernel 3.0, keep improving this one and no one will never need a 3.0 one!

Off-Topic:

I knew a developer that was working very hard on a graphic feature for his High-End Graphic Mod for a game..he worked on it for months..

When he said: screw this feature for now, he stopped for a week coding and a night he had a dream, he saw his error and it was so clever for him now how to implement that feature, he woke up and went coding, the day after, the new graphics feature was working amazingly..

Sometimes, you just need to walk back a little to see better the whole thing! ;)
[Samsung Galaxy Mini] alin.p:
That's what I was talking about :)

About this Triple Buffering thing, I'm still trying to find the right values so I don't clog the ram, and still get an optimal response in UI responsiveness. Kinda harder to work with binary values but I'll get it right in a day or two, then move further to vSync.
[Samsung Galaxy Mini] Spincervino:
Well, then i think v2 can wait a little bit, tomorrow i will be digging on the code of all the mod I inserted/want to insert, to see that tweaks aren't repeated.. I'm sure some of them are so common that they are repeated 2 or 3 times..

I imagine working with binaries is way harder than just normal "higher" code.. So when you think you got the right values tell us!

V2 has to have this, so because v1.1 has just come out, i think we can wait even a week! ;)
[Samsung Galaxy Mini] ast00:
LOL I'm the guy who never cares about app launch speeds or ram usage, I just want it to be smooth as butter. And now I can have both. Nice :)
[Samsung Galaxy Mini] distan7:
[MENTION=4525074]alin.p[/MENTION]

I think you should update your minfree and zRam zip updater-script in 1st Post :

ui_print("Patching services.jar");
[Samsung Galaxy Mini] alin.p:
:)) oh boy, I forgot about the installer messages. I'm changing them right now. Thanks!

EDIT: After testing a lot of different values for Triple Buffering, seems like the original values are the best. Everything higher or lower either eat too much ram, either make the UI sluggish.

So 1.3 already has the best values.

I can't find anything about vsync for our device, I have no idea how to add that at the moment.

Anyway, 2 out of 3 components of Project Butter is still pretty good. :)
[Samsung Galaxy Mini] ast00:
What's the first one? I only know triple buffering and vsync.
[Samsung Galaxy Mini] alin.p:
Touch resposiveness.

Quote from PocketNow:

Touch Responsiveness “anticipates” or predicts where you’re likely
to put your finger on the screen, and gets ready for that tap, making whatever
action is behind it that much faster to load.

Jelly Bean reduces touch latency by synchronizing touch to vsync timing.
By anticipating where your finger will be at the time of the screen refresh,
Android 4.1 is more reactive and and presents a more uniform touch response.
Also, after periods of inactivity when Android has dropped the CPU speed
to extend your battery life, the OS will apply a CPU “input boost” at the next
touch event, to make sure the CPU is ramped up to speed so there’s no latency.

That "input boost" they are talking about was lacking in our device and was introduced in 1.3 version through BoostPulse for Smartass V2 and H3.
[Samsung Galaxy Mini] A_U:
trying 1.3.1 with today's nightly..

600-122 smartassh3..lets see how it goes. :good:
[Samsung Galaxy Mini] Spincervino:
Nice! :D I'll start testing too!

Question: Is it possible to add that BoostPulse to lazy,badass, all the others?.. just asking!

For the vsync, isn't in the build.prop a line that says

debug.sf.no_hw_vsync=1

Maybe you just have to put that to 0, but in my opinion it would be too easy, woudn't it? :p

Also found this in an old thread, not sure if, of any help:

If debug variables are enabled you can play with vsync too

Here add these below lines to

init.qcom.post_boot.sh present at /system/etc/

# enable vsync

echo 1 > /sys/kernel/debug/msm_fb/0/vsync_enable
[Samsung Galaxy Mini] addyhardiana:
so now what the best configuration for governor and I/O scheduler?
[Samsung Galaxy Mini] A_U:
600-122 smartassh3 deadline
[Samsung Galaxy Mini] alin.p:
I did research before saying anything about vsync. I already tried that build.prop change, no difference in fps whatsoever. And I have found that thread too.. that vsync_enable file is missing from our devices which means there's no vsync present in our kernel.

Yes it is possible to add BoostPulse to other governors, but smartass works best with that because of it's Ideal Frequency variables. Adding BoostPulse to Lazy, for example, would require a massive rewrite of the algorithm.

Right now I'm focusing on code optimizations, we have a lot of "underground" bugs that slow down the device from time to time.

I hope I will release a new version tomorrow with all the optimizations (there will be lots of them).

SmartassH3 122-600 and Deadline I/O

If anyone encounters bad responsiveness with SmartassH3 please report, and tell me in what conditions did you notice that. I might need to further adjust some parameters.
[Samsung Galaxy Mini] A_U:
yes i am testing with samrtassh3 and the screen sometimes doesnt work..as u said unresponsive. But after 4 to 5 sec's it starts working...
[Samsung Galaxy Mini] alin.p:
I'll update the parameters in the next version. I noticed that problem too with SmartassH3, right after flashing the kernel, but after a reboot, the UI is smooth again. The biggest advantage is that the battery is incredible with this governor, but I'll make sure that I don't sacrifice performance for this.

Keep in mind that if you don't use the minfree script, the RAM will be full in an hour or less, and apps will become unresponsive, regardless of what governor you are using. Still trying to hardcode those values, but I have no idea what initializes them.