yashsingh1/xdaforums huggingface dataset:
[Nexus 10 Original Android Development] drewski_1:
this is probably due to the ROM install process. not sure, but it could be a pre-formatted Image so tries to install Ext4 on the F2FS and this combo is failing to boot.

you will probably need a purpose built /system F2FS ROM installer to work.

regardless, not too much of a big deal, because F2FS' benefits are more for Write operations and the /system partition, once installed, is almost completely Read-Only so F2FS will have minimal benefits on the performance of /system files.
[Nexus 10 Original Android Development] OmniSlyfer:
Do you mean dirty ratio and dirty background ratio? Because about dirty writeback I can see only "dirty_writeback_centisecs"...

However at the moment i've set dirty ratio to 70 and dirty background ratio to 50. Let's see if I can find some advantages
[Nexus 10 Original Android Development] Khaon:
Dirty ratio yeah. This one has to be higher than background.

Dirty ratio is the amount of memory that dirty pages occupy that triggers a flushing to the drive pausing processes.

Background is amount of memory to decide when starting to write to the drive without pausing processes.

Doing so will increase performance until writes occur but the risk is data loss.

Also it will triggers a higher io workload upon starting to write. But you have like 400 mega byte of free ram.

So people use scripts to change those values when some conditions are met such screen off or during certain hours such the night.

You can also increase dirty expire to delay the maximum amount of time that a dirty page may remain in the memory

Sent from my Xiaomi MI2s
[Nexus 10 Original Android Development] CazeW:
What kind of speeds are you guys getting with AndroBench and F2FS on Lollipop now that the app has been updated?
[Nexus 10 Original Android Development] OmniSlyfer:
Yep thanks. I've also changed swappiness value to 40 to see if there are some sort of improvements...

However i'm waiting for your next ROM release. At the moment i'm using an original CM nighly plus your kernel and evrything is very smooth. And if I think that your releases are build with sabermod... :D :D :D

---------- Post added at 11:23 AM ---------- Previous post was at 11:19 AM ----------

Also another stupid question: if I'm not wrong (and probably I am) the latest version of linaro toolchain is 4.9.2 for kernels... Why are you still using 4.7.4?
[Nexus 10 Original Android Development] Fidelator:
Is it possible to use the Note 4 GPU drivers? Given that the Mali 760 is also Midgard based

As you can read here they bring some considerable performance improvements

http://www.anandtech.com/show/8718/the-samsung-galaxy-note-4-exynos-review/7
[Nexus 10 Original Android Development] Khaon:
L'as times I tried to compile with 4,8 or 4..9 linaro it would yield seg fault in the kernel. I opened a bug report time ago that has been assigned. When lollipop was out it would still be broken. But I think it's possible now to make a kernel works with 4.8. Will try.

I don't have the interface to debug so I cannt find the broken code part heh. If it's not related to the internal compiler code ofc. ( and even if it was the case there are sometimes workarounds)

About the drivers it is worth taking a look but we have a specific manta drivers and proprietary libraries. Maybe the whole driver is not portable but some parts such jobs scheduling that I could read quickly from your link.

Will definitely look deeper into this as still good for games hehe p

Sent from my Xiaomi MI2s
[Nexus 10 Original Android Development] OmniSlyfer:
Cool, can't wait for it.

However have you uploaded a new Kernel version three days ago?
[Nexus 10 Original Android Development] Khaon:
Yeap didnt attached yet the changelog

Sent from my nexus 10
[Nexus 10 Original Android Development] Khaon:
Kernel changelog :

f2fs synced with latest revision

merged aosp new commits

reworked ktoonservative a bit

picked few patches from upstream 3.4.106 kernel
[Nexus 10 Original Android Development] Khaon:
[MENTION=5702874]OmniSlyfer[/MENTION] as expected compiled with 4.8 and 4.9 linaro it does not boot at all.

However original gcc(sabermod incl) and google's 4.8 (somme 4.9 fails) does work. I have no idea honestly what should be the smart choice
[Nexus 10 Original Android Development] frontalot:
[MENTION=4577448]Khaon[/MENTION]: Your modified TWRP is unable to decrypt encrypted volumes. I receive the error: "Could not mount /data and unable to find crypto footer."

Any chance you can look into this?
[Nexus 10 Original Android Development] Khaon:
Update ! :D

Hello, beeing busy with WC & hollidays but yet here is last update. It includes among others 15+ new patches for f2fs since last update heh!!

Changelog :

Upadted to Linux 3.4.97

Last google sources

CPUFREQ:

ktoonservative :

cpu_down_block_cycles has been replaced by

