yashsingh1/xdaforums huggingface dataset:
[Asus Transformer TF700] MiM81:
Hi there

I use cromi-x with f2fs for my internal /data.

I have two questions:

1)

Does there exist a special f2fs version for a _that v10 kernel and if so, where can I find it?

I found _that v9 oc from the f2fs-thread and it works for me, but if I try to flash the "normal" _that10 I get an android encryption error. I of course try this while using the f2fs enabled TWRP from the f2fs thread!

2)

How exactly do you others measure your f2fs performance?

I use androbench and I change the size for read and write samples to 128 mb before I start testing.

I'm not sure if I should do this, I do so because I sometimes got ridiculous random write speed results when I left this at the original 2 mb (500 mb/sec for example).

I think this is due to caching effects, I don't know...

When I set it to 128 mb, I get 0.5 mb/sec random write speed with stock rom. Sadly I know this for sure, since I had to unbrick my device yesterday. No f2fs in this case of course.

When I am on _that v9 oc I get 1 mb/sec with f2fs (not more)

But when I use hundsbuah v3.4.5 oc (which I also found in the f2fs-thread) I get 30(!) mb/sec.

Is that normal?
[Asus Transformer TF700] _that:
No.

You need a preinit script that modifies the fstab accordingly. The recent ROMs from sbdags and lj50036 include these preinit scripts. Or you need to repackage the kernel with a ramdisk with a modified fstab.

I didn't measure f2fs performance at all. :) But if you get unrealistically high write speeds, it's most probably due to fsync being disabled.
[Asus Transformer TF700] MiM81:
Mh, okay,... so Cromi-X isn't recent enough? There is just an option to use your kernel v8 in the Aroma Installer. When I used ext4, I flashed v10 but I cannot do this while using f2fs. Any chance to get a repacked v10 without having to use a kitkat rom?

*What* write speeds would be realistic? I need something to compare with. Is 30 mb/sec realistic? Or the 1mb/sec which I get with your kernel v9...? :confused:

edit: is *all* I have to do to edit the fstab?

So I have to unpack the kernel, mount -o loop the ramdisk as filesystem somewhere, go to etc/fstab and edit the data entry to be mounted as f2fs?

If so, I think I can do it on my own... :)
[Asus Transformer TF700] MiM81:
Oh wow, I read through your tutorial on how to unpack and repack a kernel... much to complicated for me ;)

sbdags wrote

... so I decided I will stick with the kernel I have ;)

I thought it would be way easier. So thank you for doing all this so often for us :)
[Asus Transformer TF700] _that:
Changelog for the upcoming version 11:

- enable tethering via dock USB port (untested), see http://xdaforums.com/showpost.php?p=52917184&postcount=2740

- fix for the Towelroot exploit

- lots of f2fs updates from mainline kernel, thanks to [MENTION=2747551]wenchien[/MENTION]

- new BFQ (budget fair queueing) I/O scheduler from http://algo.ing.unimo.it/people/paolo/disk_sched/

- added FTDI USB serial support (for Arduino fans)

- exFAT filesystem support from Samsung

ETA: when it's done. :)
[Asus Transformer TF700] _that:
Version 11

Version 11 is here!

- enable tethering via dock USB port (untested), see http://xdaforums.com/showpost.php?p=52917184&postcount=2740

- fix for the Towelroot exploit

- lots of f2fs updates from mainline kernel, thanks to [MENTION=2747551]wenchien[/MENTION]

- new BFQ (budget fair queueing) I/O scheduler from http://algo.ing.unimo.it/people/paolo/disk_sched/

- added FTDI USB serial support (for Arduino fans)

- exFAT filesystem support from Samsung

Flashable ZIP: View attachment kernel-that11.zip

As usual, this kernel is compatible "out of the box" with the stock ROM and stock-derived ROMs such as CROMi-X. If you're running CROMBi-kk or ZOMBi-X, just wait for the next version of these ROMs to include this kernel update.

Source code: https://github.com/that1/android_kernel_asus_tf700t/releases/tag/release-that11 - Note that if you release a self-compiled kernel based on my sources, it's your responsibility to comply with the GPL - at the minimum you must include a link to the specific commit that represents the source version you used to compile.
[Asus Transformer TF700] sbdags:
Which won't be long! :)
[Asus Transformer TF700] sziggins:
Hi,

Thanks for the kernel! Compiled from your sources and I am using it on CROMBi-kk RC3 with your blobs' guide. Working great till now, interesting that new scheduler, not tried the others changes though.

