yashsingh1/xdaforums huggingface dataset:
[HTC One X+] :
I decided the best way to test the IO Schedulers was to load the system, and see how well they could stand up to it. So I ran Stability Test (a free app in the play store) in classic mode to continuously load all four cores in the background. While that was running, I ran SD Card Tester (also free in the play store) for a 2GB run per scheduler, two times.

Results (in MB/s)

Pass 1 2
BFQ 9.93 9.98

CFQ 10.28 10.15

NOOP 10.17 10.13

SIO 10.25 10.08

V(R) 10.04 10.06

Deadline 10.09 10.13

Row 9.67 9.68

So from this, it looks like good old CFQ and NOOP do the best for writing data.

The test conditions are worth noting: Sync off; radios off; brightness at min; plugged into charger; freshly booted with one 'fake' pass to open all the required apps and warm up the system

2GB of data were written per test (28GB total), the whole test took 1h 7m, with 66 CPU passes and 336 RAM passes in the stability test app.

I DO NOT RECOMMEND OTHERS ABUSE THEIR DEVICE THIS WAY!
[HTC One X+] pradeepvizz:
no worries, GPU seems to be acting just like before(2.3). Also noticed that you have all the IO schedulers in the kernel, great work! Interested in testing ROW. Thanks a bunch!

---------- Post added at 08:11 PM ---------- Previous post was at 07:44 PM ----------

Awesome benchmarking stuff! while i noticed cfq doing as well as noop, i did not use it before. I think it is logical that we use cfq. I would not really know how cfq would perform under multitasking ( real-time - say background sync , music play & browsing ). I am going to test cfq and see how it works in usage. Would you want to set bfq as default rather than bfq - for me bfq has been little laggy compared to cfq/noop.

---------- Post added at 08:15 PM ---------- Previous post was at 08:11 PM ----------

Quick thing, i think you would have seen my post here http://xdaforums.com/showpost.php?p=41958348&postcount=473

The only odd thing i notice here is that read and write numbers does not seem match, for example

cfq showed up these numbers in Antutu for me - SD Card Write = 150 (19.2 MB/s) SD Card Read = 195 (34.5 MB/s) while this shows CFQ 10.28 10.15

---------- Post added at 08:22 PM ---------- Previous post was at 08:15 PM ----------

Lol, late realization - i guess that's because full load
[HTC One X+] :
The problem with tests like antutu, quadrant, cf bench, etc., is that the tests are too short, so it's not a good average, and this gives you massive variance between tests.

To benchmark effectively with these apps I recommend to do at least 10 passes, perhaps as many as 50 and then apply standard deviation to get a good idea of the true mean and spread of the data. One with minimal variance (i.e. good consistency) could be a better choice than one with a higher average but high variance.

I'll do some more tests to show what I'm on about later.
[HTC One X+] Notechis:
True... And it depends on some factors e.g. you do 10 tests in a short time, the temp will raise and the benchmarks drops down a lot

Gesendet von meinem HTC One X+ mit Tapatalk 2
[HTC One X+] pradeepvizz:
Hmm i get it... we sure have to do multiple rounds of benchmarking and the average it. I am thinking it might good to consider short IO's benchmarking too as the apps which we use won't usually do long time processing (except games, or at-least for my general daily use)

Right, CPU/GPU heavily depends on temperatures but i don't know if that would apply for IO's too? Do they? Little observation that i found was when benchmarking with powersave off/on. The powersave off gives approximately 0.5 % more scores in Antutu - 900 powersave on 905 powersave off. That kind of shows some connection between CPU and IO's, which also makes me derive that heating affects IO. I am curious to test the IO's under high CPU usage and see what happens.

I think mobiles don't have Direct Memory Access as in computers

PS: i am not an expert in hardware, just my few cents
[HTC One X+] :
Yep, IO is so slow that CPU can chill out, relax, have a beer, come back later, 'hey IO you ready to do your thing yet? No? I'll go get nachos,' so yeah, you won't find that throttling CPU has too much impact on it.
[HTC One X+] pradeepvizz:
:laugh::laugh::laugh:
[HTC One X+] :
v3.0 is here: http://d-h.st/iwK

