[KERNEL][14/07] NX-Kernel v1.4.2

Search This thread

chasmodo

Senior Member
Dec 28, 2011
12,403
41,133
Novi Sad
After compiling a kernel with ROW and ZEN schedulers I hit a small bump that I cannot explain, Neo.

What I did was:

1. copied your zen-iosched.c and row-iosched.c over into /block

2. inserted this into Kconfig.iosched

Code:
-----------------------------------snip--------------------------------------------

config IOSCHED_ROW
	tristate "ROW I/O scheduler"
	---help---
	  The ROW I/O scheduler gives priority to READ requests over the
	  WRITE requests when dispatching, without starving WRITE requests.
	  Requests are kept in priority queues. Dispatching is done in a RR
	  manner when the dispatch quantum for each queue is calculated
	  according to queue priority.
	  Most suitable for mobile devices.

config IOSCHED_ZEN
	tristate "Zen I/O scheduler"
	default y
	---help---
	  FCFS, dispatches are back-inserted, deadlines ensure fairness.
	  Should work best with devices where there is no travel delay.

choice
-----------------------------------snip--------------------------------------------

        config DEFAULT_ROW
		bool "ROW" if IOSCHED_ROW=y
		help
		  The ROW I/O scheduler gives priority to READ requests
		  over the WRITE requests when dispatching, without starving
		  WRITE requests. Requests are kept in priority queues.
		  Dispatching is done in a RR manner when the dispatch quantum
		  for each queue is defined according to queue priority.
		  Most suitable for mobile devices.

	config DEFAULT_ZEN
		bool "ZEN" if IOSCHED_ZEN=y

endchoice
-----------------------------------snip--------------------------------------------

config DEFAULT_IOSCHED
	string
	default "deadline" if DEFAULT_DEADLINE
	default "cfq" if DEFAULT_CFQ
	default "sio" if DEFAULT_SIO
	default "noop" if DEFAULT_NOOP
        default "row" if DEFAULT_ROW
	default "zen" if DEFAULT_ZEN

endmenu

endif

3. added this to Makefile

Code:
-----------------------------------snip--------------------------------------------

obj-$(CONFIG_IOSCHED_SIO)      += sio-iosched.o
obj-$(CONFIG_IOSCHED_ROW)      += row-iosched.o
obj-$(CONFIG_IOSCHED_ZEN)      += zen-iosched.o

-----------------------------------snip--------------------------------------------

Kernel compiled fine, no errors, but after flashing only ZEN appears in the scheduler menu.

What am I missing here?
 

giokspy