block_cycles_online,

block_cycles_offline,

block_cycles_raise,

block_cycles_reduce

block_cycles_online : how many cycles before enabling second core

block_cycles_offline : how many cycles before disabling second core

block_cycles_raise : how many cycles before raising the freq

block_cycles_reduce : how many cycles before reducing the freq

FS:

f2fs: avoid to access NULL pointer in issue_flush_thread

f2fs: check bdi->dirty_exceeded when trying to skip data writes

f2fs: do checkpoint for the renamed inode

f2fs: release new entry page correctly in error path of f2fs_rename

f2fs: fix error path in init_inode_metadata

f2fs: check lower bound nid value in check_nid_range

f2fs: remove unused variables in f2fs_sm_info

f2fs: fix not to allocate unnecessary blocks during fallocate

f2fs: recover fallocated data and its i_size together

f2fs: fix to report newly allocate region as extent

f2fs: reduce region of f2fs_lock_op covered for better concurrency

f2fs: check name_len of dir entry to prevent from deadloop

f2fs: replace count*size kzalloc by kcalloc

f2fs: refactor flush_nat_entries codes for reducing NAT writes

f2fs: introduce f2fs_do_tmpfile for code consistency

f2fs: avoid to truncate non-updated page partially

f2fs: avoid unneeded SetPageUptodate in f2fs_write_end

Do you hesitate to attach logcat/dmseg/etc..
[Nexus 10 Original Android Development] Khaon:
I took a look already I think I got the idea as I could reproduce the bug, let's see if I can do fo smthing.

you are right, the real bargain is using f2fs on /data partition & why not cache than a full f2fs.
[Nexus 10 Original Android Development] ericp2:
... i just flashed your update. i strongly suspected something was off with f2fs itself so potential fixes in that area are definitly welcome! I will post some feedback in a day or two to confirm system is more stable. Thanks!
[Nexus 10 Original Android Development] b1g.p0ppa:
Thanks for the update! I had switched to Interactive gov as it felt more responsive and used less battery than ktoonservative. Will go back to ktoonservative to see how your tweaks affect battery usage and responsiveness.
[Nexus 10 Original Android Development] Khaon:
I am totaly unsure, but I think atm the sampling rate is stuck at 45k w/e you set. Will check this w/e and correct if it is the case but I highly doubt it is not properly working.
[Nexus 10 Original Android Development] Fidelator:
Uhh guys, for some reason I send over the recovery, either the kt or the other one, it's sent and says OKAY, the write process also tells me OKAY, and on my BL screen I get the Fastboot status OKAY or something similar, but when I reboot into recovery I'm still running 2.7.0.1, the exact same as before, I've tried repeating the process multiple times but it keeps happening, what's going on?

Edit: Ok, further testing proves that I can't find a way to change this recovery, what the hell is going on? Why won't it change?
[Nexus 10 Original Android Development] Khaon:
Huh, weird, I guess you got your bootloader unlocked? Well you can aswell flash through your recovery. Take any .zip and replace the recovery.img

