xfs
[Top] [All Lists]

RE: mkfs and mount tips?

To: "'Timothy Shimmin'" <tes@xxxxxxx>, <linux-xfs@xxxxxxxxxxx>
Subject: RE: mkfs and mount tips?
From: "Leon Kolchinsky" <leonk@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Feb 2007 16:10:38 +0200
In-reply-to: <5BFF2CB07B4CB49FEC7310C7@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
Thread-index: AcdQn/HL2OHHTk4fSee/t9PiD0uWNgAaxMZQ

> -----Original Message-----
> From: Timothy Shimmin [mailto:tes@xxxxxxx]
> Sent: Thursday, February 15, 2007 3:19 AM
> To: Leon Kolchinsky; linux-xfs@xxxxxxxxxxx
> Subject: Re: mkfs and mount tips?
> 
> Hi Leon,
> 
> --On 13 February 2007 10:48:15 AM +0200 Leon Kolchinsky
> <leonk@xxxxxxxxxxxxxxxxxxxxx> wrote:
> 
> > I've also seen "–d unwritten=0" option:
> >
> > So my question:
> > Is it safe to add –d unwritten=0 option to increase performance like
> this
> > (or will I lose some essential functionality)?:
> >
> 
> My understanding (although I'm not familiar with that code),
> is that unwritten extents are used in space preallocation.
> So unless you reserve space for a file it will not have an effect.
> And if you do, then setting "unwritten=0" will speed up writes because it
> doesn't
> need to flag the unwritten extents and write out the extra transactions
> for this.
> If the unwritten extents aren't flagged as such then there can be a
> security issue
> where one can read old data (other's data) for these unwritten parts.
> In fact, the security issue on preallocation (1997-98 sgi-pv#705217) was
> what motivated
> the idea of flagging extents as unwritten in the first place.
> 

Thanks for clearing that out :)

> --Tim



<Prev in Thread] Current Thread [Next in Thread>