Senior Member
Dec 1, 2010
397
49
Rethymno Greece
Απ: [KERNEL][3.0.69][4.2.2 - CM/PA/AOKP] DH-Kernel v1.2 [18/03][LINARO Kernel is here

For me 100-1400 and eith undervolting work very solid. No reboots no black screen. On latest stunner and helly beam. I think no issues on 100mhz(950mV is same woth 200mhz)
Sent from my Galaxy Note
 

BleuZ

Senior Member
Oct 26, 2011
180
61
The Netherlands
Apparently this doesn't work for the SuperNexus ROM (which is AOSP-based). Doesn't boot. Any thoughts on this?

I've tried wiping cache / dalvik. Now fixing permissions to see if that helps.
 
Last edited:

neobuddy89

Recognized Developer / Recognized Contributor
Mar 13, 2011
5,410
24,062
Mumbai
After compiling a kernel with ROW and ZEN schedulers I hit a small bump that I cannot explain, Neo.

What I did was:

1. copied your zen-iosched.c and row-iosched.c over into /block

2. inserted this into Kconfig.iosched

Code:
-----------------------------------snip--------------------------------------------

config IOSCHED_ROW
	tristate "ROW I/O scheduler"
	---help---
	  The ROW I/O scheduler gives priority to READ requests over the
	  WRITE requests when dispatching, without starving WRITE requests.
	  Requests are kept in priority queues. Dispatching is done in a RR
	  manner when the dispatch quantum for each queue is calculated
	  according to queue priority.
	  Most suitable for mobile devices.

config IOSCHED_ZEN
	tristate "Zen I/O scheduler"
	default y
	---help---
	  FCFS, dispatches are back-inserted, deadlines ensure fairness.
	  Should work best with devices where there is no travel delay.

choice
-----------------------------------snip--------------------------------------------

        config DEFAULT_ROW
		bool "ROW" if IOSCHED_ROW=y
		help
		  The ROW I/O scheduler gives priority to READ requests
		  over the WRITE requests when dispatching, without starving
		  WRITE requests. Requests are kept in priority queues.
		  Dispatching is done in a RR manner when the dispatch quantum
		  for each queue is defined according to queue priority.
		  Most suitable for mobile devices.

	config DEFAULT_ZEN
		bool "ZEN" if IOSCHED_ZEN=y

endchoice
-----------------------------------snip--------------------------------------------

config DEFAULT_IOSCHED
	string
	default "deadline" if DEFAULT_DEADLINE
	default "cfq" if DEFAULT_CFQ
	default "sio" if DEFAULT_SIO
	default "noop" if DEFAULT_NOOP
        default "row" if DEFAULT_ROW
	default "zen" if DEFAULT_ZEN

endmenu

endif

3. added this to Makefile

Code:
-----------------------------------snip--------------------------------------------

obj-$(CONFIG_IOSCHED_SIO)      += sio-iosched.o
obj-$(CONFIG_IOSCHED_ROW)      += row-iosched.o
obj-$(CONFIG_IOSCHED_ZEN)      += zen-iosched.o

-----------------------------------snip--------------------------------------------

Kernel compiled fine, no errors, but after flashing only ZEN appears in the scheduler menu.

What am I missing here?

IOSCHEDs are tricky.
Did you made these commits:
https://github.com/neobuddy89/andro...mmit/5f69d0717ee4bae939319382cfcd9f254e5c2dd1

If not, do it.
 

AA1973

Senior Member
AW: [KERNEL][3.0.69][4.2.2 - CM/PA/AOKP] DH-Kernel v1.2 [18/03][LINARO Kernel is here

Apparently this doesn't work for the SuperNexus ROM (which is AOSP-based). Doesn't boot. Any thoughts on this?

I've tried wiping cache / dalvik. Now fixing permissions to see if that helps.

It simply won't work. Supernexus ROM is from 19/02 and comes with old Mali support (r3p0) and may not support the newer r3p1 Mali.
Either you flash a more recent ROM with r3p1 support (compiled after 23/02), then you could use DH kernel or you flash an older kernel from chasmodo's repository with doesn't say *new Mali*.
 

medkintos

Senior Member
Jan 1, 2013
76
32
Jakarta
Re: [KERNEL][3.0.69][4.2.2 - CM/PA/AOKP] DH-Kernel v1.2 [18/03][LINARO Kernel is here

flash DH v1.2 and yeah it's so smooth man!
and i love the network optimisation, so stable on my cellular network. i got HSPA+ instead standard HSDPA:D:thumbup:

Sent from my GT-N7000 using xda app-developers app
 

hardtheory

Senior Member
Apr 14, 2010
225
30
hi, neo,

i experiencing random reboot while using the phone, browsing the web for example. i'm on hyper governor, BFQ, no overclock, min CPU freq : 200 mhz. im on CM 10.1 nightly of the day. hope the new version will fix this :fingers-crossed:. thx anyway for this great kernel.
 

AA1973

Senior Member
AW: [KERNEL][3.0.69][4.2.2 - CM/PA/AOKP] DH-Kernel v1.2 [18/03][LINARO Kernel is here

@neobuddy89
I might be on the wrong track, but could those 2 lines in sysctl.conf be of any use?

vm.oom_kill_allocating_task = 1
vm.panic_on_oom = 1

Both are disabled by default, from what I saw in ROM Toolbox > Performance > Kernel tweaks.
I have enabled them for round about 2 hours+ now and didn't encounter any reboots anymore.
Wrong track?
 

Galaxtus

Senior Member
Oct 12, 2010
2,685
2,313
-82.540604,29.472649
Re: [KERNEL][3.0.69][4.2.2 - CM/PA/AOKP] DH-Kernel v1.2 [18/03][LINARO Kernel is here

I haven't changed anything major, only clocked at 1200 max and 200 min with Hyper and Noop :D nothing is wrong here. I only use 1600 when required :D
 

neobuddy89

Recognized Developer / Recognized Contributor
Mar 13, 2011
5,410
24,062
Mumbai
hi, neo,

i experiencing random reboot while using the phone, browsing the web for example. i'm on hyper governor, BFQ, no overclock, min CPU freq : 200 mhz. im on CM 10.1 nightly of the day. hope the new version will fix this :fingers-crossed:. thx anyway for this great kernel.

I am still recoding cpufreq.
However, as I see random reboot reported only on Asylum CM ? is it?
If yes, are any init.d tweak or build.prop tweak installed? they may be causing dispute/mismatch with kernel settings.
 
  • Like
Reactions: Macrint and AA1973

fifi570

Senior Member
Re: [KERNEL][3.0.69][4.2.2 - CM/PA/AOKP] DH-Kernel v1.2 [18/03][LINARO Kernel is here

I am still recoding cpufreq.
However, as I see random reboot reported only on Asylum CM ? is it?
If yes, are any init.d tweak or build.prop tweak installed? they may be causing dispute/mismatch with kernel settings.

Me too with PA 3+ :( ... With smartass v2 when i plug to my PC ...

Envoyé depuis mon GT-N7000 avec Tapatalk
 

hellborne

Senior Member
Mar 21, 2012
72
20
Patrai
Απ: [KERNEL][3.0.69][4.2.2 - CM/PA/AOKP] DH-Kernel v1.2 [18/03][LINARO Kernel is here

I had a reboot today.. first time after 3 days of use... I'm using asylum 18/3
1200-200mhz
smartassv2 and bfq..
Keep up the good work my friend.. dh is so close to perfection.. :thumbup:
Στάλθηκε από το GT-N7000 μου
 

Top Liked Posts