lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C7505C3.1070509@rid-net.de>
Date:	Wed, 25 Aug 2010 14:00:03 +0200
From:	andreas@...-net.de
To:	linux-ext4@...r.kernel.org
Subject: defragmentation of boot related files

hi,

I try to find ways to reduce the start time of programs or the whole 
operating system. The idea to increase disk performance is to gather all 
related files on disk physically close together. Unlike the last patches 
from Kazuya Mio for "relevant file defragmentation" files used by system 
boot are mostly not in the same directory.

First i look at the EXT4_IOC_MOVE_EXT call.
To reduce the amount of disk seeks i want to move the extents from 
several files into a single donor file. To do so i increment the 
move_extent.donor_start by the size of each file. But i got an error.

The error is caused by the lines in the kernel source 
fs/ext4/move_extent.c:998
998	/* Start offset should be same */
999	if (orig_start != donor_start) {
1000		ext4_debug("ext4 move extent: orig and donor's start "
1001		     "offset are not same [ino:orig %lu, donor %lu]\n",
1002                 orig_inode->i_ino, donor_inode->i_ino);
1003            return -EINVAL;
1004    }

Is there a reason why the offset of the original file and the donor file 
must be the same?

As i can see the patch for relevant file defragmentation in e4defrag 
supports only directories. May it be possible to select any desired file?

What would you suggest as the best way to put files physically together?

If I could help, tell me. :)

Regards,

andy
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