Cheers.
[Asus Transformer TF700] LetMeKnow:
Very nice score...:good: If you have time, would you please run the antutu v5 test on your current setup? I am really interested to see the multitask on the CPU score. My is around 5000+ and would like to know others' users setup on that area. Thanks in advance...:D
[Asus Transformer TF700] sziggins:
Hi,

Seems your setup is much better in that area you are interested in. I am getting around 4k on multitask with DALVIK or ART on CROMBi-kk RC3 or R1 and either with my compilation or sbdag's embedded _that's v11.
[Asus Transformer TF700] kansasboy001:
Could you possibly upload your modified kernel for others to use?
[Asus Transformer TF700] sziggins:
Hi kansasboy001,

There is a misunderstanding. I've never said that I modified _that's kernel. I just used a toolchain to compile it from _that's github sources. I use Christopher83's Cross Compiler Toolchains. Builds with Linaro GCC 4.7.x for Cortex-A9 CPU are compiling the kernel with no issues. Now about that, LetMeKnow has a relative thread and he posted some things to pay attention to. IMHO it is interesting that discussion about toolcbains and you can look further if you like.

Hope it's clear now. :)
[Asus Transformer TF700] kansasboy001:
You didn't modify it but you did use linaro toolchain. I believe that _that does not use linaro in his official releases.
[Asus Transformer TF700] _that:
Correct. I'm using the boring standard Android toolchain (GCC 4.7) that is known to work.

Remember that most code is executed in user mode, so any toolchain-level optimization experiments are more rewarding when you compile Android with it, not the kernel.
[Asus Transformer TF700] kansasboy001:
[MENTION=4878287]_that[/MENTION] How do we get this working with f2fs and cromi-x 5.4 on internal?
[Asus Transformer TF700] _that:
Isn't it already included with the ROM?
[Asus Transformer TF700] kansasboy001:
No cromix includes v4 and v8 kernels. There is a modified v9 from the f2fs thread that works. I extracted the preint files from that kernel and made a separate zip that allowed f2fs on the v10 kernel with out the encryption unsuccessful error. When I try it with 11 I get encryption unsuccessful, unless I use my f2fs zip, but if I use my zip, internal storage won't mount.
[Asus Transformer TF700] _that:
You should be able to run v11 with the latest preinit files from CROMBI-kk and probably an additional one to copy cromi-x-specific ramdisk files.
[Asus Transformer TF700] kansasboy001:
Ok I will extract the crombi-kk preinit files. What is the additional on that I need?
[Asus Transformer TF700] _that:
There may be other changes in the CROMi-X ramdisk compared to my almost-stock ramdisk, so you probably need to write a small additional script that copies those changes to /.
[Asus Transformer TF700] kansasboy001:
Ok
[Asus Transformer TF700] TAGTRAUM:
What is the best Scheduler/Governor combo???.....Use Interactive/ROW on Xenogenesis for now, any ideas better??? Thanks for advance :cyclops:
[Asus Transformer TF700] _that:
Try the others and tell me. :)
[Asus Transformer TF700] rawkusx:
MY TF700 is running 3..1.10.-10.6.1.14.10-that7-tcptest-oc+ and has recently started rebooting randomly. If it is off the charger, and I connect it, it will suddenly reboots.

Any idea what may be causing this? I cleared the cache and dalvik cache.
[Asus Transformer TF700] _that:
Try to reproduce it with the current version. If it still occurs, pull /proc/last_kmsg after such an unexpected reboot, maybe it contains an interesting error message.
[Asus Transformer TF700] woodsonmh:
I went back to early days of clean rom before scotts big leap. His early work had gotten me to 4700 quadrant score max. I was thrilled to be getting 4700 then and i am thrilled to be getting 4900 now. Particularly because this rom is far better than the old jb builds .

_that im glad i gave this kernal a try and im pleased with the results.

Thanks

Woody
[Asus Transformer TF700] lartomar2002:
Ok, re ran Quadrant with everything set to performance using Asus settings and STP, I did not stop any back ground apps and fdync is not disabled (because I do not know how :( ) and getting scores around 4600 so I guess that is pretty good. The only thing I npticed differently from other sbdags roms using _that's kernels is the I/O is very low. I have the scheduler set to row.
[Asus Transformer TF700] Mike3.14159:
Take it back, found the ‘...../fsync_control/fsync_disabled’ file, opened it with text editor and all I saw was a ‘1’.

Not sure what is meant by ‘ (echo 0>....)’ in the op but if I change the value to ‘0’ instead of '1' will that be like changing the value from true to false????
[Asus Transformer TF700] new_convert:
download the free app in play store called "Trickster MOD". You can toggle fsync and change many many other things there.
[Asus Transformer TF700] woodsonmh:
I'll try to get this correct. This is not a custom rom . This is kernal hack on top of stock jb 4.2 from asus. Sbdags is working on a rom which includes many more changes than the kernel. Even then the underlying code is asus jb . When you load up sbdags cleanrom you are given the choose of what kernel you want to use. The kernel is only a part of the goal of improvement to stock roms . _Thats kernels are included in the choses. So is the stock and hudsputh (sp ) kernels.

_Thats working on improving his kernel as are others. If sbdags so desires he will include this kernel or an improved version and others if available.

There is no way anyone should expect this to compare with cleanromi . They are not the same.

Clean is based on the asus rom . The advantage is a lot of things like cameras and Bluetooth should work with few adjustments

.

Other roms may be based on stock and still others come from pure android. The pure android roms often have to adapt to the hardware of the manufacturer . Often things like cameras and Bluetooth don't work, until the programmers figure it all out. Many people don't like stock based roms. They Prefer android based roms for speed a a pure android experience.

However scott the original developer of cleanerom has developed a very good stock based rom. Scott originally dev the 300 rom and thats why they are so related. After few weeks on 700 scott just about baged it all, he even posted that if he didn't see improvement in a few days then he was through. Hardware created huge problems, one of which was io. He then started to get small improvements.

He then had his eureka moment. Thats when io improved. I've been very happy with scotts work from day one and have used nothing else.. Scott moved on and his work was picked up by sbdags and he has proven his ability to continue to improve cleanrom. When sbdags gets cleanrom dev for 4.2 i will be using the new clean and very possibly a kernel from _that's.

Woody
[Asus Transformer TF700] Tylorw1:
Installed your kernal on the stock 4.2.1 and it runs much smoother. Nice job _That :D

Tylor

Rom: Stock 4.2.1 Rooted.

UPDATE FOR TF700 USERS!!! AND THE 4.2.1 UPDATE

http://xdaforums.com/showthread.php?t=2204100
[Asus Transformer TF700] lartomar2002:
If I wish to return to the stock kernel do I just reflash the rom?
[Asus Transformer TF700] Tylorw1:
That would be the only way ATM as there is no plain stock kernal flash file available.

Tylor

Rom: Stock 4.2.1 Rooted.

UPDATE FOR TF700 USERS!!! AND THE 4.2.1 UPDATE

http://xdaforums.com/showthread.php?t=2204100
[Asus Transformer TF700] Mike3.14159:
You can also open a cmd window and type "echo 0 > sys/class/misc/fsynccontrol/fsync_enabled" if you don't want to use the app. "Trickster MOD" will do the same thing and toggles the setting easily, just have to set on boot or will revert after reboot. And type "echo 1 > /sys/....." to re-enable.

---------- Post added at 01:04 PM ---------- Previous post was at 01:02 PM ----------

Mean't to open up a terminal emulator window on your phone.
[Asus Transformer TF700] woodsonmh:
I have to type su for superuser at prompt first.
[Asus Transformer TF700] Mike3.14159:
My bad! Forgot to say that you needed to add that first.

Thanks for the correction!
[Asus Transformer TF700] uberbania:
Is there a better program than trickster to tweak the governors? I like using conservative, but I find the sampling rate value won't go as low as I want it to go (the minimum I can get with that2 using trickster is 200,000). Anything else work, or is there a way to change the governor so it will allow me to set a value lower than that?

Much appreciated,

Kevin.
[Asus Transformer TF700] buhohitr:
It's not the tool, it's the kernel, if you try hunds kernel it probably more flexible with adjustment/tunning.
[Asus Transformer TF700] _that:
The minimum sampling rate of ondemand depends on the CPU's latency for clock speed transitions. Do you have any info how long Tegra 3 needs to change clock speed? And how long does a switch from LP to G cluster take?
[Asus Transformer TF700] uberbania:
I have pretty much no idea how long it takes tegra to change speeds or how long lp to g takes. Actually, no idea at all. I'm interested in gaining more insight, though. Just want to find little ways to squeeze some more time doing things on the tablet between charges, that's all.
[Asus Transformer TF700] _that:
Data2SD Add-on

This add-on (if it works) detects at boot time if a microSD card with a second partition is inserted. If not, nothing will change. Otherwise, it expects that this second partition is formatted as ext4 and will mount it as your new /data partition.The /data partition includes /data/media, which is the backing storage for the emulated internal SD card. Your real internal data partition is mounted as /datai, and the internal /data/media (emulated SD card) is accessible as /sdcardi.

(WARNING: This is a totally untested alpha release. I developed this on my ROM2SD setup, then modified it for normal Data2SD and packed it into a ZIP. Nobody has ever flashed this, including me. Do not install this unless you are a ROM developer or tester. :)) Update: Several brave people have now tested this and claim that it works. :good:

