[KERNEL] [G800F/M/Y] Spookcity_Kernel-N (For all 7.x custom ROMS)

Search This thread

bitbirch

Member
Sep 8, 2015
9
0
21
After installing v5-1500 :(
No problem with "swapper" before new kernel
 

Attachments

  • Screenshot_20171002-095827.png
    Screenshot_20171002-095827.png
    93.4 KB · Views: 541

bluesbvt

Member
Oct 5, 2017
6
0
1
Hi! I've tried both latest builds (v5.0 and v5.1) and everything seems to work fine (thanks for the effort btw!), but I was wondering if the kernel supports swap capabilities? And if not, is it possible for you to consider it in the next update?
Multitasking and some high-demanding apps require more than 1.5GB of RAM, so I'd like swap-expand it to make the most out of device.
Tried with ROEHSOFT RAM-EXPANDER, but wasn't successful... Any solution? Thanks! :)
 

spookcity138

Senior Member
Nov 9, 2015
1,860
2,556
153
Eindhoven
Hi! I've tried both latest builds (v5.0 and v5.1) and everything seems to work fine (thanks for the effort btw!), but I was wondering if the kernel supports swap capabilities? And if not, is it possible for you to consider it in the next update?
Multitasking and some high-demanding apps require more than 1.5GB of RAM, so I'd like swap-expand it to make the most out of device.
Tried with ROEHSOFT RAM-EXPANDER, but wasn't successful... Any solution? Thanks! :)

I have disable swap (I believe,its been some time since I've actually worked on the kernel) I can re-enable it however. I will hopefully have some time soon to look more into this kernel.
 

Oleggluk

Senior Member
Jul 29, 2015
276
117
0
Hi! I've tried both latest builds (v5.0 and v5.1) and everything seems to work fine (thanks for the effort btw!), but I was wondering if the kernel supports swap capabilities? And if not, is it possible for you to consider it in the next update?
Multitasking and some high-demanding apps require more than 1.5GB of RAM, so I'd like swap-expand it to make the most out of device.
Tried with ROEHSOFT RAM-EXPANDER, but wasn't successful... Any solution? Thanks! :)
Quote from one site (Google Translate)
"Swap
Let's start with swap - the most absurd idea of ​​all that you can think of for use in smartphones. Its purpose is to create and connect a swap file, due to which it will be possible to free the usable space in the RAM. The idea in itself is, of course, sound, but only if it is a server that interactivity does not go anywhere. On a smartphone, the regularly used swap file will lead to non-illusory lags that result from misses past the cache - it's enough to imagine what will happen if the application tries to display one of its icons, and it appears in a swap that will have to be downloaded again from the disk, place in the swap data of another application. Horror.

Some users may object that in fact, after switching on swap, there are no problems, but for this we must thank the mechanism of lowmemorykiller, which regularly kills especially bloated and unused applications. Thanks to him, the device with 1 GB of memory can never reach the need to reset the data in the swap. It is also the reason why, unlike the Linux desktop, Android does not need a swap.

Verdict: a very stupid idea, the realization of which is fraught with serious lags."

I think that zRam support will be more useful.
 
Last edited:
  • Like
Reactions: Pat750

spookcity138

Senior Member
Nov 9, 2015
1,860
2,556
153
Eindhoven
Quote from one site (Google Translate)
"Swap
Let's start with swap - the most absurd idea of ​​all that you can think of for use in smartphones. Its purpose is to create and connect a swap file, due to which it will be possible to free the usable space in the RAM. The idea in itself is, of course, sound, but only if it is a server that interactivity does not go anywhere. On a smartphone, the regularly used swap file will lead to non-illusory lags that result from misses past the cache - it's enough to imagine what will happen if the application tries to display one of its icons, and it appears in a swap that will have to be downloaded again from the disk, place in the swap data of another application. Horror.

Some users may object that in fact, after switching on swap, there are no problems, but for this we must thank the mechanism of lowmemorykiller, which regularly kills especially bloated and unused applications. Thanks to him, the device with 1 GB of memory can never reach the need to reset the data in the swap. It is also the reason why, unlike the Linux desktop, Android does not need a swap.

Verdict: a very stupid idea, the realization of which is fraught with serious lags."

This is exactly why I disabled it. I don't see the need for swap and would personally never use it either,but that said..I can easily enable it without it being on by default I think for those wanting to use swap.
 

bluesbvt

Member
Oct 5, 2017
6
0
1
I have disable swap (I believe,its been some time since I've actually worked on the kernel) I can re-enable it however. I will hopefully have some time soon to look more into this kernel.

That would be great, thanks! :D

---------- Post added 7th October 2017 at 12:29 AM ---------- Previous post was 6th October 2017 at 11:29 PM ----------

Quote from one site (Google Translate)
"Swap
Let's start with swap - the most absurd idea of ​​all that you can think of for use in smartphones. Its purpose is to create and connect a swap file, due to which it will be possible to free the usable space in the RAM. The idea in itself is, of course, sound, but only if it is a server that interactivity does not go anywhere. On a smartphone, the regularly used swap file will lead to non-illusory lags that result from misses past the cache - it's enough to imagine what will happen if the application tries to display one of its icons, and it appears in a swap that will have to be downloaded again from the disk, place in the swap data of another application. Horror.

Some users may object that in fact, after switching on swap, there are no problems, but for this we must thank the mechanism of lowmemorykiller, which regularly kills especially bloated and unused applications. Thanks to him, the device with 1 GB of memory can never reach the need to reset the data in the swap. It is also the reason why, unlike the Linux desktop, Android does not need a swap.

Verdict: a very stupid idea, the realization of which is fraught with serious lags."

I think that zRam support will be more useful.

Thanks for the reply! I've read about this already, but truth to be told, I'm pretty new to all this so the swap seemed like much simpler solution. And by the comments I've came accross, many users had benefits using it so I was willing to give it a shot...
Unfortunately, I'm not able to afford a new device at this time, so like I mentioned before, I'd like to make the most out of device and use it with as little lag as possible. Custom ROM and this kernel do the thing, but I was hoping to do something more in terms of lack of RAM.
Any advice welcome! :D
 

elhennig

Senior Member
Feb 21, 2011
956
231
73
Thanks for the reply! I've read about this already, but truth to be told, I'm pretty new to all this so the swap seemed like much simpler solution. And by the comments I've came accross, many users had benefits using it so I was willing to give it a shot...
Unfortunately, I'm not able to afford a new device at this time, so like I mentioned before, I'd like to make the most out of device and use it with as little lag as possible. Custom ROM and this kernel do the thing, but I was hoping to do something more in terms of lack of RAM.
Any advice welcome! :D

I think, using swap will not solve the problems you have when your device is not equipped with the RAM you need. It just moves the problem from memory to I/O and CPU and will lead to more battery usage.
In my opinion a good compromise between swap partitions and no swap is ZRAM that compresses memory of unused apps in the RAM and frees some bytes in order to have it available for other apps. Of course this also uses more CPU and hence more battery. But with limited hardware there is not much one can do...
 

spookcity138

Senior Member
Nov 9, 2015
1,860
2,556
153
Eindhoven
I think, using swap will not solve the problems you have when your device is not equipped with the RAM you need. It just moves the problem from memory to I/O and CPU and will lead to more battery usage.
In my opinion a good compromise between swap partitions and no swap is ZRAM that compresses memory of unused apps in the RAM and frees some bytes in order to have it available for other apps. Of course this also uses more CPU and hence more battery. But with limited hardware there is not much one can do...

I very much agree with this. Also, ZRAM is on my TODO list for this kernel.

Sent from my SM-G800F using Tapatalk
 

bluesbvt

Member
Oct 5, 2017
6
0
1
I think, using swap will not solve the problems you have when your device is not equipped with the RAM you need. It just moves the problem from memory to I/O and CPU and will lead to more battery usage.
In my opinion a good compromise between swap partitions and no swap is ZRAM that compresses memory of unused apps in the RAM and frees some bytes in order to have it available for other apps. Of course this also uses more CPU and hence more battery. But with limited hardware there is not much one can do...

I'm aware that hardware has its limit, but I was wondering how much improvement is possible to achieve with some extra tweaks....
Thanks for the information, I appreciate it! Hopefully one of the future updates will make it possible. :)
 

oro-jackson

Member
Aug 6, 2016
13
0
0
I'm having problems with LineageOS 14.1 G800F on using this Kernel. Both 1.5ghz and 1.6ghz causes bootloop BUT ONLY when the screen is off/phone locked. When the screen is on it doesn't reboot. I have yet to try older versions and I wipe art and cache. TIA for any help and thank you for sharing this Kernel!
 

spookcity138

Senior Member
Nov 9, 2015
1,860
2,556
153
Eindhoven
I'm having problems with LineageOS 14.1 G800F on using this Kernel. Both 1.5ghz and 1.6ghz causes bootloop BUT ONLY when the screen is off/phone locked. When the screen is on it doesn't reboot. I have yet to try older versions and I wipe art and cache. TIA for any help and thank you for sharing this Kernel!

Hmm,interesting. It seems as if perhaps you are one of the few who have this issue with the kernel. I have yet to have time to really try to figure it out. Is the anyway you can get a log and post it? It would be most helpful to me.
 

friscoboi

Senior Member
Oct 1, 2016
494
117
43
I'm having problems with LineageOS 14.1 G800F on using this Kernel. Both 1.5ghz and 1.6ghz causes bootloop BUT ONLY when the screen is off/phone locked. When the screen is on it doesn't reboot. I have yet to try older versions and I wipe art and cache. TIA for any help and thank you for sharing this Kernel!

For me, the 1,5 Version Works. Regular Version gives a bootloop.
 

spookcity138

Senior Member
Nov 9, 2015
1,860
2,556
153
Eindhoven
When I try to install this TWRP gives me an "Error status 1", "Device not supported"? I'm using an SM-G800Y. Please help.
Weird. You can get it to flash though by doing the following:
Open the kernel zip file (don't extract it) Then open the anykernel.sh file with a text editor. Find the line "do.devicecheck=1" near the top and change it to "do.devicecheck=0" Then save. This will skip the device check and allow it to install.

Sent from my SM-G800F using Tapatalk
 

Top Liked Posts

  • There are no posts matching your filters.
  • 18
    Code:
    /*
     * Your warranty is now void.
     *
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this kernel
     * before flashing it! YOU are choosing to make these modifications, DO NOT
     * point the finger at me for messing up your device.
     * this kernel is only for the S5 mini SM-G8OOF/M/Y (Exynos) Do Not Flash this on any other device!
     */

    19-10-2017 * Updated to v6.0 * Changes are in red or can be seen at the bottom of this post in the changelog: I am always applying patches to hopefully improve the kernel,so check out the "Patches and tweaks applied" section for a better view of the changes as well.

    Notes
    • ALWAYS read the "Known Issues" section before flashing. I will add issues I have noticed or have been told about. Some may be VERY important. If you fail to do this and experience an issue that is listed I can not help you!
    • SELinux is set to permissive in this kernel. You can change this to enforcing at boot if you wish via an app like Kernel Adiutor-Mod
    • About voltage control: Setting frequencies that are unstable are going to cause lockups,freezes and reboots. This is NOT a fault in the kernel. My suggestion is to move the voltages up or down slowly (+/- 25) until you find some stable voltages that you're happy with.
    • Enough people were having problems with the 1.6ghz overclocked version that I've decided to release a non overclocked (1.5ghz) build as well. I would recommend trying the 1.6ghz and only if you experience a bootloop or instability then use the 1.5ghz version. I will not keep older versions of the 1.5ghz build up. Only the latest.
    • Having troubles deciding on a CPU governor or an I/O scheduler? Here is an amazing guide. All credits to Saber. Be sure to hit the thanks button. He obviously put a lot of time into that.
    Features
    • Based on the latest Samsung kernel sources
    • Built an updated Sqlite3 (from version 3.9.2 -> 3.19.3 that will be pushed along with the kernel install (you can verify this by running "sqlite3 --version" in a terminal emulator before the new kernel install and then again after)
    • Compiled with self-built (ct-ng) UBERTC 8.0
    • Patched Linux to latest 3.4.113
    • Unlocked CPU frequencies: 200MHZ and 300MHZ
    • GPU overclocked to 600MHZ
    • CPU Overclocked to 1.6GHZ
    • CPU voltage control ( Max voltage =1500mV. Min voltage =600mV)
    • DriveDroid support (add sysfs entry for cdrom to LUNs)
    • Implemented zen-tune v4.5
    • Added CPU boost driver
    • Added PIE net scheduler
    • Added support for USB keyboards (You need This app)
    • Reduced vm_swappiness from 60 to 20
    • Added I/O scheduler switcher by sultanxda (changes the I/O scheduler for a specified request queue to Noop when the screen turns off in order to improve power consumption while the screen is off)
    • Added Fsync on/off
    • Added dynamic fsync
    • Added Dynamic management of dirty page writebacks (allows to have two different intervals for dirty page writebacks and to dynamically manage them when the system has been resumed (it's active) or when has been suspended - Not adjustable via Grarak's Kernel Adiutor app)
    • Proc: much faster /proc/vmstat
    • Full CIFS support ( Modules will be pushed with kernel install )
    • Introduced new flag WQ_POWER_EFFICIENT for power oriented workqueues ( Allows for power saving if selected in Kernel Adiutor ETC. )
    • Added /dev/frandom support ( It is yet to be implemented properly yet however )
    • Properly enabled faux123's powersuspend v2.5
    • Fading LED's
    • Enabled graphite
    • Enabled AIO
    • Readahead set to 512 (from 128 default)
    • Reverted "Enabled arch power" (There will be a switch to enable/disable this in the next build)
    • Many build flags for optimization
    • Added optimization flags for the GPU
    • Many more features being worked on and coming soon

    Added CPU governors
    - nightmare
    - wheatley
    - zzmoove
    - dancedance
    - darkness
    - hyper
    - lionheart
    - ondemandplus
    - bioshock
    - pegasusq
    - smartmax
    - alucard (by alucard24)
    - bluactive
    - intelliactive (by faux123)
    - intellidemand

    Added CPU hotplug governors
    - alucard hotplug (by alucard24)
    - intelliplug hotplug (by faux123)
    - thunderplug hotplug (by varun.chitre15)
    - MSM Sleeper hotplug
    - autoSMP hotplug

    Added IO schedulers
    - fiops
    - sio
    - zen
    - fifo
    - tripndroid
    - bfq-v7r8

    Added many TCP congestions
    - reno
    - vegas
    - westwood and more
    - Added the rest of the TCP congestions
    - Westwood is now default TCP


    Patches and tweaks applied include:

    - Updated ARM topology and added cpu_power driver
    - Input: Improve the events-per-packet estimate
    - block/partitions: optimize memory allocation in check_partition()
    - block: bfq-iosched: tuning for SSD (thanks to anarkia1976)
    - cpufreq: Move get_cpu_idle_time() to cpufreq.c (This is important for CPU governors to work better/more efficiently with our kernel version-3.4)
    - Fixed all the CPU governors to work properly with the Move get_cpu_idle_time
    - cpufreq: Introduce new relation for freq selection (It selects the frequency with the minimum euclidean distance to target. In case of equal distance between 2 frequencies, it will select the greater frequency)
    - cpufreq: conservative: Set MIN_LATENCY_MULTIPLIER to 20
    - cpufreq-ondemand-Set-MIN_LATENCY_MULTIPLIER-to-20
    - cpuidle-Get-typical-recent-sleep-interval
    - cpufreq: Persist cpufreq time in state data across hotplug
    - implement-LoUIS-API-for-cache-maintenance-operations
    - ARM-kernel-update-cpu_disable-to-use-cache-LoUIS-maintenance API
    - update-v7_setup-to-the-new-LoUIS-cache-main
    - USB-gadget Optimize-tx-path-for-better-performance
    - af_unix: speedup /proc/net/unix
    - net/socket.c: fix: warning: 'sock/sock1/sock2' may be used uninitialized in this function
    - fs/proc/array.c: make safe access to group_leader
    - lib/memcopy: use glibc version (the kernel's memcpy and memmove is very inefficient. But the glibc
    version is quite fast, in some cases it is 10 times faster than the kernel version)
    - lib/string: use glibc version (same as above)
    - lib/int_sqrt.c: optimize square root algorithm
    - readahead: make context readahead more conservative
    - sched-Fix-select_idle_sibling-bouncing-cow-syndrome
    - sched-Implement-smarter-wake-affine-logic
    - sched-Micro-optimize-the-smart-wake-affine-logic
    - sched: Reduce overestimating rq->avg_idle
    - power: make sync on suspend optional
    - tcp: tweaked for speed
    - writeback-fix-occasional-slow-sync
    - writeback-fix-writeback-cache-thrashing
    - wireless - bcmdhd - reduce scan dwell time to reduce power usage
    - bcmdhd reduce wakelocks
    - mutex-Queue-mutex-spinners-with-MCS-lock-to-reduce-cc
    - mutex-Make-more-scalable-by-doing-less-atomic-operations
    - ARM-use-generic-unaligned.h
    - Kconfig-enabled-unaligned-capability-for-ARM
    - decompressor-Enabled-unaligned-memory-access
    - Optimized-ARM-RWSEM-algorithm
    - ARM: Fixed negative idle stats for offline cpu
    - disabled debugfs[/COLOR]
    - mm: remove noisy remainder of the scan_unevictable interface
    CONFIG_HZ=100 (reverted commit)
    - Plus many more - Check my git repo for full details.

    Sources


    Known Issues
    • Setting alucard hotplug along with certain other governors at boot via kernel adiutor etc can cause a reboot after setting is applied. So be certain to set the "delay" time in kernel adiutor or similar to 10 seconds or more,so if you have this you are able to cancel and change after a reboot.
    • There is a chance of some settings being reset after flashing the kernel (quick setting,sound,statusbar etc.) This is rather insignificant and all settings that have been changed can be set back in minutes.

    Installation
    I HIGHLY recommend that you do a full backup before flashing this kernel. I am not responsible if you lose any or all of your data.

    1.Download "Spookcity_Kernel-N"
    2.Place the zip onto your phones storage
    3.Reboot into recovery (Volume-Up + Home + Power button)
    4.Select install
    5.Flash the downloaded kernel
    6.Go back a few times in TWRP Select wipe -> Advanced wipe and wipe Dalvik/Art cache and the cache partition.
    If you do not do this you are very likely to experience strange issues.You have been warned.Do not report problems if you did not do this.
    7.Reboot


    Code:
    Feedback can also be posted[URL="https://github.com/Spookcity/ROMS-G800F/issues/12"]-------> Here[/URL]
    Test builds will be released [URL="https://github.com/Spookcity/ROMS-G800F/issues/22"]-------> Here[/URL]

    Download the latest build

    Download older version
    Code:
    [URL="https://www.androidfilehost.com/?fid=745425885120759188"]Version 5.0[/URL]
    [URL="https://www.androidfilehost.com/?fid=889764386195920916"]Version 4.0[/URL]
    [URL="https://www.androidfilehost.com/?fid=673368273298972709"]Version 3.0[/URL]
    [URL="https://www.androidfilehost.com/?fid=889764386195913162"]Version 2.0[/URL]
    [URL="https://www.androidfilehost.com/?fid=889764386195911617"]Version 1.0[/URL]
    Huge credit and many thanks to:
    Hennymcc,Ayke,Psyafter,mirhciulica,ctxZ,DjSteve,CurtisMJ,osm0sis,Archidroid,Chet Kener,andip71,faux123,flar2,ZaneZam,anarkia1976,AndreiLux,Yank,Francisco Franco,Sultanxda,varun.chitre15

    Big thanks for testing and giving feedback:
    Oleggluk,StanleyNL,Mikahlo,Guntzog
    and any others as I'm sure I am forgetting people.

    CHANGELOG
    HTML:
    01-09-2017 - Released Version 6.0
    
    - Added MSM Sleeper hotplug
    - Reduced vm_swappiness from 60 to 20
    - Added intellidemand governor
    - Added autoSMP hotplug
    - Added CPU boost driver
    - Proc: much faster /proc/vmstat
    - Cpufreq: Persist cpufreq time in state data across hotplug
    - Reverted "enable arch power"
    - mm: remove noisy remainder of the scan_unevictable interface
    - net/socket.c: fix: warning: 'sock/sock1/sock2' may be used uninitialized in this function
    
    01-09-2017 - Released Version 5.0
    
    - Removed ROW I/O scheduler
    - Added I/O scheduler switcher by sultanxda
    - Added PIE net scheduler
    - Added support for USB keyboards
    - Properly enabled faux123's powersuspend v2.5
    - Added dynamic fsync
    - Added optimization flags for the GPU
    - Enabled AIO
    - Reverted a couple of HZ related commits
    - Added intelliactive governor
    - Added intelliplug hotplug driver 
    - Added thunderplug hotplug driver
    - Added Dynamic management of dirty page writebacks
    - Fixed voltage control on 1500MHZ version
    - Fixed alucard governor
    - Fixed ondemandplus governor
    - Fixed bluactive governor
    - ib/int_sqrt.c: optimize square root algorithm
    - af_unix: speedup /proc/net/unix
    - wireless - bcmdhd - reduce scan dwell time to reduce power usage
    - bcmdhd reduce wakelocks
    - readahead: make context readahead more conservative
    - block/partitions: optimize memory allocation in check_partition()
    - power: make sync on suspend optional
    - block: bfq-iosched: tuning for SSD
    
    05-08-2017 - Released Version 4.0
    
    - Added 1.5GHZ version
    - Added voltage control
    - DriveDroid support
    - Implemented zen-tune v4.5
    - Full CIFS support
    - Introduce new flag WQ_POWER_EFFICIENT for power oriented workqueues
    - Added Fsync on/off
    - Added ROW I/O sheduler
    - Added BFQ-v7r8 I/O scheduler for 3.4 kernel
    - Added Blu_active CPU governor
    - block: disabled add_random
    - tweaked build flags
    - many workqueue related patches
    - tcp: tweaked for speed
    - CONFIG_HZ=300
    - fs/proc/array.c: make safe access to group_leader
    - disabled debugfs
    
     19-07-2017 - Released Version 3.0
    
    -GPU overclocked to 600MHZ
    -Updated Sqlite3 to version  3.19.3 from 06-08-2017
    Added CPU governors
    -bioshock
    -pegasusq
    -smartmax
    -alucard
    -alucard hotplug
    -Added the rest of the TCP congestions
    -cpufreq: Move get_cpu_idle_time() to cpufreq.c
    -Fixed all the CPU governors to work properly with the Move get_cpu_idle_time
    -Added /dev/frandom support 
    -cpufreq: Introduce new relation for freq selection
    -lib/memcopy: use glibc version
    -lib/string: use glibc version
    -
     03-07-2017 - Released Version 2.0
    
    -GPU overclocked to 533MHZ
    Added CPU governors
    -dancedance
    -darkness
    -hyper
    -lionheart
    -ondemandplus
    Added IO schedulers
    -fifo
    -tripndroid
    Added many TCP congestions
    -reno
    -vegas
    -westwood
    -etc.
    
     26-06-2017 - Fix "unsupported device" when flashing in TWRP 3.1.1.0
    
     23-06-2017 - Initial release

    Enjoy!


    XDA:DevDB Information
    [KERNEL] [G800F/M/Y] Spookcity_Kernel-N (For all 7.x custom ROMS), Kernel for the Samsung Galaxy S5 Mini

    Contributors
    spookcity138
    Kernel Special Features:

    Version Information
    Status: Beta

    Created 2017-06-23
    Last Updated 2017-10-19
    9
    Updated to v4.0. See main post for the details.

    Enjoy!
    8
    Updated to v6.0. See main post for details
    Note: I have not had the time to look into and fix the issue that a few have with this kernel. My apologies. I will try my best to look into it soon. I just haven't had much time to work on this kernel recently. All of these commits are from 6 or so week ago so yeah.

    Enjoy!
    8
    Updated to v5.0. See main post for details.

    Enjoy!
    7
    New test build up. Hopefully some of these random reboot issues are fixed,fingers crossed. Download Here
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