CoreManager.apk is here: http://d-h.st/QhY

-New: Allows setting of the IO scheduler

-allows auto-hotplugging (apply using core setting at 0)

-after rebooting, remember to open/save+exit to restore your preferences

Please grant super-user permissions

Version 3.0 Notes

The first version was simply about getting together something that worked, the next version was all about experimenting with performance features. The Version 3 series represents hitting a point where the kernel features have been refined, well tested, and proven stable.

From this point I will be looking to make the kernel more user configurable. I've already added some options to the Core Manager app, and plan to facilitate access to

-GPU OC

-GPU decoupling

-smartmax governor parameters

-anything else I can think of!

My kernel config

-Slide to Wake [S2W]

-Optional hotplugging (automatic hotplugging is now default for faster boot)

-Power saving companion core not active when screen is on (prevents lags)

-Companion core active when screen is off (higher speed cores not allowed)

-User defined core activation (use the above app)

-low power core is prevented when awake, and the high-power quad-core is forbidden when the screen is off. This is to ensure performance when the screen is on, and power-saving when it is off

-smartmax governor by maxwen (tuned for performance)

-enabling more cores adjusts the cpu frequency governor parameters automatically

-when the camera is activated, a minimum of two cores will be available for smooth video recording

-added fast-charge to kernel (thanks maxwen)

-added BLX (thanks ezekeel)

-Available IO Schedulers: BFQ v6, CFQ (as default), Deadline, NOOP, SIO, ROW, and V(R).

-Miscelaneous tweaks: ticket based rwsem algorithm; Google's tcp proportion rate reduction algorithm; cifs; zcache: SLUB
[HTC One X+] pradeepvizz:
Flashed v3 :) Thanks for making CFQ as default!

Initial impressions, GPU throttling scales up little slower than before (2.2 prob).. have to play some games and see how it turns out.
[HTC One X+] adamkx7xdesire:
Sorry for noob question but what Read ahead size will be the best and why? Currently I've set 2048 and I don't know what exactly does it do and what are advantages and disadvantages... So please tell me :)
[HTC One X+] jizang:
how is the temperature on latest version
[HTC One X+] maxwen:
setting it that high is only good for benchmarks but not good for

"normal" use. Actually anything above 1024 makes not much sense

Using a high value here is one of the "hard-to-kill" urban legends

of android "tweaking" :)
[HTC One X+] pradeepvizz:
I seem to have a little issue... when music is played in background & suddenly a notification arrives, i seem to have a lag at that moment when the notification comes.. that's my initial observation, will report back more on it. This occurred for me when the phone is charging and has been playing music for in background (screen-off) , may be the phone took a moment to wake up?
[HTC One X+] Addicted2xda:
I have it with practically all ROMs / Kernels....
[HTC One X+] pradeepvizz:
LOL yeah, i remembered you :)
[HTC One X+] clitoridys:
Can we oc the cpu over 1,7ghz? Also how i can set the max of my cpu.. like 1,2ghz or 1ghz? With wich app?
[HTC One X+] :
Can you do me a favour and try this one: http://d-h.st/6Jb
[HTC One X+] laurab4369:
What are the difference with BFQ v6, CFQ, Deadline, NOOP, SIO, ROW, and V(R) ?
[HTC One X+] adamkx7xdesire:
https://www.vincentkong.com/wiki/android/android-io-schedulers/
[HTC One X+] pradeepvizz:
of-course yes! is this for the music lag thingy?

---------- Post added at 02:54 PM ---------- Previous post was at 02:44 PM ----------

Nope, this kernel does not have a CPU OC, but why do you need to have more than 1.7 Ghz? we seem to be doing fine with powersave at 1.3 Ghz.

