[Q] How do I change the default I/O scheduler to noop? - Sony Ericsson Xperia Neo, Pro

Not through an app. There's no way to be sure its running.
Please provide a script or something. Or commands in terminal emulator.

Related

[Q] Configure and test Zram

I compiled a kernel with SWAP and Zram capability and set up a compcache in RAM.
Is there a way to test the compcache capability?
Entering "free" in Terminal reports that Zram is used but not much.
How can I configure Zram, so it is used way more often?
Furthermore:
is xmvmalloc necessary for compcache?
I only use lzo_compress and decomress and zram modules.
€dit:
I set up zram as described here:
http://code.google.com/p/compcache/wiki/CompilingAndUsingNew
Entering "free" shows, that I have active zram.
But I didn't initialise with rzscontrol with init command as I don't have it.
Is zram working without rzscontrol?
free shows, that there is a little data in the zram.
nobody?

[GSM/CDMA -- IO OPTIMIZATION] EternityProject's V(R) I/O Scheduler Kernel Module

Welcome to another EternityProject Thread....
What do we have here?
It is the V(R) Scheduler! V(R) Scheduler is a reinforcement schedule in which the number of responses necessary to produce reinforcement varies from trial to trial.
It will produce an high rate of responding greatest activity of all schedules and responding rate is high and stable.
What do we need?
1. Willing to download something and pulling it on your phone
2. Absolutely no patience.
Download:
V(R) Scheduler Kernel Module: HERE
How to activate it:
Method 1:
1. Download it and.. cp /sdcard/downloads/vr-iosched.ko /tmp/
2. Insert it, so... insmod /tmp/vr-iosched.ko
3. Activate it. I use AnTuTu CPU Master Free: Advanced, I/O Scheduler: vr - then Apply.
Method 1 won't persist after a reboot.
Method 2:
1. Download it and.. cp /sdcard/downloads/vr-iosched.ko /tmp/
2. Use this script (AS ROOT on an app like Script Manager) for insmodding and setting it at boot time:
Code:
insmod /tmp/vr-iosched.ko
echo vr > /sys/block/mmcblk0/queue/scheduler
echo vr > /sys/block/mmcblk1/queue/scheduler
Method 2 persists after a reboot if the script is set on Script Manager (or similar) to be executed as ROOT and at every boot.
The Eternity Project Team Manager,
--kholk
Oh cool! Downloading it now!
When I run the script it says that the file cannot be found.
Where do I have to place the file?
Sorry but how do u download it... im on my phone and it just takes me to the website with a bunch of codings
Edit: ok i got it and i did method 2 with script manager... how do i kjnow if it is runnig?
Sent from my DROID RAZR using xda premium
Aashrey99 said:
When I run the script it says that the file cannot be found.
Where do I have to place the file?
Click to expand...
Click to collapse
You have to place the file in /tmp/
blkghost22 said:
Sorry but how do u download it... im on my phone and it just takes me to the website with a bunch of codings
Edit: ok i got it and i did method 2 with script manager... how do i kjnow if it is runnig?
Sent from my DROID RAZR using xda premium
Click to expand...
Click to collapse
You can check that it is running in two ways:
1. Download AnTuTu CPU Master Free and if the selcted iosched governor is vr it is working.
2. Open a root shell and type:
cat /sys/block/mmcblk0/queue/scheduler
cat /sys/block/mmcblk1/queue/scheduler
If the output contains "[vr]" and other schedulers (not closed in []) then it is working.
Note that the first method can give bad results on the "test" because I don't know if it is using the same method I'm using to apply the V(R) iosched to the disks. In any case, both will work (applying with CPU Master or with my script).
My scripts just makes sure that the scheduler is applied to both the internal eMMC and the external SDCard.
How do i download it every time i click on the link it opens the binary code!
therazrguy said:
How do i download it every time i click on the link it opens the binary code!
Click to expand...
Click to collapse
Right Click, "Save link as"
Working perfectly on XT910K
Much more responsive than before
Thanks!
Added script with ROM toolbox
Neutron90 said:
Right Click, "Save link as"
Click to expand...
Click to collapse
does it improve my benchmark performance?
Mine improved, since I/O scores and cpu scores go right up.
And scrolling is much more smoother....less spit second lags...
Keep up the good work Kholk!

