Advantage and disadvantage of EXT4 partition

Advantage and disadvantage of EXT4 partition

February 25, 2019
3 min read
13160 views
0

The Ext4 stands for the fourth extended filesystem. It's a journaling file system for Linux, developed as the successor to ext3. It was introduced in 2008. It was released as a series of backward-compatible extensions to ext3, many of them originally developed by Cluster File Systems for the Lustre file system between 2003 and 2006, meant to extend storage limits and add other performance improvements. Ext4 modifies important data structures of the filesystem such as the ones destined to store the file data. The result is a filesystem with an improved design, better performance, reliability, and features.

Support for the ext4 file system has been available from the Linux kernel version 2.6.19 onwards and was officially declared stable in the Linux kernel version 2.6.28. All the latest versions of distributions like Ubuntu, Fedora etc. include the ext4 file system.

ext4's extent allocation does wonder when you use BitTorrent. When a BT client pre-allocates a large chunk (say, when you're downloading a DVD iso) of the disk to avoid fragmentation, on ext4 it's near instantaneous, while on ext3 it can take dozens of seconds.

Features

  • The ext4 filesystem can support volumes with sizes up to 1 exbibyte (EiB) and single files with sizes up to 16 tebibytes (TiB) with the standard 4 KiB block size.

  • Ext4 uses a performance technique called allocate-on-flush, also known as delayed allocation.

  • Extents replace the traditional block mapping scheme used by ext2 and ext3.

  • A single extent in ext4 can map up to 128 MiB of contiguous space with a 4 KiB block size.

  • Ext4 does not limit the number of subdirectories in a single directory, except by the inherent size limit of the directory itself.

  • The ext4 is backward-compatible with ext3 and ext2, making it possible to mount ext3 and ext2 as ext4.

  • Ext4 uses checksums in the journal to improve reliability since the journal is one of the most used files of the disk.

  • Ext4 can pre-allocate on-disk space for a file. To do this on most file systems, zeroes would be written to the file when created.

  • In ext4, a new system call in the Linux kernel can be used. The allocated space would be guaranteed and likely contiguous.

Let’s see the advantages and disadvantages of EXT4 partition

Advantages

  • You can use different disks/LUNs and have better performance. This can increase the performance of the databases as you can have the transaction log on storage and the data files on another. Similar for disk I/O intensive web applications.

  • You can use different mount options (that increase the security or that affect the performance or stability in a more granular way).

  • You manage the space separately. So you can have a nasty application that fills the space that is not affecting other applications.

  • Fragmentation of one partition is independent of the other.

  • You can snapshot, mount, umount, format, defragment, monitor for the performance of file systems independently.

  • You can have encryption on specific volumes.

  • You can mount volumes on demand.

Disadvantages

  • It increases the administration overhead.

  • You will have greater chances to waste more disk space.

  • You will have more incidents involving disk full.

  • It is more difficult to create a consistent snapshot of an application running on different volumes.

  • It uses slightly more resources.

  • Depending on the volume type (MS-DOS label, LVM, btrfs...) you might not be able to easily allocate space from a volume by shrinking another.

 

You can share your experiences with us in the comment section. Thank you!

Was this article helpful?Vote to let the author know
0
Share this article

Loading comments...

Related Articles

How to Develop a BEP20 Token for Your Blockchain Project

How to Develop a BEP20 Token for Your Blockchain Project

Blockchain tokens are used across a wide range of applications, including digital platforms, decentralized finance (DeFi), gaming ecosystems, and community-driven projects. For businesses planning to launch a token on BNB Smart Chain, the BEP20 standard provides a framework for creating fungible tokens that can interact with compatible applications and services.

17 views
Read More
Read full article: How to Develop a BEP20 Token for Your Blockchain Project
Jeff Geschwind: The ASCO’s Guiding Principles for the Responsible Use of AI

Jeff Geschwind: The ASCO’s Guiding Principles for the Responsible Use of AI

The American Society of Clinical Oncology (ASCO) has served as a world-leading professional organization for physician/scientists and other oncology professionals involved in the care of patients with cancer since 1964. The ASCO maintains a depth of resources and tracks the latest oncology news, in addition to advocating for important policies and initiatives that impact the field of oncology.

26 views
Read More
Read full article: Jeff Geschwind: The ASCO’s Guiding Principles for the Responsible Use of AI
Axi (formerly AxiTrader) alternatives: four brokers to compare

Axi (formerly AxiTrader) alternatives: four brokers to compare

Guide to compares four brokers against Axi using only the details each firm publishes on its own website, starting with the one that matches Axi's app, MetaTrader and copy trading set-up while adding markets Axi's international site doesn't list.

18 views
Read More
Read full article: Axi (formerly AxiTrader) alternatives: four brokers to compare