Setting CPU speed of Tegra 3 is not as easy as other cpu's, bedalus probably can advise about what will stick with his kernel - but i never had the need to do that.. the powersave mode is at 1.3Ghz and non-power save is at 1.7 Ghz. With hot-plugging, performance is very good.

i have faux's app - Faux123 Kernel Enhancement and i can see that it works. other apps which aims for Tegra 3 should work.
[HTC One X+] clitoridys:
what is hot plug in?

Inviato dal mio HTC One X+ con Tapatalk 2
[HTC One X+] Notechis:
Read the OP ?

Hotplugging means auto selection of cores ...

@ bedalus

This version is smooth and it is a cool idea to select the scheduler within your apk...

There is still for me the minor problem with the 3 cores for me ? Should I provide you anything ?
[HTC One X+] :
Yes, I think it's time we sorted that out. I will provide a new kernel for you to help diagnose this issue
[HTC One X+] pradeepvizz:
Apologies, the notification sound issue seems to be because of the audio player i tried the stock audio player and it works fine there.

Infact i can't really be sure of that my audio app is creating the problem or something else as it does not happen when beats is switched off.

This happens both in on/offscreeen with this audio player app - JetAudio Plus. it had a recent update too.
[HTC One X+] raymon73:
Also only 3 cores , but it runs like hell Thx for the great kernel releases.
[HTC One X+] pradeepvizz:
Could you please tell me the command to find out the tegra variant?
[HTC One X+] maxwen:
there are only 2 variants for the X+ and the diff is marginal

(-25 UV by default)

dont know if bedalus merged it from me but you can try

cat /sys/kernel/debug/t3_variant
[HTC One X+] :
[MENTION=4968352]Notechis[/MENTION] [MENTION=2567903]raymon73[/MENTION], can you try this to see if the three cores issue is resolved? http://d-h.st/XK4
[HTC One X+] pradeepvizz:
You are the best!
[HTC One X+] raymon73:
Yes all cores working with your latest test kernel , Thx , you are one quick developer.
[HTC One X+] pradeepvizz:
Thanks maxwen, i don't think this kernel has it! was just little curious as a X-HTC One X user :)
[HTC One X+] :
Can you also check if you can limit to just one core for me?
[HTC One X+] raymon73:
No that is not working ,all cores stay on
[HTC One X+] :
edit: removed!

Here, try this one.

Also, this one might be good for anyone who has ever had any music lags when the screen was off, as I've removed some of the stock frequency throttling code that seems redundant now since I prevent the high power CPU when the screen is off.

So if you're one of the people who've ever had an issue with music, please test! Much appreciated :)
[HTC One X+] raymon73:
Sorry can't try now , I am not home now , will test tonight , Thx
[HTC One X+] :
DO NOT TRY!

will update asap
[HTC One X+] adamkx7xdesire:
I've flashed and as soon as possible play music on screen off.. result one lag.

Then I decided to force auto sync and play music on screen off.. while syncing there were a lot of noticeable lags... but when syncing has done they gone.

Now sometimes a single lag appears...

This is what I can say after 10min of testing...

Thx for your help :) I'm sure that you will solve this problem :)

Edit: "DO NOT TRY! " LOL xD
[HTC One X+] :
Can you flash back to the previous version, or keep your phone on charge until a new test version arrives? You may suffer a SOD
[HTC One X+] adamkx7xdesire:
Chill I've just back to v3.0 :)
[HTC One X+] :
This one I tested for a reasonable time myself.

I think I improved performance, and I hopefully fixed the music lags, and the three core issue for those who were having it.

Dev host appears to be down at the mo, so see the file attached to this post.

Do NOT test if you want your alarm to definitely go off in the morning!

Edit: dev host is back http://d-h.st/7D9

(Same file)
[HTC One X+] Notechis:
Hi,

got still 3 .with hotplugging most times, manual doesnt work.

rgds
[HTC One X+] :
That's the same as before then? There's still more things I can try.
[HTC One X+] Notechis:
Yes. Seems the same

