delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/24/13:38:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sat, 24 May 2003 13:38:11 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: SPARSE files considered harmful - please revert
Message-ID: <20030524173811.GA5141@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <16072 DOT 6666 DOT 10124 DOT 338022 AT gargle DOT gargle DOT HOWL> <00f301c31e12$c29efdb0$6400a8c0 AT FoxtrotTech0001> <00be01c31e15$944d0d50$78d96f83 AT pomello> <005601c31e26$77671260$6400a8c0 AT FoxtrotTech0001> <20030519175913 DOT GA24066 AT redhat DOT com> <008001c31e5e$39c0c680$6400a8c0 AT FoxtrotTech0001> <20030520024151 DOT GA1812 AT redhat DOT com> <badft3$9r8$1 AT main DOT gmane DOT org> <3ECF2615 DOT 4080108 AT lapo DOT it>
Mime-Version: 1.0
In-Reply-To: <3ECF2615.4080108@lapo.it>
User-Agent: Mutt/1.4.1i

On Sat, May 24, 2003 at 09:58:13AM +0200, Lapo Luchini wrote:
>Rolf Campbell wrote:
>
>>>3) What no one seems to be mentioning is that we are trying to emulate
>>>UNIX behavior here.  If the above is an issue for Windows then it could
>>>also be an issue for UNIX.
>>
>>And it is. 
>
>e.g. from FreeBSD 4.8's "man mmap":
>
>  WARNING!  Extending a file with ftruncate(2), thus cre-
>  ating a big hole, and then filling the hole by modify-
>  ing a shared mmap() can lead to severe file fragmenta-
>  tion.  In order to avoid such fragmentation you should
>  always pre-allocate the file's backing store by
>  write()ing zero's into the newly extended area prior to
>  modifying the area via your mmap().  The fragmentation
>  problem is especially sensitive to MAP_NOSYNC pages,
>  because pages may be flushed to disk in a totally ran-
>  dom order.

And so, my point is proved.

Thanks.  The feature stays.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019