[SCRIPT][GAMERS] Hyper Cola Package Installer 1.8

A

andeveloper

Guest
Thanks, but i think :
setprop dalvik.vm.dexopt-flags v=n,o=v
Should actually be
setprop dalvik.vm.dexopt-flags v n,o v
and tnx for this:
busybox mount -o remount,noatime,nodiratime,remount,rw,barrier=0,data=writeback /cache 2>/dev/null;
;)

Also is their anything else i missed? (besides: setprop dalvik.vm.dexopt-flags m=y to)

EDIT
sorry ur bug fixes r awesome, :D
No it should be setprop dalvik.vm.dexopt-flags v=n,o=v or your prop will not be set and will receive syntax error (usage setprop <prop> <value>)

Sent from Project Xtreme using Tapatalk 2

Project Xtreme http://forum.xda-developers.com/showthread.php?t=2272317
 

X-zone

Senior Member
Dec 26, 2012
230
47
0
Tnx, i set it to tat, and i reuploaded it, ;), Tnx alot, :)
There seems to be missing a sync command before the echo 1 > /proc/sys/vm/drop_caches. All cached objects must be synchronized before flushing stuff like pagecaches, or the system can hang, and risk corruption (In this case in the memory).
Code:
# Cola engine
sleep 0.6;
 echo "Phase 9/9...";
exec
(while true; do
echo 1 > /proc/sys/vm/drop_caches;
sync
echo 2 > /proc/sys/vm/drop_caches;
sync
echo 3 > /proc/sys/vm/drop_caches;
sleep 32;
done &)
 echo "Done!";
 

DiamondBond

Senior Member
Jul 6, 2012
3,917
3,665
0
Limassol
There seems to be missing a sync command before the echo 1 > /proc/sys/vm/drop_caches. All cached objects must be synchronized before flushing stuff like pagecaches, or the system can hang, and risk corruption (In this case in the memory).
Code:
# Cola engine
sleep 0.6;
 echo "Phase 9/9...";
exec
(while true; do
echo 1 > /proc/sys/vm/drop_caches;
sync
echo 2 > /proc/sys/vm/drop_caches;
sync
echo 3 > /proc/sys/vm/drop_caches;
sleep 32;
done &)
 echo "Done!";
Tnx, :D, but im adjusting the engine in v1.8 and it dumpes page cache, inodes and dentries, ;) (drop cache 3, so it already had sync above so its cool... ;) )
 
A

andeveloper

Guest
Good buddy!

Your refreshes my old memories of my old releases. I used the same things.

Sent from Project Xtreme using Tapatalk 2

Project Xtreme http://forum.xda-developers.com/showthread.php?t=2272317

---------- Post added at 02:16 AM ---------- Previous post was at 02:13 AM ----------

There seems to be missing a sync command before the echo 1 > /proc/sys/vm/drop_caches. All cached objects must be synchronized before flushing stuff like pagecaches, or the system can hang, and risk corruption (In this case in the memory).
Code:
# Cola engine
sleep 0.6;
 echo "Phase 9/9...";
exec
(while true; do
echo 1 > /proc/sys/vm/drop_caches;
sync
echo 2 > /proc/sys/vm/drop_caches;
sync
echo 3 > /proc/sys/vm/drop_caches;
sleep 32;
done &)
 echo "Done!";
No that's not true.

Sent from Project Xtreme using Tapatalk 2

Project Xtreme http://forum.xda-developers.com/showthread.php?t=2272317
 

souler456

Senior Member
Jan 18, 2013
1,321
626
0
Calamba, Laguna
Tnx, ive been thinking bout that, but everyones vm settings r different, so if i revert back to "normal" one users normal settings (eg 256mb ram) compared to anothers (1GB ram) only one will have the device to normal, and then the other will expirience lag and stuff, :)
Hmm... If that would be the case, here's a follow-up:

Suggestion: Can you "back-up" those files (like on V6 backing up build.prop, and OOM priorities) and make an option on your script to restore back the default settings, so that when we are finished using your script, we can just use that option instead of rebooting... :eek:

As always, just a suggestion... :D
 

DiamondBond

Senior Member
Jul 6, 2012
3,917
3,665
0
Limassol
Hmm... If that would be the case, here's a follow-up:

Suggestion: Can you "back-up" those files (like on V6 backing up build.prop, and OOM priorities) and make an option on your script to restore back the default settings, so that when we are finished using your script, we can just use that option instead of rebooting... :eek:

As always, just a suggestion... :D
Well yes kind of, u see, the way hyper cola works is all the vm values and everything else can be restored, except the setprop values... and then theirs the engine, the engine is the main game booster, but we cant kill/remove it, the only way to delete it would to be bye rebooting, so to make it just restore vm values wont stop the battery drainage, ;)
 

X-zone

Senior Member
Dec 26, 2012
230
47
0
Tnx, i set it to tat, and i reuploaded it, ;), Tnx alot, :)
There seems to be missing a sync command before the echo 1 > /proc/sys/vm/drop_caches. All cached objects must be synchronized before flushing stuff like pagecaches, or the system can hang, and risk corruption (In this case in the memory).
Code:
# Cola engine
sleep 0.6;
 echo "Phase 9/9...";
exec
(while true; do
echo 1 > /proc/sys/vm/drop_caches;
sync
echo 2 > /proc/sys/vm/drop_caches;
sync
echo 3 > /proc/sys/vm/drop_caches;
sleep 32;
done &)
 echo "Done!";
No that's not true.

Sent from Project Xtreme using Tapatalk 2

Project Xtreme http://forum.xda-developers.com/showthread.php?t=2272317

It is possible to artificially increase the value of MemFree (and make your manager happy) by flushing and invalidating the clean (unused) cache and filesystem meta-data. This operation is non-destructive and it does not free the currently used caches (like running processes). Prior to this operation, the “sync” command needs to be run first in order to make sure all cached objects are synchronized.
Hi

I’m execute echo 1 > /proc/sys/vm/drop_caches to free pagecache
After execute that command, my server is hung and must be restart. Please explain me how that can be occur ?

Hai Shalom
August 20th, 2010 at 5:42 PM Log in to Reply

Hello Defry, please use sync command before dropping the caches.
Data corruption refers to errors in computer data that occur during writing, reading, storage, transmission, or processing, which introduce unintended changes to the original data.
Why wouldn't my statement be correct?
 
Last edited:

souler456

Senior Member
Jan 18, 2013
1,321
626
0
Calamba, Laguna
Well yes kind of, u see, the way hyper cola works is all the vm values and everything else can be restored, except the setprop values... and then theirs the engine, the engine is the main game booster, but we cant kill/remove it, the only way to delete it would to be bye rebooting, so to make it just restore vm values wont stop the battery drainage, ;)
Oh, i see... So i guess rebooting can't be avoided... :(

On the other hand, this works great on my LG Optimus L3 running Official ICS CM9... Debugged the script and all commands work fine. Really Neat :)

I don't really like SManager (don't judge me), so I like to run scripts via TermEmu... And to make it a little bit easy to run, I pushed your script on /system/xbin/ for easy typing...

I would really like to have the permission to include your script in the ROM i'm building, cause its pretty great! :eek:

Will wait for more of your updates pal! Keep it up :D
 
Last edited:

DiamondBond

Senior Member
Jul 6, 2012
3,917
3,665
0
Limassol
Oh, i see... So i guess rebooting can't be avoided... :(

On the other hand, this works great on my LG Optimus L3 running Official ICS CM9... Debugged the script and all commands work fine. Really Neat :)

I don't really like SManager (don't judge me), so I like to run scripts via TermEmu... And to make it a little bit easy to run, I pushed your script on /system/xbin/ for easy typing...

I would really like to have the permission to include your script in the ROM i'm building, cause its pretty great! :geek:

Will wait for more of your updates pal! Keep it up :D
Yep Sadly Rebooting cant be avoided, unless google updates the android kernel for users to access background scripts, :D
Me neither i hate Smanager (Uses alot of ram, bugs u bout things, always runs on boot unless disabled, super small buttons...), i dont gudge u AT ALL, :p, I use Terminal Emulator
Sure go aheead use my script, but please gimme some credits and if possible dont modify the contents of the script, but ill allow u to if u want, :)
:D Tnx!
 
  • Like
Reactions: souler456

DiamondBond

Senior Member
Jul 6, 2012
3,917
3,665
0
Limassol
Guys im working on the new Hyper Cola Engine and i came up with a new design, :D

Sample:
Code:
exec
(while true; do
sync
echo 100 > /proc/sys/vm/swappiness
sleep 4;
sync
echo 0 > /proc/sys/vm/swappiness
sleep 2;
sync
echo 10 > /proc/sys/vm/swappiness
sleep 2;
sync
echo 500 > /proc/sys/vm/vfs_cache_pressure
sync
echo 3 > /proc/sys/vm/drop_caches;
sync
echo 300 > /proc/sys/vm/vfs_cache_pressure
sleep 24;
done &)
Basically it makes android Swap EVERYTHING for 4 Seconds, which will remove some stress on cpu/ram/gpu, then it will stop swapping everything for 4 seconds to give android a break and just enough time to build some stuff up, then it will set cache pressure to 500 and drop caches, this makes it faster to drop cache so u wont feel a random LITTLE Jitter, then it sets it back to the value i set which was 300 which is a good balance when dumping alot of caches, :), Also ive calculated everything and the process still has an interval of 32 seconds so it dosent take any longer/quicker, but now ull have a much better ui and ur device gets resource cleaned, :D
 

DiamondBond

Senior Member
Jul 6, 2012
3,917
3,665
0
Limassol
NEW! Hyper Cola 2.0!, :3

Change log:
-More Quicker Engine=
==Dumps caches quicker
-Much smoother ui and device while this script is running=
==caches get dumped so quick their are no stutters in the ui
-Much MUCH Better Gaming Performance!!!!!!!!!!!!! (Cant state how much, :p)=
==Frees up resources every 24 seconds by swapping everything then dumping caches quickly

Enjoy! ;)
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone