Ted Ts'o wrote spd_readdir.c
(http://marc.info/?l=mutt-dev&m=107226330912347&w=2) to improve the
performance of some applications when reading the directory. As I
understand it, the standard system calls may not traverse in inode
order, and so can be much slower.
I am taking another crack at using this, since some backups are taking
over a day for me.
If I use it, it would be with an application that will be accessing both
ext3 and other (specifically, Reiser) filesystems. Does anyone know if
it is safe to use in that context?
Thanks.
Ross
For reference, here's the code:
/*
* readdir accelerator
*
* (C) Copyright 2003 by Theodore Ts'o.
*
* %Begin-Header%
* This file may be redistributed under the terms of the GNU Public
* License.
* %End-Header%
*
*/
if (dirstruct->dir) {
(*real_seekdir)(dirstruct->dir, offset);
return;
}
dirstruct->pos = offset;
}
_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users
05-09-2008, 05:49 AM
Andreas Dilger
LD_PRELOAD library to speed directory traversal
On May 08, 2008 11:25 -0700, Ross Boylan wrote:
> Ted Ts'o wrote spd_readdir.c
> (http://marc.info/?l=mutt-dev&m=107226330912347&w=2) to improve the
> performance of some applications when reading the directory. As I
> understand it, the standard system calls may not traverse in inode
> order, and so can be much slower.
>
> I am taking another crack at using this, since some backups are taking
> over a day for me.
>
> If I use it, it would be with an application that will be accessing both
> ext3 and other (specifically, Reiser) filesystems. Does anyone know if
> it is safe to use in that context?
Yes, in fact for many filesystems the "inode number" does map in some
manner to disk offsets.
Please report your results here, as there isn't a lot of feedback about
using this code.
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.
_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users