FORUMS
Remove All Ads from XDA

[KERNEL] KING's Kernel

2,223 posts
Thanks Meter: 5,194
 
By KINGbabasula, Recognized Developer on 10th May 2014, 03:23 PM
Post Reply Subscribe to Thread Email Thread
19th June 2014, 09:12 AM |#71  
KINGbabasula's Avatar
OP Recognized Developer
Flag Treviso
Thanks Meter: 5,194
 
Donate to Me
More
Quote:
Originally Posted by Paul L.

@KINGbabasula hey, why you don't add this? https://github.com/android/kernel_co...87e153197a454f

The changes are pretty simple to add a tunable that Android can access to free some memory when needed. This is the kernel used for, well, Nexus devices.


And I merged this on cm-11 kernel, pretty simple commit too.
https://github.com/alin23/render_ker...6f90c9e425f869

Becaus I didn't even know that commit exists I'll add it now, thanks.

Quote:
Originally Posted by tasosf

Wifi refuses to turn on since I installed v. 6 (latest). On J-team AOSP...

Here it's working without problems
Last edited by KINGbabasula; 19th June 2014 at 09:19 AM.
 
 
19th June 2014, 09:25 AM |#72  
Toni5830's Avatar
Senior Member
Flag Somewhere over the Rainbow
Thanks Meter: 439
 
More
Quote:
Originally Posted by Paul L.

@KINGbabasula hey, why you don't add this? https://github.com/android/kernel_co...87e153197a454f

The changes are pretty simple to add a tunable that Android can access to free some memory when needed. This is the kernel used for, well, Nexus devices.


And I merged this on cm-11 kernel, pretty simple commit too.
https://github.com/alin23/render_ker...6f90c9e425f869

So we should edit this line
Code:
int extra_free_kbytes = 0;
and writee there how many kbytes we want the kernel to free? so until it's 0 this commit has no effect, right?
19th June 2014, 09:31 AM |#73  
KINGbabasula's Avatar
OP Recognized Developer
Flag Treviso
Thanks Meter: 5,194
 
Donate to Me
More
Quote:
Originally Posted by Toni5830

So we should edit this line

Code:
int extra_free_kbytes = 0;
and writee there how many kbytes we want the kernel to free? so until it's 0 this commit has no effect, right?

No. That's a sysfs interface. When it's declared that way in sysctl.c it will create the file declared in .procname in /proc/sys/vm . As .procname is "extra_free_kbytes" you will get this file /proc/sys/vm/extra_free_kbytes where you can edit the value
The Following User Says Thank You to KINGbabasula For This Useful Post: [ View ]
20th June 2014, 11:14 AM |#74  
Senior Member
Flag Mendoza
Thanks Meter: 3,910
 
More
Quote:
Originally Posted by KINGbabasula

No. That's a sysfs interface. When it's declared that way in sysctl.c it will create the file declared in .procname in /proc/sys/vm . As .procname is "extra_free_kbytes" you will get this file /proc/sys/vm/extra_free_kbytes where you can edit the value

Well, *supposedly* is for Android to ask the kernel to free some memory when needed; but you can also put a static value if you want.
21st June 2014, 07:18 PM |#75  
Theyonut's Avatar
Senior Member
Thanks Meter: 24
 
More
wifi not working with AOSP 4.4.4. With previous build works fine
The Following User Says Thank You to Theyonut For This Useful Post: [ View ] Gift Theyonut Ad-Free
22nd June 2014, 11:58 AM |#76  
Alberto97's Avatar
Senior Member
Flag is not working
Thanks Meter: 3,390
 
Donate to Me
More
Quote:
Originally Posted by Theyonut

wifi not working with AOSP 4.4.4. With previous build works fine

Impossible, it shouldn't works also with the "After Final" build, caused by the new kernel...
2nd August 2014, 04:55 AM |#77  
Member
Thanks Meter: 16
 
More
This kernel works on 4.4.4 AOSP?
19th December 2015, 09:43 PM |#78  
Junior Member
Thanks Meter: 1
 
More
Will this kernel work for 5.1.1? Would really like to increase the vibration level. Missing some calls because of it :/
11th May 2016, 03:56 AM |#79  
Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by KINGbabasula

I'm here with a simple but fast kernel for AOSP 4.4.2.

Download with this link you get always the latest image.

KING's Kernel Manager: http://forum.xda-developers.com/show....php?t=2747094 to get OTA updates

Features:

Vibration intensity tweakable
- Allows to change vibration intensity

To change value:

Code:
echo x > /sys/vibrator/pwm_value
Change x with a number between 0 and 60. 0 is the strongest, 60 is the weakest.

Dynamic management of dirty page writeback
- Based on a Christopher83 commit.
- Allows to dynamically manage the dirty page writebacks with two different intervals, one when the screen is on and another when the screen is off.
- By using a higher interval we have better performance and less battery consumption, with a very low risk of data loss.

To enable it:
Code:
echo 1 > /proc/sys/vm/dynamic_dirty_writeback
To disable it:
Code:
echo 0 > /proc/sys/vm/dynamic_dirty_writeback
To customize intervals (in centisecs):
Code:
echo xxxx > /proc/sys/vm/dirty_writeback_active_centisecs
echo xxxx > /proc/sys/vm/dirty_writeback_suspend_centisecs
default for active: 1500
default for suspend: 500

tested values: 3000 - 1000 , 6000 - 2000

Disabled Gentle Fair Sleepers
- Gives better performance

AIO: Don't plug the I/O queue in do_io_submit()
- 30/35% faster sd card reading

-O3 build optimization
- Gives better performance

Dynamically disable mutex spinning at high load
- Thanks to faux123
- Explanation: https://github.com/KINGbabasula/KING...ebe9ba9ec7770d

XDA:DevDB Information
KING's Kernel, Kernel for the Samsung Galaxy S Advance I9070

Contributors
KINGbabasula
Kernel Special Features: Dynamic management of dirty page writeback Disabled Gentle Fair Sleepers AIO: Don't plug the I/O queue in do_io_submit() -O3 build optimization

Version Information
Status: Stable
Current Stable Version: 1
Stable Release Date: 2014-05-10

Created 2014-05-10
Last Updated 2014-06-13

Will it work on cm12.1 5.1.1 plz tell me

Sent from my GT-I9070 using XDA-Developers mobile app
11th May 2016, 08:20 AM |#80  
Member
Thanks Meter: 62
 
More
Obviously not.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes