Language Selection

English French German Italian Portuguese Spanish

Ext4 defragmentation with e4defrag

Filed under
HowTos

Lately I have described ok_defrag — a simple tool for defragmenting Linux file systems. Today, I want to describe a specialized program designed to defrag the new Ext4 file system.

To begin playing with e4defrag we must start compile of new kernel with patches needed to carry out the defragmentation. Below you will find a short description of that process, and if you would not like to use all those experimental patches for Ext4, then you should be interested in these seven only:

ext4-online-defrag-exchange-blocks-between-two-inodes.patch
ext4-online-defrag-relocate-file-data.patch
ext4-online-defrag-alloc-contiguous-blks.patch
ext4-online-defrag-ext4-defrag.patch
ext4-online-defrag-for-relevant-files.patch
ext4-online-defrag-check-for-freespace-fragmentation.patch
ext4-online-defrag-move-victim-files.patch

In first step we start from creation of directory, grabbing the kernel source, and downloading and unpacking needed patches.

More Here




More in Tux Machines

Development Leftovers

  • My talk from the RISC-V workshop in Barcelona
  • KDAB at SIGGRAPH 2018
    Yes, folks. This year SIGGRAPH 2018 is in Canada and we’ll be there at the Qt booth, showing off our latest tooling and demos. These days, you’d be surprised where Qt is used under the hood, even by the biggest players in the 3D world!
  • 9 Best Free Python Integrated Development Environments
    Python is a widely used general-purpose, high level programming language. It’s easy to read and learn. It’s frequently used for science, data analysis, and engineering. With a burgeoning scientific community and ecosystem, Python is an excellent environment for students, scientists and organizations that develop technology software. One of the essential tools for a budding Python developer is a good Integrated Development Environment (IDE). An IDE is a software application that provides comprehensive facilities to programmers for software development. Many coders learn to code using a text editor. And many professional Python developers prefer to stay with their favourite text editor, in part because a lot of text editors can be used as a development environment by making use of plugins. But many Python developers migrate to an IDE as this type of software application offers, above all else, practicality. They make coding easier, can offer significant time savings with features like autocompletion, and built-in refactoring code, and also reduces context switching. For example, IDEs have semantic knowledge of the programming language which highlights coding problems while typing. Compiling is ‘on the fly’ and debugging is integrated.
  • Want to Debug Latency?
    In the recent decade, our systems got complex. Our average production environments consist of many different services (many microservices, storage systems and more) with different deployment and production-maintenance cycles. In most cases, each service is built and maintained by a different team — sometimes by a different company. Teams don’t have much insight into others’ services. The final glue that puts everything together is often a staging environment or sometimes the production itself! Measuring latency and being able to react to latency issues are getting equally complex as our systems got more complex. This article will help you how to navigate yourself at a latency problem and what you need to put in place to effectively do so.

Devices: AsteroidOS, Das blinkenlight, Android P

  • The open source AsteroidOS is a new alternative to Wear OS
    AsteroidOS is a new Linux-based open source operating system that can be used as a replacement to Wear OS. A small team of developers have been hard at work on the smartwatch platform for the last four years. As the culmination of their efforts, this week the first stable version was made available to the public. It plays nice with a few Wear OS-compatible smartwatches.
  • Das blinkenlights are back thanks to RPi revival of the PDP-11
    The designers left the I2C port of the Raspberry Pi free for hacks, and “it is not very hard to add support for such things in the simh emulator, so the PiDP-11 can use them as I/O”. The SR switches on the PiDP-11's SR switches can be set to boot various operating systems (this part is a work in progress), so instead of RSX-11MPlus users can choose BSD, DOS-11, Unix System 6 or System 7 and the like.
  •  
  • How Android P Will Increase Battery Life

today's howtos

GNU nano 2.9.7 was released

Accumulated changes over the last five releases include: the ability to bind a key to a string (text and/or escape sequences), a default color of bright white on red for error messages, an improvement to the way the Scroll-Up and Scroll-Down commands work, and the new --afterends option to make Ctrl+Right (next word) stop at the end of a word instead of at the beginning. Check it out. Read more