Les fichiers compressés NTFS sont-ils décompressés sur disque ou en mémoire?

Table des matières:

Les fichiers compressés NTFS sont-ils décompressés sur disque ou en mémoire?
Les fichiers compressés NTFS sont-ils décompressés sur disque ou en mémoire?

Vidéo: Les fichiers compressés NTFS sont-ils décompressés sur disque ou en mémoire?

Vidéo: Les fichiers compressés NTFS sont-ils décompressés sur disque ou en mémoire?
Vidéo: 🔧PARAMÉTRER le Panneau de Configuration NVIDIA (GAGNER et STABILISER ses FPS !) | Réglages NVIDIA - YouTube 2024, Peut
Anonim
Si vous cherchez des moyens de modifier votre système Windows pour économiser de l'espace disque, vous pouvez envisager la compression NTFS en tant qu'option. Mais si vous choisissez cette option, comment fonctionne le processus de décompression? L’article d’aujourd’hui sur le SuperUser Q & R répond aux questions d’un lecteur curieux.
Si vous cherchez des moyens de modifier votre système Windows pour économiser de l'espace disque, vous pouvez envisager la compression NTFS en tant qu'option. Mais si vous choisissez cette option, comment fonctionne le processus de décompression? L’article d’aujourd’hui sur le SuperUser Q & R répond aux questions d’un lecteur curieux.

La séance de questions et réponses d’aujourd’hui nous est offerte par SuperUser, une sous-division de Stack Exchange, un groupe de sites Web de questions-réponses dirigé par la communauté.

La question

Lecteur SuperUser CausingUnderflowsEverywhere veut savoir si les fichiers compressés NTFS sont décompressés sur disque ou en mémoire:

How does NTFS decompression work in Windows? According to Microsoft, NTFS decompression is done by expanding the file, then using it. That sounds right, but my question is how does this process occur technically?

Does Windows load the compressed file into memory, expand it in memory, then read it from memory? Or does it load the compressed file into memory, expand it to disk or memory, write it to disk, then read it?

I am trying to figure out if I can improve my computer’s performance by using NTFS compression. That way, a slow hard drive or SSD that is unable to handle that many write operations will always have less data to write and read, and the powerful processor that is idling most of the time can decompress the files and improve my computer’s storage speed and health.

Les fichiers compressés NTFS sont-ils décompressés sur disque ou en mémoire?

La réponse

Le contributeur SuperUser Ben N a la réponse pour nous:

Windows decompresses files into memory. Doing it to disk would completely obliterate any speed improvements and would cause a lot of unnecessary disk writing. See the end of this Microsoft blog article on NTFS sparse files and compression.

Of course, if you are low on memory, the memory used by the decompression process could cause other memory be paged out and written to disk in the page file. Fortunately, only the chunks containing sections that your programs actually read will be decompressed. NTFS does not have to decompress the whole thing if you only need a few bytes.
Of course, if you are low on memory, the memory used by the decompression process could cause other memory be paged out and written to disk in the page file. Fortunately, only the chunks containing sections that your programs actually read will be decompressed. NTFS does not have to decompress the whole thing if you only need a few bytes.

If your SSD is fast, you are probably not going to get any speed improvements from NTFS compression. It is conceivable that the time your processor spends decompressing data plus the time your disk spends reading the compressed data could add up to be more than the time your SSD takes to read the uncompressed data.

It also depends on the size of the files you work with. The minimum size of a compressible file ranges from 8 – 64 KB, depending on your cluster size. Any files less than that in size will not be compressed at all, but a tiny amount of bookkeeping would be added. If you do a lot of writing to compressed files, you could see a lot of variance in speed due to the compression algorithm used (LZ).

Further Reading

How Does NTFS Compression Affect Performance?

Avez-vous quelque chose à ajouter à l'explication? Sound off dans les commentaires. Voulez-vous lire plus de réponses d'autres utilisateurs de Stack Exchange doués en technologie? Découvrez le fil de discussion complet ici.

Crédit d'image: Jannis Andrija Schnitzer (Flickr)

Conseillé: