Category: filesystems

Understanding Inodes

Understanding inodes is crucial to understanding Unix filesystems. Files contain data and metadata. Metadata is information about the file. Metadata is stored in an inode. The contents of an inode are: – Inode Number – Uid – Gid – Size – Actim – Mtime…

Sparse Files

Sparse files are files whose metadata reports one size, but the file itself takes less space on the filesystem. Spare files are a common way to effeciently use disk space. They can be created using the ‘truncate’ command. Or you can create them by…

Copying files in Linux

Copying files should be simple, yet there are a number of ways of transferring files. Some of the ways that I could think of are listed here.

Common Mount Options

async -> Allows the asynchronous input/output operations on the file system. auto -> Allows the file system to be mounted automatically using the mount -a command. defaults -> Provides an alias for async,auto,dev,exec,nouser,rw,suid. exec -> Allows the execution of binary files on the particular file system. loop -> Mounts…

Understanding proc filesystem

Understanding the /proc filesystem. Proc is a pseudo filesystem that is generally mounted as /proc. It provides an interface into the kernel data structures. Proc contains a directory of each of the process-id’s running on the system. Inside each of the process-id directory you…

XFS vs Ext4 performance

I wanted to test XFS vs Ext4 performance, so I created two partitions /dev/mapper/vg_hv1-lv_vm1 which is xfs based and /dev/mapper/vg_hv1-lv_vm2 which is ext4 based. Both partitions are on a single RAID-1 disk. [hv ~]$ sudo hdparm -Tt /dev/mapper/vg_hv1-lv_vm1 /dev/mapper/vg_hv1-lv_vm1: Timing cached reads: 24786 MB in 2.00…

%d bloggers like this:
%d bloggers like this:
%d bloggers like this:
%d bloggers like this:
%d bloggers like this:
%d bloggers like this: