Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Storage Can we use the F2FS file system on our GNex instead of EXT4?

OP Shidell

19th December 2013, 06:51 AM   |  #1  
Shidell's Avatar
OP Senior Member
Thanks Meter: 65
 
527 posts
Join Date:Joined: Jan 2009
The Moto X (and more importantly, the Moto G) are using F2FS on their /data partitions and are seeing great I/O performance--even the Moto G, which is using essentially MicroSD eMMC is performing very well, and it's attributed to F2FS.

Is it possible to merge the patches required for F2FS support into the currently GNex kernel and produce a Recovery image built using that kernel that could clean /data and create a F2FS partition on it? Further, could that same kernel then be used in conjunction with an Android image to provide support for F2FS in Android, as the Moto X and G do?

The benchmarks for F2FS performance on NAND is incredible, and the GNex's is seeing new life with KitKat's memory and process optimizations. I'd like to start a discussion on bringing F2FS support to the GNex, in the interest of furthering it's potential.
The Following 7 Users Say Thank You to Shidell For This Useful Post: [ View ]
20th December 2013, 01:17 AM   |  #2  
bsmitty83's Avatar
Recognized Contributor
Flag Detroit
Thanks Meter: 8,145
 
2,584 posts
Join Date:Joined: Apr 2012
More
Quote:
Originally Posted by Shidell

The Moto X (and more importantly, the Moto G) are using F2FS on their /data partitions and are seeing great I/O performance--even the Moto G, which is using essentially MicroSD eMMC is performing very well, and it's attributed to F2FS.

Is it possible to merge the patches required for F2FS support into the currently GNex kernel and produce a Recovery image built using that kernel that could clean /data and create a F2FS partition on it? Further, could that same kernel then be used in conjunction with an Android image to provide support for F2FS in Android, as the Moto X and G do?

The benchmarks for F2FS performance on NAND is incredible, and the GNex's is seeing new life with KitKat's memory and process optimizations. I'd like to start a discussion on bringing F2FS support to the GNex, in the interest of furthering it's potential.

I'm not sure but I'm very interested in this , if you can find these commits , I'll add this to my to do list . :thumbup:


Edit I found some , thanks for this topic I'll start seeing if it's possible

Sent from my Galaxy Nexus using Tapatalk
Last edited by bsmitty83; 20th December 2013 at 01:31 AM.
The Following 13 Users Say Thank You to bsmitty83 For This Useful Post: [ View ]
26th December 2013, 06:03 PM   |  #3  
Shidell's Avatar
OP Senior Member
Thanks Meter: 65
 
527 posts
Join Date:Joined: Jan 2009
Quote:
Originally Posted by bsmitty83

I'm not sure but I'm very interested in this , if you can find these commits , I'll add this to my to do list . :thumbup:


Edit I found some , thanks for this topic I'll start seeing if it's possible

Sent from my Galaxy Nexus using Tapatalk

Awesome--thanks for investigating. I know you have the know-how to implement F2FS if it's feasible. It does appear to F2FS does offer about a 30% I/O perf improvement across the board, but in some cases, it can be as much as 300%, which is insane.

Here's a post I made on reddit with links to performance benchmarks of F2FS vs EXT3, EXT4, BTRFS, etc.

http://www.reddit.com/r/GalaxyNexus/...y_nexus_seems/

Did you have any luck looking for F2FS patches? Anything I can help with?
26th December 2013, 06:42 PM   |  #4  
bsmitty83's Avatar
Recognized Contributor
Flag Detroit
Thanks Meter: 8,145
 
2,584 posts
Join Date:Joined: Apr 2012
More
Quote:
Originally Posted by Shidell

Awesome--thanks for investigating. I know you have the know-how to implement F2FS if it's feasible. It does appear to F2FS does offer about a 30% I/O perf improvement across the board, but in some cases, it can be as much as 300%, which is insane.

Here's a post I made on reddit with links to performance benchmarks of F2FS vs EXT3, EXT4, BTRFS, etc.

http://www.reddit.com/r/GalaxyNexus/...y_nexus_seems/

Did you have any luck looking for F2FS patches? Anything I can help with?

Actually I did , I applied the patches necessary , the kernel supports f2fs , and now I'm in the process of getting the data partition formatted and mounted , which is ROM side in the fstabs , so hopefully I can build a ROM soon that's mounted f2fs , I've been all over this , it's definitely gonna work , just a matter of time before I get everything together
It was a patchset of 250 patches to the kernel .

Trying for some seat time tonight ,

Sent from my Galaxy Nexus using Tapatalk
The Following 4 Users Say Thank You to bsmitty83 For This Useful Post: [ View ]
27th December 2013, 12:37 AM   |  #5  
Shidell's Avatar
OP Senior Member
Thanks Meter: 65
 
527 posts
Join Date:Joined: Jan 2009
Awesome! Your comments sound promising. Keep us posted!
27th December 2013, 12:41 AM   |  #6  
Senior Member
Thanks Meter: 142
 
311 posts
Join Date:Joined: Feb 2013
More
Everything has its upside and downside. I'm not being a smarta$$ or something but just warning you guys...

I think f2fs has a more than 50 or so times slower average mounting time than that of ext4, so most of the flashaholics out there will simply come back to ext4. It requires partition formats and an f2fs kernel. If one flashes an f2fs kernel to a phone with ext4 partitions, the phone will simply hardbrick, and vice versa. Of course it is possible to be unbricked, but it will be difficult for anyone who hasn't dealt with partitions, especially NAND, before.

I'm just afraid this will brick thousands of gnex's. It will cause a serious confusion and eventually succeed or will just be ignored by everyone.


