Journaling, can someone explain? - Epic 4G Q&A, Help & Troubleshooting

So my question is 2 fold. 1, I have no internet whatsoever so Tether is very important to me and having the fastest speeds possible would be ideal.
Upon my quest to get a decent speed with tethering I've noticed this Journaling situation. What is it and can someone explain what it entails?

Journaling has no effect on internet speed (unless the phone is pulling somthing from the disk like a bookmark),will not affect "information on the fly",like the internet.

http://en.wikipedia.org/wiki/Journaling_file_system
Wikipedia said:
A journaling file system is a file system that keeps track of the changes that will be made in a journal (usually a circular log in a dedicated area of the file system) before committing them to the main file system. In the event of a system crash or power failure, such file systems are quicker to bring back online and less likely to become corrupted.[1]
Click to expand...
Click to collapse

I have the no journal mod on my phone and it makes it a little more snappier.

musclehead84 said:
I have the no journal mod on my phone and it makes it a little more snappier.
Click to expand...
Click to collapse
If you dont wish to use journaling why are you not using ext 2?
Sent from my SPH-D700 using Tapatalk

You silly goose. We don't have ext2 for are phones yet
Sent From Da Hood.

That's some subtle trolling.

Just in case wiki isn't being clear. Here is what the difference between journaling and no journaling.
scenario 1 w/ no journaling:
you surf the web, pull down image > data written to cache > save to disk
if your phone crash and reboot then you lost the image that's being pull down
scenario 1 w/ journaling:
you surf the web, pull down image > data written to disk as image loaded
if your phone crash and reboot then you have the image save as much as it was downloaded.
Final point: it's no big deal whether you have journaling or not.
scenario 2 w/ no journaling:
You work on a very important spreadsheet as you hit save > data written to cache > save to disk
if the software have recovery feature, and the phone crash before you hit save, then you lost all changes prior to the last saved because the temp file that the software use wasn't written to the disk.
scenario 2 w/ journaling:
You work on a very important spreadsheet as you hit save > data written to disk.
if the software have recovery feature, and the phone crash before you hit save, then you get to choose the recovery file which is the temp file that constantly being written to the disk.
The difference: hours of work.

Isn't the ext system just the file system for Linux based systems? Like FAT and NFTS is for Windows? And isn't ext2 the precursor to ext3, and ext the precursor to ext4? Like FAT, then FAT16, FAT32, etc? If that's correct, why would we want ext2 in the first place if we have ext4?

running_the_dream said:
Isn't the ext system just the file system for Linux based systems? Like FAT and NFTS is for Windows? And isn't ext2 the precursor to ext3, and ext the precursor to ext4? Like FAT, then FAT16, FAT32, etc? If that's correct, why would we want ext2 in the first place if we have ext4?
Click to expand...
Click to collapse
The benefit of ext 4 over ext 2 is journaling or stability on a cellphone. If your not worried about error correction or saving files before a crash then ext2 should be used as it is way faster. You think your ext4 scores improved, ext 2 would blow that away. When I was on the moment ext2 was used but people were concerned about the reliability. doesn't make much since if you turn the journaling off to use a slower fs.
Sent from my SPH-D700 using Tapatalk

dreamsforgotten said:
The benefit of ext 4 over ext 2 is journaling or stability on a cellphone. If your not worried about error correction or saving files before a crash then ext2 should be used as it is way faster. You think your ext4 scores improved, ext 2 would blow that away. When I was on the moment ext2 was used but people were concerned about the reliability. doesn't make much since if you turn the journaling off to use a slower fs.
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
Thanks for the info. So what's the limitation of ext2? Meaning, if it's so much faster than the newer file system, ext4, why would the devs even bother making ext4? Does it allocate blocks of info better or hold more info? I haven't been able to find much useful info online concerning ext4.

ext2 was created before there is journaling option. In a way, journaling is kinda like after thought for ext2. But if you look at ext file systems, they are written for linux and mostly for PC. so, power requirement isn't a big issue. So, it's inherently by design that ext2 which have less feature and build back in the older system would use less power. I think ext4 is basically ext2 on steroid. Better journaling and larger file/partition size limitation. So, the size limitation is a non issue for such small platform like smartphone.