Gesendet von meinem HTC One X+ mit Tapatalk 2
[HTC One X+] pradeepvizz:
I don't think my notification lag is related to the kernel, but i would try this now!
[HTC One X+] :
What Rom are you running? I'm going to install it myself
[HTC One X+] Notechis:
Insert Coin
[HTC One X+] Notechis:
Will change the ROM,too and see what will happen...

Gesendet von meinem HTC One X+ mit Tapatalk 2
[HTC One X+] :
Ok, I'll wait till you've tried first
[HTC One X+] Notechis:
It is ROM related. Flashed another ROM and everything is fine, maybe another Superuser apk solved the problem

Gesendet von meinem HTC One X+ mit Tapatalk 2
[HTC One X+] saibz:
I'm willing to test it, just tell me what I need to do :o
[HTC One X+] :
It'd be nice to get some more people interested in testing too.

I've got it working how I like. But I'm aware that people like to be able to customise, so I'm going to add a sysfs interface so people can decide how many CPUs they want active. I'll post a link to a test version soon.
[HTC One X+] :
Download available

link removed

This kernel has now got a sysfs interface. You can decide how many cores you want active

echo 1 > /sys/class/misc/cpusallowed/cpusallowed for one core

echo 2 > /sys/class/misc/cpusallowed/cpusallowed for two cores

echo 3 > /sys/class/misc/cpusallowed/cpusallowed for three cores

echo 4 > /sys/class/misc/cpusallowed/cpusallowed for four cores

It is necessary to sleep the screen if you want to reduce the number of cores, but not if you want to go up.

For me, I'm happy limiting the device to 1 cpu. It's enough power for what I use the device for.

Issues: Audio playback when the screen is off is lame. Something to fix for the future!
[HTC One X+] saibz:
I'm going to try it right now. Does disabling cores mean it will be "permanent" regardless of load until I change it again?

edit: I did the disabling of cores in the terminal emulator, is that correct? I chose two cores. By the way it's smooth so far (using Nova Launcher).
[HTC One X+] saibz:
I lose network connection after screen turns off and I turn it on again, but WiFi stays connected. It has already happened twice but it can simply be my network having problems, I hope the attachment helps.

edit: It has not happened again, so it's probably a problem with my carrier.

edit again: Lost connection for the third time.
[HTC One X+] saibz:
It keeps on happening and I'll have to go back to nik3r's and check if it makes a difference... Attached a new logcat, I hope I'm doing it right.

edit: After trying out elitekernel again I can confirm that it doesn't lose network connectivity but hxore does (but not WiFi).
[HTC One X+] :
That's very helpful, thanks very much!

EDIT: yeah, there's a problem with the low-power cpu enter and exit code. I've definitely missed something important out. I think I need to try a totally different approach.
[HTC One X+] saibz:
Re: [KERNEL] hXORe version 1 [INTERNATIONAL]

Glad I helped, looking forward to your update!
[HTC One X+] :
http://d-h.st/15A

New version. This should fix the issues from before.

sysfs commands

echo 1 > /sys/class/misc/cpusallowed/cpusallowed for one core

echo 2 > /sys/class/misc/cpusallowed/cpusallowed for two cores

echo 3 > /sys/class/misc/cpusallowed/cpusallowed for three cores

echo 4 > /sys/class/misc/cpusallowed/cpusallowed for four cores

Changelog

-You don't need to sleep the screen to change the number of cores any more

-Audio playback is fixed

-Connectivity should be working now.

I'm using just two cores and I'm very happy with the result.
[HTC One X+] saibz:
Flashed it again, it's the weekend so unless there's a serious issue I might not be able to give an update soon :)
[HTC One X+] saibz:
Confirmed that the connectivity issue is fixed, also the audio lag on screen-off is gone. Is there a way to check how many cores are currently enabled? Disabling two cores significantly reduced idle battery drain, I'll try enabling 4 cores again for testing.
[HTC One X+] nealkoy:
Re: [KERNEL] hXORe version 1 [INTERNATIONAL]

