• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Boost Mobile] [Kernel] Glitch Kernel (2.6.35.7) OC. 1.8ghz

script to enable zram@128mb

Code:
#!/system/bin/sh

echo "134217728" > /sys/block/zram0/disksize
mkswap /dev/block/zram0
swapon /dev/blcok/zram0

can someone explain to me how echo "134217728" sets 128mb ram?

Also, does it make sense to run BOTH zram and swap? I was thinking about adding a priority to both so the zram will be used first, then if full swap will get used, I am trying that setup by adding -p 10 to zram and -p 100 to swap, so zram would look like this:

echo "134217728" > /sys/block/zram0/disksize
mkswap /dev/block/zram0
swapon -p 10 /dev/blcok/zram0

Is this the way to go? Also, with this setup would it make sense to lower the size of the swap so in total they are around a quarter of the total ram? so maybe have both set to be 128mb?

Lastly, how do I go about verifying both are being used/setup? I can see swap sitting on my phone, can I view zram somewhere?
 
testing the 1.4 kernel out now, has anyone else used cpu spy to test the kernels, I am liking the way it breaks down what states it's used etc.

I am finding my phone won't go into deep sleep, but that may be an app or build.prop causing the phone to stay partially awake at the moment.
 
Zram is just compressed swap that sits on a portion of the ram. You can see it the same way you do swap
 
can someone explain to me how echo "134217728" sets 128mb ram?

Also, does it make sense to run BOTH zram and swap? I was thinking about adding a priority to both so the zram will be used first, then if full swap will get used, I am trying that setup by adding -p 10 to zram and -p 100 to swap, so zram would look like this:

echo "134217728" > /sys/block/zram0/disksize
mkswap /dev/block/zram0
swapon -p 10 /dev/blcok/zram0

Is this the way to go? Also, with this setup would it make sense to lower the size of the swap so in total they are around a quarter of the total ram? so maybe have both set to be 128mb?

Lastly, how do I go about verifying both are being used/setup? I can see swap sitting on my phone, can I view zram somewhere?

As far as setting to 128mb...disksize is in bytes and 1024*1024*128=134217728.

As to having both swapfile and zram...I've been trying to find out that very same thing. Reading through posts it seems as if zram and swapfile will effectively be holding the same information but in different ways...using priority may fix this but it may be better to do it through sysctl.conf and set other swap/vm settings as well.

Also been playing with putting swapfile in /cache to see if there's any improvement or difference in performance...
 
I am finding my phone won't go into deep sleep, but that may be an app or build.prop causing the phone to stay partially awake at the moment.

Most of the time its an app. If you find different please report a bug
 
Has anyone got zram set-up yet? Is this something that could be made flashable so those of us without the ability to understand all the programming involved could also benefit from its use?
 
I've been running it all day, and everything seems to be so good so far... Good reception and battery so far. Running at 1.8 max and 768 min. on Scary..... Thanks DTM
 
Vontage control is an app you can get in the play store i dont see why you would need to flash it for any rom unless it specificly says not to use it for that rom
 
hi downthemachine

i run to different forums and i found your page. as far as i read on your page, i just want to ask if i can install your custom kernel to my
Lenovo A60+ Gingerbread 2.3.6
Kernel: = Linux version 2.6.35.7 (queen@xyw2)
(gcc version 4.4.3 (GCC) #1 PREEMPT Sun Jul 1 00:02:04 CST 2012

thats the info of my kernel version..
and i already rooted my phone as well and one more thing i'm still searching on how to use a ram swap for my phone cause i really have a very low RAM.

hope you can help me. or someone can help me
 
this kernal was created specificly for the zte warp so i would not use these files however im sure someone here can help you out
 
well i tried voltage control, setupcpu and cpu tweeks none of those app are giving me the option to change the voltage or overclock the cpu. am i missing something?
 
sorry im an idiot i flashed the Non OC kernal. im over clocked but still, what about the voltage. im still not able to adjust that. im set on noop and smartass v2 just because that seems to be what most have the best success rate with. what should i keep the cache set to?
 
sorry im an idiot i flashed the Non OC kernal. im over clocked but still, what about the voltage. im still not able to adjust that. im set on noop and smartass v2 just because that seems to be what most have the best success rate with. what should i keep the cache set to?

The kernel doesn't support voltage adjustments.
 
So far it runs, laggy at times for me. Can't get profiles on setcpu to work. For example I have a profile set up to run 1804 MHz on performance while charging, it switches when charger is attached then switches right back to the default settings of 1401 MHz with smartassv2. Not sure what's up with that.

Edit: Lag seems work itself out pretty quickly.

the priorities for your profiles could be the issue...
 
Ive been running at 1.8GHz for weeks now. No problems, it doesnt even get hot. Ok the battery gets power chuged even after calibration but that can be expected. Im hooked on this kernel.
 
Back
Top Bottom