running_the_dream said:
Thanks for the info. So what's the limitation of ext2? Meaning, if it's so much faster than the newer file system, ext4, why would the devs even bother making ext4? Does it allocate blocks of info better or hold more info? I haven't been able to find much useful info online concerning ext4.
Click to expand...
Click to collapse
Im not that advanced with the two myself I just vaguely remember the back and fourth when this came out for the moment on sdx. there's nothing wrong with ext4 but for a speed junky with no concern for the safety net ext2 boast faster speeds. That being said, wer dont need yet another fs to have to support with themes/roms. now as fast as your pc, you will definetly benefit using the ext4 system. In that case ext2 is obsolete to a point.
Sent from my SPH-D700 using Tapatalk

Thanks for the helpful info guys. I have yet another question. When flashing another Rom, do you always have to re-flash the no journaling even if you've done so with the previous Rom?

imwillzillla said:
Thanks for the helpful info guys. I have yet another question. When flashing another Rom, do you always have to re-flash the no journaling even if you've done so with the previous Rom?
Click to expand...
Click to collapse
You better be very careful when you flash "another ROM". First not all ROM support ext4, and not all support no-journaling. I'm not well verse in the XDA myself either but from what I understand, at-least in the linux space, you can format w/ or w/o journaling, and then there is option disable on boot also, but the kernel has to support it. So, it's all depend the kernel you use support it or not. I don't think ATM, there are many/any tools in Android development space that support conversion between journaling/non-journaling, and especially when going back to RFS. There may not need to be a conversion between journaling and non-journaling since those are technically just how data being handle upon written to the disk, so data structure on the disc should be the same. But, I'm not entirely positive about it. So, I would avoid switching between ROM which doesn't support the same format as it was originally format.

I could be wrong this but the op's question regarded tehtering speed. Now I can see the advantages/disadvantages of journeling while using the phone directly to surf the web but if you are just using the data sevice through the phone on another computer/laptop would you really see any of the advs/disadvs?
Sent from my SPH-D700 using XDA App

helchez said:
I could be wrong this but the op's question regarded tehtering speed. Now I can see the advantages/disadvantages of journeling while using the phone directly to surf the web but if you are just using the data sevice through the phone on another computer/laptop would you really see any of the advs/disadvs?
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
The answer is yes
I mean, because the data only passing through, and your phone is acting not much difference than a router, so there should no any difference in speed. or maybe at best how the tether app load, unless of course the tether app is busy writing log file or something.

running_the_dream said:
Thanks for the info. So what's the limitation of ext2? Meaning, if it's so much faster than the newer file system, ext4, why would the devs even bother making ext4? Does it allocate blocks of info better or hold more info? I haven't been able to find much useful info online concerning ext4.
Click to expand...
Click to collapse
ext3 and ext4 were continuations of development of ext2.
Wikipedia said:
The ext3 file system adds, over its predecessor:
* A Journaling file system.
* Online file system growth.
* Htree indexing for larger directories.
Click to expand...
Click to collapse
Wikipedia said:
* Large file system //now up to 16TB instead of 16 GB
* Extents //replaces traditional block mapping with the ability to allocate multiple blocks in a group
* Persistent pre-allocation //for when it is necessary to allocate a contiguous block before you are ready to write to disk
* Delayed allocation //aka allocate memory and write when the cache is flushed
* Break 32,000 subdirectory limit
* Journal checksumming //to more quickly check the integrity of the journal over ext3
* Faster file system checking
* Multiblock allocator
* Improved timestamps //which require more writes to disk
Click to expand...
Click to collapse

Related

Ext3 vs ext4