The add-on is installed into /system/boot - whenever you reinstall your ROM (which wipes /system), you need to reinstall this package afterwards.
[Asus Transformer TF700] huppe:
Booted up with correct mount points. No problems here. :)

/dev/block/mmcblk1p2 /data
/dev/block/mmcblk0p8 /datai
[Asus Transformer TF700] Hundsbuah:
wrong thread :D
[Asus Transformer TF700] MHotovec:
Is this the same "_that kernel" the SDBags includes as an option in Cromi-X (currently RC2), or is this a different one with different/more up to date mods?
[Asus Transformer TF700] _that:
This is exactly the same kernel that sbdags is using in CROMi-X. He also has a second version with some additional files in the ramdisk to make the kernel work on the TF300 and the Prime. My next release will also include these files.
[Asus Transformer TF700] ariadnejro:
The data2sd mod seems to be running fine. However, the internal storage (sdcardi) doesn't appear in settings-storage or in file managers like Solid Explorer.

I have a question. Does this mod work only with your kernel or could it work also with other kernels like hundsbuah's?
[Asus Transformer TF700] _that:
Yes, the internal storage is only usable with file managers that allow browsing the whole file system.

Currently the add-on works only with my kernel, but you can ask Hundsbuah to put my init in his ramdisk (and rename the original init to init-android), then it works also with his.
[Asus Transformer TF700] ariadnejro:
Thank you for your quick answer. I think I didn't make myself clear. I can access sdcardi from every app I have tried and Solid Explorer can browse /storage/sdcardi but i doesn't "see" it in the device list. Same thing in Settings-Storage, two entries for the microSD partitions but no entry for internal storage.

Anyway it's a minor issue. Thank you for your work, I was waiting for data2sd implementation to switch to 4.2.
[Asus Transformer TF700] Hundsbuah:
what files do i have to add that it works on tf300t and tf201 devices?
[Asus Transformer TF700] _that:
The init.nn.rc files where nn != 04. :)

While you are at it, you could move init to init-android and use my init, then your kernel automatically supports ramdisk customization, e.g. for Data2SD.
[Asus Transformer TF700] Hundsbuah:
great job! i extracted your ramdisk, renamed my init to init-android used your init file repacked it and flashed it. works without any problem until now! plug & play! :good:
[Asus Transformer TF700] KinetiClutch:
Can this be installed on top of a CROMI install or will it need a fresh install?
[Asus Transformer TF700] callousparade:
just flipped on up to cromx 4.3RC2 with data2sd (from 3.4.7cromi with data2sd). No problems at all so far, androbench showing the superspeeds i'm so used to now.

i assume that backup/restores still work the same, flash mountdata2sd and backup in TWRP?
[Asus Transformer TF700] buhohitr:
_that, is it possible you can fix the "mountdata2sd zip" to work with JB 4.2?

Thanks.
[Asus Transformer TF700] _that:
I've never used it, but I can take a look. What is broken?
[Asus Transformer TF700] fiidim:
Existing mount-data2sd.zip worked for me no problems; Add-On worked great.

Only gotcha that confused me was that I had to re-install the AddOn after flashing the latest CROMI-X. I could swear prior to JB this init wasn't required to be re-installed. It might have been my sequence of events (Cromi-X already installed on SD, installed Add-on, reboot back into recovery, flash mount-data2sd.zip, install CromiX to external, (reboot, but into internal SD, expecting to be on external), reboot into recovery, install AddOn again, reboot into proper External SD). Even with the boot into external I was doubtful, because I used the same boot animation for both installs, but the old _that detect used to tell me it was booting into External. I either missed that on this boot, or it's no longer there.

No big deal. Thanks again though! Love the data2sd and _that kernels!
[Asus Transformer TF700] _that:
Correct. Reinstalling your ROM overwrites the Data2SD package. Maybe you should ask sbdags to include it as an option in Aroma for the next release.

It's no longer there because I couldn't get the framebuffer console to work on the new kernel. NVidia must have changed something in the display driver, because if I enable the console in the kernel config I still cannot see it.
[Asus Transformer TF700] buhohitr:
I used mount data2sd to mount the ext4 on the sdcard so I could do restore, but now it said "unable to mount E:", so I unable to restore backup to sdcard ext4. BTW I tested your latest "auto detect" kernel and it's working well.
[Asus Transformer TF700] yew123:
[MENTION=4878287]_that[/MENTION] Before this I had never tried data2sd but wow it really does make a significant difference. No problems for me so far, thanks :good:
[Asus Transformer TF700] Slammin:
CROMI-X already has a check box to enable d2sd. It has never been simpler. You just prepare the 2nd partition on your card, check the option and install the ROM, and that's it.
[Asus Transformer TF700] callousparade:
what? i just flashed and never saw that option...
[Asus Transformer TF700] Slammin:
It's on the kernel selection screen.

