There are probably only two ways you ended up here in this thread:
1) You were browsing XDA and came across this thread and thought "Hey, that's that? Let's take a look..."
2) You were looking for an iotop port for Android
If 2) applies to you, then the you were doing the exact same this as I was doing some days ago. The only difference is.... when I was searching there was no such port
But for debugging purposes on my Tab, I needed such a tool. So I started writing my own
So, in case you're not familiar with iotop, iotop is a tool for examining I/O loads and and I/O usage on per-process basis. It shows the total amount of read and written bytes as well as the current read/write speeds.
First up, the script is not yet as powerful as the one for PCs. It's still WIP but does the main tasks it's supposed to.
If you have an idea and know how to realize it, please feel free to fork my repo and create a pull request. I will most likely be merging it happily.
Requirements
Root
Kernel with I/O accounting enabled
The following configs must be set:
CONFIG_TASKSTATS
CONFIG_TASK_IO_ACCOUNTING
CONFIG_TASK_XACCT
CONFIG_TASK_DELAY_ACCT
If your kernel does not support I/O accounting, you may politely ask your kernel dev to enable it in his defconfig. But always remember, it's his call and you have to accept whatever he's gonna do. There is nothing you can do about it.
Usage
You can execute the script from wherever you like, be it your sdcard, data partition or system partition. But for easier use, I would recommend you to place it in your /system/bin folder.
(for this example, I assume you've placed it in /system/bin)
To run it, you must be root (---> $su )
Then you can run the actual script
Code:
iotop.sh
You don't like the units being KB? How about MB?
Code:
iotop.sh -m
Still not what you want? Bytes then?
Code:
iotop.sh -b
Found your desired unit? Great! But those entries with no I/O activity are quite annoying, right? So let's get rid of them!
Code:
iotop.sh --only
You don't want to see all those empty entries, but still want to know how many were skipped? No problem:
Code:
iotop-sh --only --show-skips
Still need some help? Check this:
Code:
iotop.sh --help
Download
So, in case you still want to know where to get it from, the github project is located HERE
The raw script can be found HERE
Help
If you want to join the fun, just let me know!
XDA:DevDB Information
iotop for Android, Tool/Utility for all devices (see above for details)
Contributors
laufersteppenwolf
Version Information
Status: Beta
Created 2014-10-19
Last Updated 2014-10-18
Reserved
cool,great work.thanx
This is pretty awesome! Now I can find out what or if something is wrong with my external sd card, and why power amp sometimes has problems.
Thank you very much! Schwabenpower!
IRKONIK said:
This is pretty awesome! Now I can find out what or if something is wrong with my external sd card, and why power amp sometimes has problems.
Thank you very much! Schwabenpower!
Click to expand...
Click to collapse
But make sure your kernel supports I/O accounting
BTW, please don't call me a "Schwabe"... It almost hurts
It seems like it does not.
And if you're not a Schwabe, then you are a Badenser. I don't anything against you. Well, nothing that helps. :laugh:
Can some one please tell me which kernels support this io accounting ?
cause i tried many , without any success.
I'm on Sammy Galaxy s3 i9300 and CM11
The result look's this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
But the system running many many process...
OS:Android 5.1.1
Phone:Google Nexus 4
Related
Q&A for [APP][5.0] Moto G Minfree Fixer
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [APP][5.0] Moto G Minfree Fixer. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
BlueFlame4 said:
Hi everyone,
I wrote a small app for all those having RAM/reloading issues on 5.0/CM12 based ROMs. The source is here and a direct link to the pre-compiled app can be found here or attached to this post.
But what does this app do?
In short, the cause of frequent app redraws seems to be wrongly set permissions of two files which avoid the Low Memory Killer to work as intended. Apart from that the default values in those files are set too high. A long explanation can be found here.
This app fixes both problems and automates basically everything after the device has booted up: It applies right permissions to /sys/module/lowmemorykiller/parameters/minfree (660) and writes reasonable LMK values into it. It is meant as a convenient way to fix the problem without having to hassle around with shell scripts.
I wrote it modular, so auto apply and LMK value writing can be switched off, of course
Screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I really appreciate your feedback!
PS: I recommend to compile it yourself so you don't have to trust some random forum guy.
Already received user feedback:
[1]: http://forum.xda-developers.com/showpost.php?p=58473358&postcount=1269
[2]: http://forum.xda-developers.com/showpost.php?p=58472049&postcount=1266
Click to expand...
Click to collapse
Pls need help , after I installed the app , tal to aww yeah button and this close "This app was stop" why?
Hi, I uploaded an updated version in the main thread - please check it out.
Cheers!
I installed the 07/Feb/2015 Nightly (cm-12-20150207-NIGHTLY-peregrine.zip) to my moto g lte (XT1039) and the permissions are still the weird 0220 on both files (minfree, adj).
Did I miss something or is it right?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Info:
~ This project was originally started by me a long time ago, its been in different locations as different things, and its been written in many different styles.
~ So what is it? Well its a bash script/scripts/project/modular-project (this is how fragmented it is ) that were working on to be an all in one shell based application, currently we have a tonne of features in it and alot in our minds but we just need to get it down in the script.
~ So why post about it here if its still super alpha and not even 100% working!? Well cause we need developer help, anyone who wants can pm me or post here and ill add you with read access to our repo's , from there on you can create pull requests and help us refactor and clean up code.
~ Currently the project maintainers consist of me and @DeicPro , theres also @luca020400 who's contributed to cleaning up alot of the code. So we would love anybodys help! Even if you cant be on github constantly creating pull requests, at least pm me and ask to join the "dev" group since we can chill + it looks super cool to have a busy project
Source:
https://github.com/HybridMod
Setup:
~ This is the setup guide, you can either use the google repo tool guide and setup and use via that way, however you wont be able to do anything via git that way... The recommended way is below.
Recommended way:
Code:
mkdir -p ~/Scripts/HybridMod/
Code:
cd ~/Scripts/HybridMod/
Code:
git clone https://github.com/HybridMod/roomservice
Code:
cd roomservice
Code:
./repo_sync.sh
Now the repo_sync.sh will take care of cloning all the necessary scripts and etc...
Additional Notes:
Anyways thanks for the help if you do help, and enjoy!
banner-credits: idk , found on the google imgs, plis dont sue me ;-;
FAQ
Q: Do penguins have knees?
A: http://bfy.tw/LLo
reserved ^^
With Google releasing monthly patches (which I believe is a good thing!), it's become a bit of a chore to install updates, especially so if, like me, you have a modified device stopping you installing OTA updates.
I wanted to do something to make it a bit quicker, so I made Nexus Flash! I guess you can think of it as minimal ADB & Fastboot packaged with a GUI.
I've decided I don't like the GUI layout, and I'm pretty sure most will agree, so I've already started working a new layout, bug fixes, and adding some extra features which I'm sure some may find helpful like an update manager (so you don't have to go to Github every time there's a new version), another example is a way to boot an image file too, for instance, Chainfire's CF-Auto-Root.
Currently, there isn't much validation of user input, so please only use it as intended for now. It shouldn't break your device if you don't use it correctly since ADB has built in measures to validate files to some degree at least.
However, I have to say, this program is provided without ANY warranty or guarantee. Using this program is at your own risk. I have tested this on my own Nexus 5X and it works perfectly.
The source code is released under the GNU GPL (General Public Licence) and can be found on Github.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Prerequisites for Windows:
You'll need the .Net framework 4.5.2 installed (Windows 10 already has this).
Prerequisites for Android device:
Your device must have an unlocked bootloader.
You must have USB debugging enabled.
You'll also need the Android ADB USB drivers installed too.
Guides can be easily found by searching for them, there's plenty of them around!
Links:
Binary - Github releases
Source code - Github
Issues or feature suggestions - please direct them to Github (preferred). Or simply create a comment on this thread.
Release notes
Version 1.0.0
Initial release!
I've had to delay writing the new update for this (because life gets in the way), but I promise I will get an update out ASAP!
Features of this CUSTOMIZED STOCK ROM for SM-S820L
Rooted
Busyboxed
Sqlite Added
init.d Support with Tweaks
DeKNOXed
DeBloated
Zipaligned
DeODEXed
System ADB Mount-Remount Added
su.d Support
Kernel Modded with Various Features
Installation will Retain Your Data using ODIN
Thank You! To Assayyed for your Kitchen.:good:
- If you have a request for this ROM in a different installation format, PM me on this site or Email me at: [email protected]
---------->>>>>>> I Removed the ROM file because of the error warning from Karitoriki. I hope to rebuild and fix the errors and will post an UPDATE as soon as possible! Thanks!!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Kernel seems to be missing a few features of the stock, and installed BusyBox corrupt
As mentioned above, there does seem to be some issues with the kernel and root methods.
Everything else works like a charm, as it did when it was stock, however, V4A no longer takes to the device with the kernel (https://forum.xda-developers.com/ga...ustomized-kernel-sm-s820l-finally-to-t3513050) (Non-ADB root), and Orbot no longer properly connects. All signs point to this being because the kernel you made lacks the NetFilter feature, needed for VPN's and Proxies.
In other news, I would assist you in correcting this, and building a CM port from your ROM, but my PC's hard drive blew and I'm currently looking for a replacement, as well as more RAM and a CPU that at least runs OpenGL 2.
I do have my hands on a completely stock firmware for the SM-S820L and I will see what I can do with it from there on my device.
Karitoriki said:
As mentioned above, there does seem to be some issues with the kernel and root methods.
Everything else works like a charm, as it did when it was stock, however, V4A no longer takes to the device with the kernel (https://forum.xda-developers.com/ga...ustomized-kernel-sm-s820l-finally-to-t3513050) (Non-ADB root), and Orbot no longer properly connects. All signs point to this being because the kernel you made lacks the NetFilter feature, needed for VPN's and Proxies.
In other news, I would assist you in correcting this, and building a CM port from your ROM, but my PC's hard drive blew and I'm currently looking for a replacement, as well as more RAM and a CPU that at least runs OpenGL 2.
I do have my hands on a completely stock firmware for the SM-S820L and I will see what I can do with it from there on my device.
Click to expand...
Click to collapse
Hey there!! Thanks for the info. I wonder if I uploaded the wrong project because I have this Kernel installed in my phone and I use PIA vpn which works just fine. The Busybox does seem to be messed up because when I tried to install an update Stericson version, I got a bunch of errors.
I use Assayyed Kitchen to mod the stock components for both Kernel and ROMs. If you know your way around this Kitchen or have other methods to fix these issues I would be grateful for the help.
My email is [email protected]
Feel free to email me or just shoot me PMs on this site. We can make things happen:good::laugh:
Any news on getting this fixed? Would be cool to have Knox and bloat killed.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Ever wanted to compile/build an android kernel ? But don't want to learn all the commands ? Then here comes a tool for you "Kernel Buildinator". Now, no need to learn any commands. This tool is focused on automating as much part as possible of Kernel compiling process, from setting up build environment and downloading required packages to making a flash-able kernel zip. This Script can be used by both NOOB's and PRO's I hope you will like my work.
What features this tool provide ?
⦿ Automated Build Environment Setup
⦿ Automated CCACHE Configuration
⦿ Cloning Kernel Source & Toolchains
⦿ Compiling The Kernel (OFC )
⦿ Making A Flashable Kernel Zip
How's this different from other kernel building scripts ?
As far as i know, to use those scripts we need to manually download kernel source and toolchains and some of the scripts doesn't work for everyone because they are made by devs for their personal use. I might be wrong though.
Instructions to use :-
1. Clone the script from Github
2. Give execution permission to all scripts inside Kernel_Buildinator using "chmod +x" (Only if required)
3. Start the script using bash "setup.sh"
4. Fill all the asked questions
5. Sit Back and see the compilation happening
Note: Only "setup.sh" should be used to start the process or you might break something
FAQ:-
Q. What is a kernel ?
=> This might help you: KERNEL
Q. Does this support Clang ?
=> Yes, it does support Clang and can be selected while on the setup screen
Q. I am getting errors, what to do ?
=> If the error is related to the script then please let me know and i will try to fix it. But if it is related to kernel source then you have to solve it yourself as this tool/script is only intended to build/compile the kernel.
Source Code:https://github.com/SiddharthBharadwaj/Kernel_Buildinator
I would like to thank :
@osm0sis for Anykernel
@rebenok90x for https://github.com/rebenok90x/kernel-builder
@dhruvcburman for helping in debugging
Sorry if i forgot someone !!!
Liked My Work ? Want to support via donating ? Then just donate me a build server or You can Donate via :
PayPal: https://www.paypal.me/SiddharthBharadwajYT
UPI(Only for Indian Users): [email protected]
Reserved
Noice