What happens when you enter fastboot boot x.img ? ( x is the recovery)
[Nexus 10 Original Android Development] b1g.p0ppa:
Could also try dd'ing the .img directly to the block device (as root of course). /dev/block/mmcblk0p4 (purposely omitted the command because you should only try this if you already know how to--a typo could easily brick your device)
[Nexus 10 Original Android Development] Khaon:
you could try make a .zip ( I don't see honestly what would change...)

/dev/block/mmcblk0p4 is same than /dev/block/platform/dw_mmc.0/by-name/recovery?

Beside, so far how is freezing/screen not going on after going off? Just experienced one after 60 hours but I was trying to lower voltage, guess that was the source of issue.
[Nexus 10 Original Android Development] b1g.p0ppa:
Si:

lrwxrwxrwx root root 2014-07-13 14:25 recovery -> /dev/block/mmcblk0p4

Haven't noticed any freezing or SOD like I did prior to this update. Everything is running very nicely!
[Nexus 10 Original Android Development] Khaon:
Good I haven't my phone so couldn't check. Just curious it is just a symlink right?

Well then like you said he can use this path, but now lol I dont evne remember how to hehe.

was eric that sent his logcat. What's weird, correct me if I am wrong, he loop error was due to powerHal right?
[Nexus 10 Original Android Development] ericp2:
hi [MENTION=4577448]Khaon[/MENTION], system is much more stable now, no more screen freeze up anymore,no issue waking up the device. I also notice that my nexus is more responsive (could be subjective though), and battery drain is less.

Thanks again for the update.

---------- Post added at 10:48 AM ---------- Previous post was at 10:43 AM ----------

Hi, if this helps, i had the same thing trying to flash the new recovery. Everything appeared as if it worked, but the old recovery was still there... the only thing that worked in the end, was through fastboot. device is unlocked of course.
[Nexus 10 Original Android Development] Fidelator:
fastboot boot filename.img worked and I managed to change my filesystems, I'll try creating the zip as the recovery keeps going reverting and 2.7.0.1 isn't able to read my partitions now, I'll update with the results and so far I just booted up and everything seems to be going well.

Edit: Ok, I DL'ed an official TWRP 2.7.1.0 zip and flashed it, my recovery updated successfully, however it isn't able to read my /cache or /data partitions, next, I replaced the recovery.img with the exact same img I used to convert to F2FS (the one provided here) and again booted into the functional recovery through fastboot boot filename.img, I flashed the new zip file and everything seemed to be fine, rebooting to recovery shows that the original TWRP 2.7.1.0 wasn't replaced as I'm unable to mount the data or cache partitions.

Also worth mentioning that using the TWRP manager from the playstore to try to flash .imgs does not work either
[Nexus 10 Original Android Development] Khaon:
Official twrp has the tools to format but not the driver to mount you could enter into my recovery ? If yes push with adb somewhere and install normally. That's the best I can figure so far
[Nexus 10 Original Android Development] Khaon:
I have added in the OP few links to f2fs vs ext4 benchmarks for people that would be interrested in seeing the difference.

-----------------------------

OP uploaded see the changelog

------------------------------

If users want any other kernel. As long as the source are available I can include f2fs and compile it.
[Nexus 10 Original Android Development] necropuppy:
Any one have issues loading the latest PA 4.43 and also the 4.5 Alpha 2? I tried with /system as f2fs and the rom converted and also with /system as ext4, rom is stock. After I flash it, it sits and at the boot splash screen indefinitely. Any ideas? Purity and C-Rom work perfecly.
[Nexus 10 Original Android Development] addicted1900:
So i searched in this Thread for my Problem but i didn't found anything :/

I don't get any "F2FS" Options when I'm in the Settings Tab of the TWRP-F2FS. I reflashed the recovery 3x times in Fastboot and started it also over fastboot with "fastbood boot" but this didn't helped. Are there any solutions ?
[Nexus 10 Original Android Development] Khaon:
This is for ktwrp you can use lastest official at your convinience aswell
[Nexus 10 Original Android Development] GunnerOnASpooky:
I updated to the official 2.7.1.0 and saw no option for forcing f2fs. I tried the f2fs version, downloaded from your mediafire page, and it is exactly the same, except the twrp version shows f2fs at the end.

Edit : There is no option under settings, however, if you choose Wipe/Format Data, it wipes using F2fs

Edit Again : to change each partition, you must choose each one under Advanced wipe, then choose change/repair file system, then change and choose f2fs

Last Edit : got everything up and running with C-Rom, all f2fs......and i'm impressed! I will write up a blurb on the steps i took, since they're a bit different than the OP as soon as I get my kids down for bed tonight.
[Nexus 10 Original Android Development] Khaon:
Glad you made it. I received few pm's because people were confuse using twrp 2.7.1.0 instead of kt-twrp and thus not finding the UI elements that I describe in the OP.

Also now there is a suffix -f2fs in the 2.7.1.0 so people do know it is the unofficial. The only issue so far, that should be soon corrected,is that the official recovery does not mount f2fs formated partition. So kinda a problem to install something :silly:

Added in the OP instruction "THIS APPLIES TO KT-TWRP, feel free to use the unofficial (2.7.1.0) if you prefer the UI.(you can find it in the download folder aswell). ".

I didn't add any instruction for the twrp 2.7.1.0 as it has natively the change/repair feature. But if you write them down will add them in the OP :good:
[Nexus 10 Original Android Development] Targaeryan:
Did you try this one? [emoji14]

Edit: forgot to post link.

http://xdaforums.com/showthread.php?t=2098133
[Nexus 10 Original Android Development] OmniSlyfer:
Have you tried using Sabermod 4.9.3? I've never understood the differences between Linaro and Sabermod, I'm not an expert, but I've heard beautiful thing about Sabermod, so you can maybe try to use the latest compatible version od it...
[Nexus 10 Original Android Development] leninke:
Hi [MENTION=4577448]Khaon[/MENTION]. With latest kernel update when I use ktoonservative governor CPU always stays at highest freq. Can you look into it? Btw amazing kernel,I love it. ;)
[Nexus 10 Original Android Development] Khaon:
Hey, It should be fixed on today's build.
[Nexus 10 Original Android Development] leninke:
Thank you sir.
[Nexus 10 Original Android Development] frontalot:
Did you see, this Khaon?
[Nexus 10 Original Android Development] Khaon:
Coudl'nt retrieve a more pertinent post, but basicly sabermod is closer to gcc's dev branches, while linaro has a lot of its own patches.

Hm what is the filesystem of your data partition? Does it happen with official twrp?
[Nexus 10 Original Android Development] frontalot:
Using F2FS with your modded recovery. Works fine unencrypted but fails with encryption.
[Nexus 10 Original Android Development] Hyflex:
Hey,

Does this kernel work on stock lollipop? I can't seem to find the answer to it.
[Nexus 10 Original Android Development] Khaon:
Yes it does.
[Nexus 10 Original Android Development] frontalot:
Yes, it works.
[Nexus 10 Original Android Development] Hyflex:
Hmm, what do I need to do in order to use the kernel on stock lollipop, I have twrps latest recovery do I NEED to use the modded one here and do I have to convert partitions?
[Nexus 10 Original Android Development] Khaon:
I don't know much about device encryption in lollipop, I know it is enabled for ext4 and f2fs filesystem's. I have no issue did you change something?

The modded one of mine is aimed for people running f2fs on data partition.

If you just want to flash my kernel then you do not need mine, you can go straightword with official one.

-----------------------------------------------------------

I am uploading a new cm12 build: it has been compiled with latest linaro androideabi( january 2015), however art was built with latest sm 4.8 because 4.9 causes segfaults with art.
[Nexus 10 Original Android Development] dgcruzing:
think I have this problem too as I am locked out of the tablet..

Flashed UC 9.1 Rom but it keeps going to this unlock your Android Screen and reboots to TWRP..

I will try to flash a official one and see if I can bring it back to life..

edit: lucky it can mount a usb-otg as i was able to flash TWRP 8.4 and its allowed me to boot in to Rom... Pheew.. saves a headach..

Moral is dont flash this unless you know your Tablet is unencrypted..
[Nexus 10 Original Android Development] OmniSlyfer:
Well I think you should try sabermod anyway... I'm using a kernel build with sabermod on my old Galaxy s2 and it's very good.

If you are not satisfied you can easily switch back to Linaro 4.7... Ofc only if u have time to do it. Otherwise continue with linaro, we are not going to die for that ;)
[Nexus 10 Original Android Development] Khaon:
Honestly It takes me 5 minutes for a first compilation with a new toolchain and then something like 30 secs for the next.

I can upload a kernel built with all toolchains available lol including googles. But I can't be arsed to bench the most efficient one.

Sent from my nexus 10.
[Nexus 10 Original Android Development] Khaon:
That's the one I am using. But like I said 4.8 4.9 breaks the build but I will retry later today when I get back home

Sent from my nexus 10.
[Nexus 10 Original Android Development] OmniSlyfer:
Don't worry, I can try them all and report to you my feelings and benchmarks... It will take time, but I can do it.

Also you should try to report the problem in Linaro thread again, so maybe Christopher will fix this problem in the next release. However I think it's a problem related to all Exynos processors, because Galaxy S2 ans S3 are stucked on 4.7.4 too.

PS: i've noticed that in your kernel Dirty_background_ratio value is higher then dirty_ratio. As you said a couple of pages ago, dirty_ratio should have the higher value. Is it normal? And yeah, apologize me for my not-exactly-pefect english ^^
[Nexus 10 Original Android Development] Khaon:
Yeah I know lol dirty ratio blocks processes and writes.

Background reached start writing to drive.

I noticed that the week ago and I forgot each time to correct that xD.

Sorry.

I think the problem is linked with the Mali driver.
[Nexus 10 Original Android Development] OmniSlyfer:
You don't need to apologize ofc...

However, have you complied a new CM nightly 2 days ago? Did you use Sabermod 4.8.4 and + optimizations?

If the answer is yes... I will flash it immediatly, I was w8ing fot it *.*
[Nexus 10 Original Android Development] Khaon:
Nope I tried linaro 4 9 3 but I think there is a issue with some XML files making me believe it was on behalf of cyanogen and not the compiler itself. I have google services crashing.

When I get back home I can compile a new 4.8.4 ROMs with opts. Will lunch a build and upload it .

Sent from my nexus 10.
[Nexus 10 Original Android Development] OmniSlyfer:
Uhm... I think i'm going to make a Nandroid backup then I'll try your Linaro CM to see what happens.
[Nexus 10 Original Android Development] paratox:
on latest build (20.02.2015) i can not get gapps working. play services are always stopping. tried different pa gapps versions and wipe data / cache without success.

am i the only one? i`m afraid i have to look for another rom.

data and cache formatted to f2fs.
[Nexus 10 Original Android Development] OmniSlyfer:
I think u didn't read the last Khaon post... you have to w8 few hours and I think he will upload a full working ROM. The one you've installed was and 'experimental build'.
[Nexus 10 Original Android Development] Khaon:
Yes move to another rom this build is broken with Google play services.

DU and UB are nice rooms

Sent from my Xiaomi MI2s.
[Nexus 10 Original Android Development] David 617:
Hey guys,

Just to be clear, can I flash the f2fs kernel on CM stock and use f2fs for my data partition, or do I need to be running this rom as well?

Thank you!
[Nexus 10 Original Android Development] Khaon:
Flash over any rom

Sent from my Xiaomi MI2s.
[Nexus 10 Original Android Development] Khaon:
new rom build online!

date of build 24/02/2015

features

O3 + some flags

graphite enabled

latest sabermod 4.8.5

host compiler updated to 2.20-4.8

Just boot on it, didnt had any issue so far.
[Nexus 10 Original Android Development] Beaster:
I just flashed your kernel for the first time on my manta. Not for the f2fs function, but for other added features (ie OC/UV).

I must say that i am impressed with the stability of the kernel. Super smooth for 2 days now..

I am using SetCPU to manipulate voltages and other tunables of the kernel. Do you suggest any other app or stick with setCPU? (Is this Synapse compatible?)

Thank you very much for your work!
[Nexus 10 Original Android Development] Khaon:
There are a lot of good app better than the one you mentioned.

You can try aero kernel that allows you to add custom sysfs entries is necessary.

Trixkstermod does well too and I read few days ago on xda page news about a new interesting project.
[Nexus 10 Original Android Development] brGabriel:
First off, love the ROM and kernel! Just a quick question...

Back in Kitkat I had formatted system, cache, and data partitions to f2fs, but for some reason when lollipop first came out it was advised to use ext4 for system (don't remember why). Is that still the case or can we use f2fs for all partitions?
[Nexus 10 Original Android Development] OmniSlyfer:
As far as I know u can use f2fs for all partitions. However, f2fs improves significantly write performances, while System partiton is read-only. So if you want to achieve the best performances, keep system on ext4 and use f2fs for data and chace :)

---------- Post added at 01:26 PM ---------- Previous post was at 01:22 PM ----------

Yess, Khaon's kernel is best kernel ever made for our N10, nothing can compete with it :D

May I suggest to use Aero Kernel for tuning? It's totally free and you can tweak everything with it, from governor to memory, from build.prop to VM settings etc...
[Nexus 10 Original Android Development] Beaster:
Thank you both for the suggestions! Will try them as soon as i get home. :)
[Nexus 10 Original Android Development] David 617:
So I wiped my partitions to f2fs and realized my pc's adb isn't recognizing my tablet (probably not related to f2fs. i get this issue occasionally with my nexus 10).

Lol.. fml...

I tried Koush's universal drivers and the drivers that came with the Android sdk but neither works. Any suggestions?

Thanks

Edit -

Made a VM with Ubuntu and adb works fine in that. Gotta love windows...
[Nexus 10 Original Android Development] Khaon:
Good for you you could manage, in fact windows is easy BUT one old driver signature may interfere and do sh²t.

So when trying to adb or someting you got to REMOVE ALL former usb driver or devices that the computer knew etc adb drivers ; samsung driver. bla bla pain in the ass.

on linux you install adb package and bingo :D
[Nexus 10 Original Android Development] Khaon:
I have notice time o time google play service crashes would still crash and it is related to the graphite optimizations.

So I made a new build, the same than the one before BUT without graphite optimizations.

To those having the "graphite build" can you report difference you feel when you migrate?

The build without graphite remains very smooth and stable however!.
[Nexus 10 Original Android Development] Beaster:
Aero kernel app is my favorite now!

Simple and beautiful UI.

Thx guys!
[Nexus 10 Original Android Development] David 617:
Ok, so I got it to work in Windows by manually selecting the correct driver from the list of devices.

Does pa gapps work in latest version of the rom? I keep getting 'Play Services has crashed'

I'l try to flash a different gapps package and see if that helps

---------- Post added at 04:42 PM ---------- Previous post was at 04:35 PM ----------

I'll test this new build. Is it in Google Drive? I cant seem to find it...