What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[KERNEL] Kernel (deprimed_test) - Break It If You Can

yeah its actually fairly easy to run a swap partition without swapper2, its a simple 1 line script. I usually use 30-40 for my swappiness and a good swap size is about 256 MB (it pretty much never gets full) I'd suggest throwing in an ext partition too just in case you want link2sd, ext 3 or ext 4 and probably 512 MB is good for that, either do it via rom manager or minitool partition wizard on a pc if you want more control over everything

heres the script to use a swap partition, just throw it at the end of a file in /etc/init.d after testing it in terminal emulator first

Code:
[COLOR=#3E3E3E][FONT=Verdana]swapon /dev/block/mmcblk0p2[/FONT][/COLOR]

or
Code:
[COLOR=#3E3E3E][FONT=Verdana]swapon /dev/block/mmcblk0p3[/FONT][/COLOR]
depending on what order you partition your sdcard (for example the first one would be used if you had it set up FAT32/swap/ext3, and the second one would be if you had it FAT32/ext3/swap)

Thanks. But what order is it if I partition it using Rom Manager?
 
run each one in terminal emulator and see which one doesnt give you an error. After all swap can only be mounted on a swap partition (or a swap file but using a partition is much better) ;)

Okay, will try once SD10 is released :P
And since swap slows down phone a little overtime, how can you free up the swap partition and renew like you can with compcache?

And also, how can you actually manage the swappiness value?

Sent from my CushZero using Tapatalk
 
Last edited:
Okay, will try once SD10 is released :P
And since swap slows down phone a little overtime, how can you free up the swap partition and renew like you can with compcache?

And also, how can you actually manage the swappiness value?

Sent from my CushZero using Tapatalk

you can free up swap with
Code:
swapoff /dev/block/mmcblk0p2
swapon /dev/block/mmcblk0p2
or
Code:
swapoff /dev/block/mmcblk0p3
swapon /dev/block/mmcblk0p3

and swappiness is really really easy to set its just
Code:
sysctl -w vm.swappiness=30
obviously you can use any number and it can be run in terminal or put at the bottom of the last script run in /etc/init.d (if you use zeppelinrox v6 supercharger or kickasskernel tweaks just look for the swappiness line in those files in /etc/init.d
 
swap can only use a swap file or a swap partition...you have to manually make a swap file and set its size so if you dont and have a swap partition, and use that script and type in "free" in terminal and it reports back swap space then it has to be using the partition
 
I'm tempted to try the non-swapper2 swap option.
I'm low on RAM and I ditched swapper2 because it had RAM overhead and I couldn't see any difference between swap on and swap off.

I'm fighting for the last MBs of memory these days. Typically I'll look and there's about 20 available.

- onDroid
 
Funny I see this topic, we were somewhat discussing this in the SteelDroid10 thread...I was saying that since one OG is not the same as any other, that if a certain setup or ROM setup runs great on one that doesn't mean it'll run great on a different one as is. Like for me I've always had to have a swap partition or compcache running for things to run smoothly. But if some people don't know about those things, then they might think it's like the kernel or low/medium/high voltage settings and different things like that. I just think it's so tough to narrow down to what might be causing system lag in general. Especially once you throw apps to the SD card, or link2sd, and maybe some of them don't behave well when forced to the SD card? I know myself I'm just tired of lag on my OG, especially after SBF'ing back to stock, SBF recovery, load up ROM, restore apps via TiBu and it's still acting up. Can just tell by the way the screens on the homescreen flick through with lag, I mean I only got 3 homescreens and only a couple widgets, the browser always seems to struggle, I mentioned about how when tapping into an empty field to input data that bringing up the keyboard seems to be a real struggle, I'll have to tap the screen outside that box and then inside it again to get the keyboard to pop up.
I run all of zeppelinrox's scripts ie v6, 3g turbo, kak, and I was even thinking about using his script that attempts to lock a certain app into memory using the brilliant v6 supercharger to bulletproof the keyboard, or LatinIME I believe is the .apk for it, cuz I use to bulletproof swapper2 before I SBF'd a couple weeks ago. Was tough to tell if it was working. Eventually reboots were just critical there was no way around it. Now I'm just trying to find that as close to perfect setup as I can.
 
Hmm, haven't heard from Prime for a while. Sure would like a new update to this great kernel! Possibly to add compcache in

Sent from my CushZero using Tapatalk
 
I appologize if this has been covered with a solution, this is a HUGE thread!

I redid my son's OG Droid using deprimed kernel so I could use the ext3 on my SD card to do dta2sd to free up space. You can see what I did here: http://www.droidforums.net/forum/project-elite/137380-ext3-2.html#post1992345

H
owever now the wifi turns itself off all the time and won't hold a connection for much over 5 to 10 minutes before the wifi disappears.

I believe the kernel may have something to do with this, anyone have any ideas?
 
I know this has nothing to do with the kernel, but since u said u completely redid the phone, wondering if, while you're in settings, wireless & networks, then wifi settings, then menu advanced settings, maybe the wifi sleep policy got reset so when the screen turns off so does wifi?
I know it went back to That default for me when I sbf back to stock then load up a ROM n apps back, so hopefully that's the culprit...only it disconnects with the screen never turning off. Then we've got a problem for sure.

Sent from my OG using DroidForums
 
I know this has nothing to do with the kernel, but since u said u completely redid the phone, wondering if, while you're in settings, wireless & networks, then wifi settings, then menu advanced settings, maybe the wifi sleep policy got reset so when the screen turns off so does wifi?
I know it went back to That default for me when I sbf back to stock then load up a ROM n apps back, so hopefully that's the culprit...only if it disconnects with the screen never turning off. Then we've got a problem for sure.


Sent from my OG using DroidForums
 
Back
Top