Hello to all.
I have a question:what is the differences between the two file system in object of this thread?
I read that some Roms support ext4 and now I have ext3.
I need to change this?is better for performance?
Thanks
Sent from my HTC Desire using Tapatalk
http://www.google.com/#hl=en&source=hp&q=ext3+vs+ext4&aq=0&aqi=g10&aql=&oq=ext3+vs+&gs_rfai=&fp=f4657a9573528472
I would like to know this also
Ext4 is the newer Linux file system. Much like Windows 95 moved to Fat32, Vista moved to the NT file system. Linux is now moving to version 4 of their file system. The new file system is more efficient, has journaling and is more secure. It really will not have any noticeable affect on operation.
It must be noted though that native Linux file systems are a lot faster than Fat Windows file systems, however they are not accessible when you put your SD card into a Windows computer. This is why only part of the card is partitioned to Ext3/4 along with the benefit of not having to unmount a file system with your apps on it.
Sent from my HTC Desire using XDA App
I ve read a post with a very good explanation a week ago .
I will search !
Edit : hum sorry its about a2sd+ , but a little about ext3 and ext4
http://forum.xda-developers.com/showpost.php?p=7458565&postcount=8
So it's not really important to make the upgrade to ext4 for me?it's only a problem about security and not affect the performance?
Sent from my HTC Desire using Tapatalk
i think it doesnt matter on a sd card which ext you use
sdcards are too slow
Check out this article for extensive info.
It is increased journalisation, and better handling of bigger volumes/files.
All the above is absolutely right, but totally wrong. The technical aspects are not important here. For the HTC Desire user the main difference between those filesystems is simple: stock kernel and recovery does not support ext4. That's it.
If you never plan to use stock kernel and/or recovery or skiled enough to enable ext4 support for them, then go ahead and read all those technical articles and do (or do not) change the FS type. If the words "stock kernel" and "stock recovery" mean nothing to you at the moment, you better stick to ext3.
P.S. in theory, ext4 gives you better write performance (and slightly longer SD card life) only if you frequently write the data to the ext partition. But this is not the case for A2SD partition, where the apps are installed occasionally. Unless you plan to give the Desire or the SD card to your grandchildren after many-many years.

[Q] Ext Partitions on SD

I've noticed that everywhere in the ROM threads people using apps2sd seem to partition their SD-cards with ext3. I have a bit of experience with Linux filesystems and I am quite baffled by the choice, especially for flash media, where wear is a very real concern.
Some of the reasons I've seen for people choosing ext3 over ext2 are just plain wrong. E.g. speed; people say that ext3 is faster because it does journaling as opposed to ext2 that doesn't. This is not true, journaling actually makes file operations slower because the journal needs to be updated for every single operation. Journaling makes filesystem recovery faster, because the journal will show exactly which operations did not complete successfully, but this is not very useful due to the relatively small sizes of the partitions and the fact that the phone doesn't crash that often.
Keeping the journal also increases wear on the SD-card as the journal is written to on every operation, and its very specific location means that the SD-card is worn at this location and may make it unusable sooner than normal use would.
So if anyone has some insights into why ext3 seems to be preferred over ext2, then I'd love to hear them, as this has been bothering me for some time.
- RK
Due to the fact that the SD is removable/un-mountable media and its tied in and recognized as "internal memory" by the system, journaling safeguards the data as it would during a system crash under Linux, not sure on the speed my self but the rest is true to the best of my knowledge, its always been the "preffered" format.
Sent from LeeDrOiD loaded HTC Desire using Tapatalk
Moved to Q&A. Please don't post question threads in Development.
Journaling does not actually keep your data safer, it only speeds up the recovery time, as the recovery operation does not have to walk through the entire inode structure to confirm that the file system is consistent. As I said, the size and number of files on the ext-partition make a journal pretty pointless, especially since random access times are very low on flash media, which makes the recovery walk even faster.
So I still don't agree with the choice of ext3 over ext2.
PS. Thanks for correcting my mistake, rofld.

[Q] Pros and Cons of sd-ext?

Hi!
Just would like to know the pros and cons of formatting into ext4 on my SD.
As far as I can find :
Pros : Supports files larger than 4GB as Fat32 cannot
That's about it I think...
Cons : Windows cannot natively detect such a partition
Why I ask this is I just saw a this post
blahbl4hblah said:
Having sd-ext partition on your sdcard will always be benefical, the phone will run so much better believe me
Click to expand...
Click to collapse
I'm ready to go ext4 if there's any performance gain, who wouldn't? But what gain is there, and what would I lose in return?
ArmedandDangerous said:
Hi!
Just would like to know the pros and cons of formatting into ext4 on my SD.
As far as I can find :
Pros : Supports files larger than 4GB as Fat32 cannot
That's about it I think...
Cons : Windows cannot natively detect such a partition
Why I ask this is I just saw a this post
I'm ready to go ext4 if there's any performance gain, who wouldn't? But what gain is there, and what would I lose in return?
Click to expand...
Click to collapse
You're mixing things up here a bit I think. Sd-ext referrs to having a partition on your sdcard to allow support for Apps2SD (basically being able to move apps to your SD card and run them from there in order to free up space); you'd basically repartition the card so that there's an ext3/4 partition for apps and a FAT32 partition for data.
As for the ext4 filesystem, it does allow for larger file sizes and is also a bit faster but you're correct in the fact that you won't be able to natively mount it on a Windows system.
Sent from my T-Mobile G2 using XDA App
OriginalGabriel said:
You're mixing things up here a bit I think. Sd-ext referrs to having a partition on your sdcard to allow support for Apps2SD (basically being able to move apps to your SD card and run them from there in order to free up space); you'd basically repartition the card so that there's an ext3/4 partition for apps and a FAT32 partition for data.
As for the ext4 filesystem, it does allow for larger file sizes and is also a bit faster but you're correct in the fact that you won't be able to natively mount it on a Windows system.
Sent from my T-Mobile G2 using XDA App
Click to expand...
Click to collapse
But don't we already have Apps2SD in GB, + all the apps that do it for you. How is this different, apart from some apps that can't natively be moved? And why is it faster? Internal memory should always load faster, should it not?
ArmedandDangerous said:
But don't we already have Apps2SD in GB, + all the apps that do it for you. How is this different, apart from some apps that can't natively be moved? And why is it faster? Internal memory should always load faster, should it not?
Click to expand...
Click to collapse
GB has the ability to do Apps2SD but it requires the partitioning as, I believe, a symlink is set up so that partition on the sdcard acts as a part of the devices internal storage.
As for speed, just moving apps to your sdcard won't speed up your phone; what that poster you quoted was talking about (most likely, I'd have to see the original thread) was converting your devices partitions (/system, /data, /cache, etc.) from ext3 to ext4. ext4 is a bit faster however some ROMs do not fully support it.
Sent from my T-Mobile G2 using XDA App
Ok, let's clear this up. GB has Apps2FAT32 (a2sd) natively. A2EXT is completely different but none of that is the point of the OP's question.
When it comes to our phones - there is almost no notable performance gain when using EXT4 over any other EXT format. Our phones don't utilize FAT32 internally - just on the sdcard. EXT4 is designed for use with massive file systems. A couple Gigs really doesn't access it's full potential.
While the question is interesting, I'm not really sure what you're planning on doing. Don't format your sdcard entirely in EXT format, and don't attempt to format your phones partitions as FAT32. The result would be... just don't do it.
Just read this on the portal
http://www.xda-developers.com/andro...hd2-data-successfully-moved-to-ext-partition/
This has two main advantages: larger sized data partition and more speed as EXT is inherently faster for I/O purposes.
Click to expand...
Click to collapse
How do I go about formatting a section of my SD into ext4, with existing SD data intact.
And how do I move apps that area already in my phone's internal memory to the ext4 partition? I know there's an option in ROM Manager and CWM, but just don't want to mess anything up
ArmedandDangerous said:
Just read this on the portal
http://www.xda-developers.com/andro...hd2-data-successfully-moved-to-ext-partition/
How do I go about formatting a section of my SD into ext4, with existing SD data intact.
And how do I move apps that area already in my phone's internal memory to the ext4 partition? I know there's an option in ROM Manager and CWM, but just don't want to mess anything up
Click to expand...
Click to collapse
As far as I know, only two ROMs actually support the real A2SD: PyroMod and MexDroid. It's recommended you format the EXT partition to EXT4 before you actually flash either of those ROMs, and you have to rename MexDroid in order to get A2SD working.
blackknightavalon said:
As far as I know, only two ROMs actually support the real A2SD: PyroMod and MexDroid. It's recommended you format the EXT partition to EXT4 before you actually flash either of those ROMs, and you have to rename MexDroid in order to get A2SD working.
Click to expand...
Click to collapse
Thankfully I am already using meXdroid~ Guess I'll just wait for the new version in the next few days to do the formatting. Can I backup all my apps with Titanium Backup, flash ROM (wipe data/cache and dalvik cache), restore with Titanium.
Or would I have to reinstall every app again so that it goes into the ext4 partition?
blackknightavalon said:
As far as I know, only two ROMs actually support the real A2SD: PyroMod and MexDroid. It's recommended you format the EXT partition to EXT4 before you actually flash either of those ROMs, and you have to rename MexDroid in order to get A2SD working.
Click to expand...
Click to collapse
There's a script to accomplish this on pretty much any ROM. It *should* work on current ROMs too. It's called 'darktremor a2sd'. Still find it amazing people forget about that one when this question comes up because it's one oldest methods of obtaining a2sd.
I'm still not understanding the OP's question. Are you wanting to do this for an IO performance gain or for space? I can understand doing it for space if you have a ton of apps but if you're doing it for performance it's a waste of your time. You're internal partitions should already be in EXT4 format (use 4EXT Recovery if they're not).
KCRic said:
There's a script to accomplish this on pretty much any ROM. It *should* work on current ROMs too. It's called 'darktremor a2sd'. Still find it amazing people forget about that one when this question comes up because it's one oldest methods of obtaining a2sd.
I'm still not understanding the OP's question. Are you wanting to do this for an IO performance gain or for space? I can understand doing it for space if you have a ton of apps but if you're doing it for performance it's a waste of your time. You're internal partitions should already be in EXT4 format (use 4EXT Recovery if they're not).
Click to expand...
Click to collapse
I'm doing it for the performance. Have been using 4EXT for a few days and loving it. Already converted internal memory to ext4 from ext3. If further partitioning my SD card for performance is really not noticeable, then I guess I've got nothing to worry about