---------- Post added at 10:55 AM ---------- Previous post was at 10:47 AM ----------

fyi

Also, unless you are a benchmark junky, I would not disable fsync or journaling. I was running w/o d2sd, and had fsync disabled while playing with some overclocking on my CPU and had a crash. Ran e2fsck and it found and corrected lots of errors.

With fsync and journaling enabled while using d2sd, my benchmark numbers are of course lower, but the tab smoothness is the same, whether enabled or disabled. If not running d2sd, disabling fsync does make the tab smoother, but at risk.
[Asus Transformer TF700] callousparade:
dunno what's wrong with me the past couple of days... normally i'm excellent at this junx. But i keep effing things up so i'm going to be super nervous and ask some noob questions.

I'm confused about the data2sd autodetect zip vs mount-data2sd.zip.

I just flashed CROMX 4.3 (after a full reformat of the microsd card and a wipe of the internal /data /cache /dalvik. Went with the first _that2 kernel in aroma. So, i'm on a completely clean cromix4.3 now i want to get my tab back running on data2sd. So...

1) Boot into TWRP

2) Flash mount-data2sd.zip

3) Flash _that2 (this kernel obviously)

4) Flash that0 data2sd autodetect mod.

Is step 4 necessary or not if my ext-sdcard is completely clean? Is that0mod just for sdcards that have already been setup for data2sd or is it a mod to allow you to use a non-data2sd kernel as a data2sd kernel?

edit:

Or am i being stupid and should flash mount-data2sd.zip then flash cromi-x 4.3 and flumpster's data2sd modded kernel in aroma (thought it was wrong to mount data2sd before flashing the ROM itself, now i'm not sure)

edit edit:

or am i being stupider than stupid and none of that is unnecessary and i just need to flash the data2sd modded kernel in aroma (no mount-data2sd and no that0mod)
[Asus Transformer TF700] _that:
"data2sd autodetect" is the add-on for your ROM that enables data2sd if a microSD card with a second partition is inserted (if a compatible kernel is installed, e.g. -that2). To install this, just install it after your ROM and make sure that you either installed my kernel together with the ROM or install the kernel separately.

"mount-data2sd.zip" is a tool that temporarily switches your *recovery* to treat the microSD card (its ext4 partition) for /data. It doesn't really install anything. You need to "install" it whenever you want the recovery to act on the data2sd partition, e.g. for backups. Maybe also before you install CROMi-X, if you install any app that installs to /data.

It is a mod that enables Data2SD with the standard that2 kernel (and maybe soon Hundsbuah's).

I think that's the old one, which sbdags says "is not recommended yet" because it doesn't give you easy access to your internal storage.
[Asus Transformer TF700] _that:
I'm so excited. My first ever self-remixed ROM (4.2.1 stock with some bloat removed and some personal goodies) is flashed and currently dexopting on my TF700...

Edit: booted up on the first try! No boot loop, no immediate crashes!

Somehow I broke the brightness slider, it doesn't change brightness. Otherwise it feels pretty fast.

Edit 2: The brightness slider repaired itself after the first reboot. Awesome. :)
[Asus Transformer TF700] Slammin:
You are a great dev and thinker. I appreciate what you and folks like sbdags are doing. I also love to see people expand their skills while at the same time helping others.

You obviously love what you do, and we do too!
[Asus Transformer TF700] KinetiClutch:
I had this issue previously, it would work after a reboot but would then stop working after turning screen on andoff. Might be worth testing. Believe I had this issue with Hunds kernel
[Asus Transformer TF700] Diogenes5:
I too would like, an answer to these questions.

I installed using the special kernel inside the installer but I can't see the tablet's 32gb of internal memory.

Also where do I get the mount-data2sd.zip? People keep referencing but there are a lot of versions of it.
[Asus Transformer TF700] buhohitr:
mount-data2sd.zip is in post #2 http://xdaforums.com/showthread.php?t=1962507

Mount-data2sd is used to mount the second parition on your microsdcard before your restore or flash rom. This will not survive a reboot. If rebooted you need to flash this again.

that data2sd autodected patch is needed for a kernel to recognize the data2sd partition setup. Flash this after you flashed the regular kernel.

_that data2sd autodectect http://xdaforums.com/showthread.php?t=2230059