quite interesting for me as I only use my phone for browsing, messaging and calls maybe two cores is just what I need to conserve battery as well... hmmmm curious to know the results of your tests

:D

Sent from my HTC One X+
[HTC One X+] nik3r:
How about this?

echo 0 > /sys/power/pnpmgr/hotplug/min_on_cpus
echo 2 > /sys/power/pnpmgr/hotplug/max_on_cpus

Same effect, a lot less hassle :D
[HTC One X+] nealkoy:
Re: [KERNEL] hXORe version 1 [INTERNATIONAL]

damn nik3r! you just saved the waiting part there :thumbup: haha

Sent from my HTC One X+
[HTC One X+] :
Re: [KERNEL] hXORe version 1 [INTERNATIONAL]

Good God. I know I promised ineptitude but this is a new personal best. :p
[HTC One X+] :
Re: [KERNEL] hXORe version 1 [INTERNATIONAL]

I use this app: https://play.google.com/store/apps/details?id=jp.takke.cpustats
[HTC One X+] saibz:
Does that mean I can use nik3r's code and it will have a similar effect? I don't quite get it but I'm assuming the first command will enable the companion core (minimum 0 core?) and the next code will enable a maximum of two cores?

I tried setting max 2 cores but it says no such file or directory.
[HTC One X+] :
Re: [KERNEL] hXORe version 1 [INTERNATIONAL]

Yes, you can use the first line to allow the companion core. The second line may need clarification from nik3r, as you said, the file doesn't exist.

Personally I don't want the companion core while the device is awake, and I don't want hot plugging either, so I'm happy with my approach. However, I'll investigate nik3r's method because there may be a simple fix to enable control over setting the max.
[HTC One X+] saibz:
Ok thanks! But CPU stats is still showing me 3-4 active cores occasionally, I tried using your commands in adb shell and terminal emulator. Did I miss something?
[HTC One X+] nik3r:
My bad, I assumed too much lol

echo 0 > /sys/power/pnpmgr/hotplug/min_on_cpus
echo 2 > /sys/power/pnpmgr/hotplug/cpu_user_cap

It should work, or there's

/sys/power/cpunum_floor
/sys/power/cpunum_ceiling

This has no effect on my latest kernel though, either it won't work with mpdecision or I broke it with power saving :D

I bet either will work on stock kernel without problems.
[HTC One X+] :
Okay, I'll have to have a look at this ROM and see what it's doing. Thanks for the heads-up
[HTC One X+] Notechis:
Maybe cause of new base or superuser

Gesendet von meinem HTC One X+ mit Tapatalk 2
[HTC One X+] Stephen:
Moderator Update

Posts have been deleted as rom comparison threads are not allowed.
[HTC One X+] :
Yep, ok I got insert coin to behave itself. I'm not sure how or why, but what I did worked.

My kernel was already installed, so I didn't need to flash anything again. So I clean installed the Rom, when it booted and after I'd logged into Google, I ran the odex script via adb shell. When it rebooted I then restored all my apps via titanium backup. I deleted all the scripts in init.d then uninstalled super-user. I then rebooted to recovery and flashed the super-user that comes with hasoon's toolkit. I then rebooted and ran the odex script again. When it rebooted again, I saw my apps were upgrading... When it booted I saw that hotplugging was working, and when I opened core manager (and granted it super user permissions) I was able to set the number of cores / auto-hotplugging.
[HTC One X+] Notechis:
Tomorrow I will try some things, it has to be a minor bug. I tried to install it clean but it is always the same. Will try the odexed version , soon.... And I will change the superuser... With the actual Rom even Trickster works fine with hotplugging e.g.

Gesendet von meinem HTC One X+ mit Tapatalk 2
[HTC One X+] Notechis:
Some more Infos

Installed other Superuser apk. Now I am able to set 3 or 4 cores.

When screen off hotplugging is working, only screen on,not.

Init.d cleaning didn't take affect...

