[Patches] [ python-Patches-1587674 ] Patch for #1586414 to avoid fragmentation on Windows
SourceForge.net
noreply at sourceforge.net
Mon Nov 6 18:19:38 CET 2006
Patches item #1587674, was opened at 2006-10-31 05:05
Message generated for change (Comment added) made by enochjul
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1587674&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.6
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Enoch Julias (enochjul)
Assigned to: Nobody/Anonymous (nobody)
Summary: Patch for #1586414 to avoid fragmentation on Windows
Initial Comment:
Add a call to file.truncate() to inform Windows of the
size of the target file in makefile(). This helps
guide cluster allocation in NTFS to avoid fragmentation.
----------------------------------------------------------------------
>Comment By: Enoch Julias (enochjul)
Date: 2006-11-06 17:19
Message:
Logged In: YES
user_id=6071
I have not really tested FAT/FAT32 yet as I don't use these
filesystems now.
The Disk Defragmenter tool in Windows 2000/XP shows the number of
files/directories fragmented in its report.
NTFS does handle growing files, but the operating system can only do
so much without knowing the size of the file. Extracting from
archives consisting of only several files does not cause
fragmentation. However, if the archive has many files, it is much
more likely that the default algorithm will fail to allocate
contiguous clusters for some files. It may also depend on the amount
of free space fragmentation on a particular partition and whether
other processes are writing to other files in the same partition.
Some details of the cluster allocation algorithm used in Windows can
be found at http://support.microsoft.com/kb/841551.
----------------------------------------------------------------------
Comment By: Lars Gustäbel (gustaebel)
Date: 2006-11-01 15:27
Message:
Logged In: YES
user_id=642936
Is this merely an NTFS problem or is it the same with FAT fs?
How do you detect file fragmentation?
Doesn't this problem apply to all other modules or scripts
that write to file objects as well?
Shouldn't a decent filesystem be able to handle growing
files in a correct manner?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1587674&group_id=5470
More information about the Patches
mailing list