[Q] How to run blktrace on Android

Hi,
I am trying to run blktrace on my Samsung Galaxy S3; and I compiled my own Android ROM from source code found here: git://github.com/Root-Box/platform_manifest.git (it is Android 4.1.2). I have changed certain configurations so that blktrace is included in the ROM. The linux kernel I am using is 3.0.31-CM
However, when ever I try to run blktrace, I got the following error:
BLKTRACESETUP(2) /dev/block/mmcblk0p1 failed: 25/Not a typewriter.
After using strace to trace the system call, I found that ioctl on /dev/block/mmcblk0p1 with cmd BLKTRACESETUP failed, however I couldn't figure out why.
So I am wondering, did you guys successfully run blktrace on Android; and if so, how did you do that? Also, does anyone has any thoughts on what might went run in my situation?
Thanks a lot.
Suli
So I finally figure this out:
1. In order to use blktrace, the kernel has to be compiled with block tracing support
kernel hacking => tracer => enabling IO tracer
CONFIG_BLKDEV_IO_TRACE
I also enabled a few other tracing options just to be safe
2. In order to use blktrace, all cores have to be online
I observed that blktrace could do ioctl for cpu0 successfully, but not for other cores.
Kernel blktrace facility is creating the trace[n] file in sysfs for the n-th online cpu core which blktrace tries to open.
Usually, only cpu0 is online and others are offline.
That's why blktrace failed opening trace[1, 2, 3] and exited.
So cpufreq governor needs to be changed into "performance" mode
After these two tweaks, it is working
yangsuli said:
So I finally figure this out:
1. In order to use blktrace, the kernel has to be compiled with block tracing support
kernel hacking => tracer => enabling IO tracer
CONFIG_BLKDEV_IO_TRACE
I also enabled a few other tracing options just to be safe
2. In order to use blktrace, all cores have to be online
I observed that blktrace could do ioctl for cpu0 successfully, but not for other cores.
Kernel blktrace facility is creating the trace[n] file in sysfs for the n-th online cpu core which blktrace tries to open.
Usually, only cpu0 is online and others are offline.
That's why blktrace failed opening trace[1, 2, 3] and exited.
So cpufreq governor needs to be changed into "performance" mode
After these two tweaks, it is working
Click to expand...
Click to collapse
I tried to use echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor, however, I still got the error on my nexus 4:
[email protected]:/ # blktrace -d /dev/block/mmcblk0p23 -o sdcard/
Thread 3 failed open /sys/kernel/debug/block/mmcblk0p23/trace3: 2/No such file or directory
Thread 2 failed open /sys/kernel/debug/block/mmcblk0p23/trace2: 2/No such file or directory
Thread 1 failed open /sys/kernel/debug/block/mmcblk0p23/trace1: 2/No such file or directory
FAILED to start thread on CPU 1: 1/Operation not permitted
FAILED to start thread on CPU 2: 1/Operation not permitted
FAILED to start thread on CPU 3: 1/Operation not permitted
request for help
yangsuli said:
So I finally figure this out:
1. In order to use blktrace, the kernel has to be compiled with block tracing support
kernel hacking => tracer => enabling IO tracer
CONFIG_BLKDEV_IO_TRACE
I also enabled a few other tracing options just to be safe
2. In order to use blktrace, all cores have to be online
I observed that blktrace could do ioctl for cpu0 successfully, but not for other cores.
Kernel blktrace facility is creating the trace[n] file in sysfs for the n-th online cpu core which blktrace tries to open.
Usually, only cpu0 is online and others are offline.
That's why blktrace failed opening trace[1, 2, 3] and exited.
So cpufreq governor needs to be changed into "performance" mode
After these two tweaks, it is working
Click to expand...
Click to collapse
Could you tell me how to make cpufreq governor changed into performance mode on nexus
yangsuli said:
Hi,
I am trying to run blktrace on my Samsung Galaxy S3; and I compiled my own Android ROM from source code found here: git://github.com/Root-Box/platform_manifest.git (it is Android 4.1.2). I have changed certain configurations so that blktrace is included in the ROM. The linux kernel I am using is 3.0.31-CM
However, when ever I try to run blktrace, I got the following error:
BLKTRACESETUP(2) /dev/block/mmcblk0p1 failed: 25/Not a typewriter.
After using strace to trace the system call, I found that ioctl on /dev/block/mmcblk0p1 with cmd BLKTRACESETUP failed, however I couldn't figure out why.
So I am wondering, did you guys successfully run blktrace on Android; and if so, how did you do that? Also, does anyone has any thoughts on what might went run in my situation?
Thanks a lot.
Suli
Click to expand...
Click to collapse
Hi, Yangsuli,
For the first step, how to enable I/O tracer please? Just add CONFIG_BLKDEV_IO_TRACE=y in .config? WHat else did you add to the config file?
And Could you tell me how to make cpufreq governor changed into performance mode?
Many thanks!