Now I try odexing

Gesendet von meinem HTC One X+ mit Tapatalk 2
[HTC One X+] Notechis:
I found a solution, but I need a bit support...

There is a folder called "Elitekernel" located on my phone

It contains 2 files elitekernel.sh and something with delayed.sh

Those files override the settings of the ROM / APK

Currently I am not able to delete those files, because after rebooting they are restored .

I checked Init.d scripts and data/local/user for scripts , but I cannot find anything .

How can I delete those files ? Any suggestions ?
[HTC One X+] somemadcaaant:
No point in trying to delete the elite scripts, the kernel uses those for the module injection and defaults for governors/cpu.
[HTC One X+] :
Yeah, the Elitekernel scripts are from Nik3r's kernel injector, which he very kindly explained to me how to use. I haven't renamed them, because I don't want to pretend they are my own work! I've modified them a bit though. I'll take a look at them and examine what they are doing again. I haven't looked at them in a while, but I remember they do bring up all the CPUs to set some parameters, so there may be something going on there.
[HTC One X+] :
http://d-h.st/dan

here's a version that needs testing. It's been built to try and squeeze a little more performance out again.
[HTC One X+] lbaquerizo:
Ok sir

Enviado desde mi HTC One X+ usando Tapatalk 2
[HTC One X+] Notechis:
After I updatet to newest Version and updatet Trickster, everything is working perfect....

Later I will test coremanager

Gesendet von meinem HTC One X+ mit Tapatalk 2
[HTC One X+] :
That's good. Are you back on insert coin?
[HTC One X+] Notechis:
Yes, back on insert coin...
[HTC One X+] :
link: http://d-h.st/Rlh

This test version has some more performance improvements. I've added hysteresis to core unplugging. It takes three requests to pull a core down. This should reduce the chance of a core being unplugged only to be plugged back in again shortly after.

I've also tuned performance for when only one core is active, by making it aggressively scale to the top frequency. I may have gone too far this time!

I've very happy with the performance at this point, but I also feel like it's now too power hungry, so it still needs work. Please test!

Edit: Sorry give me a few minutes, I broke the low power core frequency handling. I fixed it up again, so new test version will also have better low power behaviour (I haven't tested music with Beats on yet).

Edit: Link up!
[HTC One X+] pradeepvizz:
i am the first to download today :p
[HTC One X+] adamkx7xdesire:
After few minutes of testing I haven't noticed any lags while playing music(after boot & forced sync)!!! amazing... I'll tell you tomorrow If they show up and how it goes with RealRacing 3(on this game the previous kernels were sometimes very smooth and laggy which was I think random but very annoying).. Thank you bedalus for your excellent work!

Edit: unfortunately lags while playing music still exists ;/ but I think it's a little bit better now ;)

Bedalus maybe you should make a test version for me with the highest frequency and activated cores on screen off just to figure out if this is the problem? Maybe my device is kinda broken or something?
[HTC One X+] Notechis:
Hi, for me the old issues are back with Test v2.

So I am back to v1

Gesendet von meinem HTC One X+ mit Tapatalk 2
[HTC One X+] :
The number of cores is fixed at three again?
[HTC One X+] Notechis:
Four most times except screen off. But no big deal... Lets see the next ROM Update....

Gesendet von meinem HTC One X+ mit Tapatalk 2
[HTC One X+] jarein95:
this kernel can work in the Htc One X??
[HTC One X+] :
No, if you try it will brick your device
[HTC One X+] jarein95:
So, I dont try!! XD
[HTC One X+] DannyAb:
Can u please post CoreManager.apk file ?

I'm here to test hXORe coming from stock kernel :D
[HTC One X+] :
Go to the download link in the op
[HTC One X+] DannyAb:
Ok so i downladed it, what's the best # of cores to have activated for extreme Performance yet not too heavy on the battery ?

Thank you bedalus :)
[HTC One X+] reaper90:
autohotplugging (core slider to 0) so kernel manages cores depending on workload