File system question

I have tried to find information on this, and I'm struggling.
What file system does the evo use by default? I know it's EXT2 and fat32 for camera card, but the main partitions I do not know. Yaffs?
I've heard things about Yaffs2+EXT2 (refered to as godmode), using EXT2, using Yaffs, and using EXT4, with or without journaling. I want to make my file system faster. I keep finding very diluted information that never gives the whole picture. How does yaffs2+EXT2 work? How do the different options perform relative to eachother?
I'm guessing nobody is going to answer... got pushed a couple pages back on the forum
I'll tell you what I know, which is limited. the ext2/3/4 are used for storing apps/cache on the sdcard. It is separate from the fat32 partition which is where everything else on the sdcard is stored, ie pics/roms/backups... Having an ext partition setup will not automatically speed up your phone. You must use a sdcard that is class 6 or higher to give you the speed you desire. The ext2 partition is used with godmode i believe. I had better results from the non-godmode synergy, so I didn't bother learning everything that I should have. Ext3 is what is primarily used for DTA2SD, which I have been using for 2 or 3 years now. I have yet to see a rom that uses ext4. The only thing I have seen about it, is the recommendation to stay away.
Not sure about YAFFS, you could always google it though.
Thanks, this was helpful.
Appreciate the comments.
I am running ext4 from a a script on my gtab. Can i run ext4 with this script on the evo?
I read somewhere that the evo cannot use ext 4. Check out synergy god mode, it has some weird hybrid file system if I remember correctly.
EVO default is YAFFS2. Godmode is YAFFS2 + EXT2. EXT2 and file sytem and YAFFS2 as wear leveler layer.
Read a little on Linux history, I know that EXT2,3, and 4 are newer than any YAFFS, with EXT4 being the new standard for now. Basically all of the new phones use EXT4 now, that was made the new standard or something of the sort with Gingerbread.
Sent from my PC36100 using xda premium

Any benefit to formatting sd card ext2/ext4

Any benefit to formatting sd card ext2/ext4 or another file system?
Since mtp is now the default for connecting to the desktop, there is no compatibility concerns to keep fat32 or exfat (many of my computers are now Linux anyways)
Hopefully someone with more knowledge than me will answer this thread soon. But my understanding is that not all kernals support Ext 2/3/4. And I would prefer Ext 4 because its a Journaled file system which would result i less filesystem error. But that is assuming Journaling is enabled.
speedy1979 said:
Hopefully someone with more knowledge than me will answer this thread soon. But my understanding is that not all kernals support Ext 2/3/4. And I would prefer Ext 4 because its a Journaled file system which would result i less filesystem error. But that is assuming Journaling is enabled.
Click to expand...
Click to collapse
I was under the impression that journalized files systems access the drive much more often and can wear out the drive because of the limited times you can read write to flash drives.
nutpants said:
I was under the impression that journalized files systems access the drive much more often and can wear out the drive because of the limited times you can read write to flash drives.
Click to expand...
Click to collapse
Yes that is one of its downsides.

Categories

Resources