[Q] Default settings of the ondemand CPUFreq governor parameters in SAMSUNG S4

I would like to know the default settings of the parameters of ondemand CPUFreq governor that SAMSUNG has choosen for my SAMSUNG S4. I have not flashed my phone with any custom kernel. I have been reading about dynamic frequency scaling support in Linux Kernel and found out that CPUFreq subsystem implements this functionality with the help of the governors.
I found the governor for the Core 0 of my device as
:~$ adb shell cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
ondemand
then I started learning about ondemand governor. I found in kernel documentation, which states that following are the parameters for ondemand governor.
•sampling_rate
•sampling_rate_min
•up_threshold
•ignore_nice_load
•sampling_down_factor
•powersave_bias
next, I was trying to figure out where/how can I access these parameters, I read here
and some other places as well that these parameters are found in /sys/devices/system/cpu/cpu?/cpufreq/ondemand directory.
Now, In my case for SAMSUNG S4, I can not see any directory named as ondemand inside /sys/devices/system/cpu/cpu0/cpufreq . I tried a rooted SAMSUNG S3 of a friend aswell, and I could not see the directory in that aswell.
My intention is to keep the default settings/not change the kernel and just to get to know what are the default settings of the CPUFreq governor, I purchased the phone with ?
P.S. this is my first post on xda-developer forums, so please pardon me if I ignored some important rule.

problem with manually hotplugging cpuX in rooted android device

Hi every one
I have a Lenovo vibe p1a42 which is rooted properly along with the SuperSU.
I'm going to write a custom userspace governor, using cpufreq and hotplug facility but I have some problem with online and some other entries in sysfs.
I have 8 cores and it is possible to change the corresponding entries in sysfs. I can successfully selecting the userspace governor by:
Code:
adb shell
su
echo userspace > /sys/devices/system/cpu/cpuX/cpufreq/scaling_governor
I do the last line for each core and then I set the valid frequency by writing to corresponding scaling_setspeed files.
I know it is possible to dynamically on/off each core by writing 1/0 to the corresponding /sys/devices/system/cpu/cpuX/online entry.
However, I cannot change the status of some processor to online by:
Code:
echo "1" > /sys/devices/system/cpu/cpuX/online
two cores of eight are always off and it seems that it cann't be controlled, manually, in this manner.
I know there is some kind of hotplug manager in android devices which activate appropriate core numbers according to the load.
How can I get ride of such hotplug manager and get full access to all cores due to the maximum performance?

Categories

Resources