Edit:
I have seen two people successfully ported f2fs, one to Galaxy Nexus and the other to Nexus 5, but both of them said their phone literally mounted forever. Of course the benchmark provided by one of them with gnex showed a really good improvement, but even he forgot that he shouldn't flash an ext4 kernel, which he did and got bricked.
Last edited by Zittoro; 27th December 2013 at 12:59 AM.
The Following User Says Thank You to Zittoro For This Useful Post: [ View ]
27th December 2013, 01:19 AM   |  #7  
bsmitty83's Avatar
Recognized Contributor
Flag Detroit
Thanks Meter: 8,145
 
2,584 posts
Join Date:Joined: Apr 2012
More
Quote:
Originally Posted by Zittoro

Everything has its upside and downside. I'm not being a smarta$$ or something but just warning you guys...

I think f2fs has a more than 50 or so times slower average mounting time than that of ext4, so most of the flashaholics out there will simply come back to ext4. It requires partition formats and an f2fs kernel. If one flashes an f2fs kernel to a phone with ext4 partitions, the phone will simply hardbrick, and vice versa. Of course it is possible to be unbricked, but it will be difficult for anyone who hasn't dealt with partitions, especially NAND, before.

I'm just afraid this will brick thousands of gnex's. It will cause a serious confusion and eventually succeed or will just be ignored by everyone.


Edit:
I have seen two people successfully ported f2fs, one to Galaxy Nexus and the other to Nexus 5, but both of them said their phone literally mounted forever. Of course the benchmark provided by one of them with gnex showed a really good improvement, but even he forgot that he shouldn't flash an ext4 kernel, which he did and got bricked.

I agree with you about this may or may not be worth it to the general public. But I was interested in this for the op as well as my curiosity .
That's also a great reason for this to stay in the dev support thread

The kernel supports both filesystem's , so flashing the f2fs kernel on a ext partition is OK , hell I'm running that combo now lol , I'm only using ( trying to ) f2fs for the userdata partition like the motoX .

I'm not doing this for recognition , weather its of value to anyone other than my curiosity or self is secondary , not saying I'm thinking only about me. But I would never put a ROM out that I didn't test on my phone first .
I'm compiling AOKP 4.4 now with hopefully everything I'm looking for . I'll post the eventual results .

Sent from my Galaxy Nexus using Tapatalk
The Following 2 Users Say Thank You to bsmitty83 For This Useful Post: [ View ]
27th December 2013, 02:02 AM   |  #8  
Senior Member
Thanks Meter: 142
 
311 posts
Join Date:Joined: Feb 2013
More
Quote:
Originally Posted by bsmitty83

I agree with you about this may or may not be worth it to the general public. But I was interested in this for the op as well as my curiosity .
That's also a great reason for this to stay in the dev support thread

The kernel supports both filesystem's , so flashing the f2fs kernel on a ext partition is OK , hell I'm running that combo now lol , I'm only using ( trying to ) f2fs for the userdata partition like the motoX .

I'm not doing this for recognition , weather its of value to anyone other than my curiosity or self is secondary , not saying I'm thinking only about me. But I would never put a ROM out that I didn't test on my phone first .
I'm compiling AOKP 4.4 now with hopefully everything I'm looking for . I'll post the eventual results .

Sent from my Galaxy Nexus using Tapatalk

I know that you're not gonna do anything silly, but I was warning just in case In fact, I'm keen to see another development going on Gnex!!

But are you really doing it like that? If I were you, I would certainly go to the REAL HELL.
Don't be a bat, just make everything f2fs. It won't do any good with ext4 + f2fs combo.
The Following User Says Thank You to Zittoro For This Useful Post: [ View ]
27th December 2013, 04:02 AM   |  #9  
bsmitty83's Avatar
Recognized Contributor
Flag Detroit
Thanks Meter: 8,145
 
2,584 posts
Join Date:Joined: Apr 2012
More
Quote:
Originally Posted by Zittoro

I know that you're not gonna do anything silly, but I was warning just in case In fact, I'm keen to see another development going on Gnex!!

But are you really doing it like that? If I were you, I would certainly go to the REAL HELL.
Don't be a bat, just make everything f2fs. It won't do any good with ext4 + f2fs combo.

Once I get more comfortable with the filesystem's I'll try doing the sdcard as well . don't think I'll be messing with boot or radio fs anytime soon lol

Sent from my Galaxy Nexus using Tapatalk
The Following User Says Thank You to bsmitty83 For This Useful Post: [ View ]
27th December 2013, 04:08 AM   |  #10  
Shidell's Avatar
OP Senior Member
Thanks Meter: 65
 
527 posts
Join Date:Joined: Jan 2009
Quote:
Originally Posted by Zittoro

I know that you're not gonna do anything silly, but I was warning just in case In fact, I'm keen to see another development going on Gnex!!

But are you really doing it like that? If I were you, I would certainly go to the REAL HELL.
Don't be a bat, just make everything f2fs. It won't do any good with ext4 + f2fs combo.

Does it really take that long to mount the FS? The Moto X and G are using F2FS, does it take them forever to boot/mount?h

Also, can you point us in the direction of the person who got F2FS running on the Gnex/benchmarks? That would help shed some light on what could be gained and if it's worth it. It should be noted that F2FS has a lot of planned changes coming in the linux kernel (soon) which are supposed to make it even faster.
Last edited by Shidell; 27th December 2013 at 04:13 AM.

Post Reply Subscribe to Thread

Tags
f2fs, galaxy nexus, kernel, recovery
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes