Winsxs and general Windows folder NTFS compression


Recommended Posts

Well, I have here quite massive amount of tools and backups made from Windows Vista x86 ultimate now and I have no problem smashing system up 50 times a day, if that is what it needs, but now I am begin to wonder the compatibility of NTFS Compression of this huge ass folder 'winsxs' "Side by Side" hard linked from system32 folder.

The folder is size of ~3,7Gb in system around 3,5Gb in clean installed system and it grows when you compress it you can easily squeeze it around ~1,5-2.2Gb, but there's this error I have now tested 4 times and every single time something/some service has stopped function totally after reboot. Like it would be directly linked to that compression operation. I know there is Event Logs all the 3rd party services and so on. So called solution for 'dll hell', but what I am curious. Am I missing here something now and some of those actually does support compression, if so which and why?

I know today we have large ars HDDs on our use but got really fast 22Gb HDD here on my root and that ain't gonna give up the space too much.

Also interested in same blow.. folder \Windows\System32\DriverStore which is over 1Gb.. Idiotic.. Driver storage hell there is less than 50Mb of actual drivers in machine.. and I need 1Gb driver storage.. (Ofcourse I understand that there everything needs to be covered)

Ive worked on 100s of NT4, 2K, XP, Vista systems. I strongly recommend that you never compress anything used by the OS, even infrequently. Fooling around with OS files and folders (compression, deleting, etc.) can be catastrophic and may kill your system performance.

If you need more hard drive space, just add another drive. Gigs are so cheap! If you need better performance, clean with CCleaner and defrag with Ultimate Defrag regularly.

It's not worth compressing the entire folders anyway as many of the files barely compress at all. Best to do a search by size and try to compress the biggest files if you think it's worth it. Search for all of the movie and sound files and you can get rid of a gig or so.

I was under the impression that NTFS compression is perfectly safe with system files... I was also under the impression that windows supposed to handle the compression in a way it won't break its own system

Anytime you are working with a compressed file, the OS has to decompress to view, than recompress to save. Why add all that extra processing? I suppose newer systems can handle this, but if you are a gamer, you should be tweaking your system for the best gaming performance and not add extra overhead and unnecessary foolishness

I was under the impression that NTFS compression is perfectly safe with system files... I was also under the impression that windows supposed to handle the compression in a way it won't break its own system

It should be perfectly safe. It just might hurt performance.

I did not want here any depate of how to clean your hdd or how to do something to keep it clean. I need knowledge not bull****. However professional that is from me to say it here. I expected to see here pro's only conversation not some CCleaner people trying to help. So please.. If anyone knows Why, what & how does the NTFS mess up that space of HDD while it is compressed the hardcoded files at 'system32\' will compress also ofcourse. Is that also the 'system32' space which can't be compressed then? and if so what files. hell send a list of files which cannot be compressed.

and this speed issue space & size is more important than an system speed by all means as said I got way enough speed on HDD workgrounds what I do not have is the space. I have time to test, but maybe there is someone who can tell me what is not compatible in Windows Vista folders for compression.

NTFSRatio buh, get real.. Hell I can get that **** with a simply 15 seconds script of Dirlister.

@-pats

I have also builded systems since 1987 and I am more that specialist of system optimizing as I assumed people beeing here in the first place when I raised the question. I know almost every single file through windows systems one after another and what they do. My point wasn't to asks what is dangerous or slow and what is not. What I asked was WHY I cannot do that & what hardcoded drivers will mess up and what doesn't and, if/since they do mess up as I said I have allready tryied it multible times WHY does those mess up..

BTW, I compressed winsxs and it worked fine so the problem is on your end. If you were such a "specialist of system optimizing" you wouldn't waste your time compressiing files that don't compress much anyway. That's why I recommended NTFSRatio to make it easier.

NTFSRatio buh, get real.. Hell I can get that **** with a simply 15 seconds script of Dirlister.

NTFSRatio allows you to sort the folders/files by compressed size/compression ratio and [de]compress them by right click within the interface. The dirlister I've seen is just a listing program.

yes I know NTFSRatio can do that. My point simply is that I did not ask what you people are telling me.

I asked why I cannot compress some system files and what is that thing which cannot be compressed which messes up Event log & several services like Network diagnostics. What files does it use and where those are located.

I did never ask "how to clean my drive", "how to compress those files" or "does that slow the system".. I asked quite specified questions from people who knows the system as well as I do, if they would know what might/will mess up when you compress 'winsxs' and is that same with 'system32'. Nothing else.

  • 1 year later...

In theory, compression should not cause any problems. In practice, it can.

For example, I had a recent problem trying to install IIS 7. I had compressed the winsxs folder. In particular, I had compressed this folder:

C:\Windows\winsxs\x86_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.0.6001.18000_none_10e972c4b4d2574c

The Windows Process Activation Service (which is required by many components of IIS 7) failed to install. I eventually tracked this down by looking at c:\windows\logs\cbs\cbs.log (have to take a copy of it, since the original is locked). A piece of code was failing, and giving this error:

{ (null) -> 6.0.6001.18000 Microsoft-Windows-IIS-W3SVC.Resources, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture = [l:10{5}]"en-US", VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral }

{ (null) -> 6.0.6001.18000 40ccf7524e0fba7e49a0db34996adc60, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral }

2008-05-13 19:43:16, Info CSI 0000001e ICSITransaction::Commit calling IStorePendingTransaction::Apply - coldpatching=FALSE applyflags=15 (0x0000000f)

2008-05-13 19:43:16, Info CSI 0000001f Creating NT transaction (seq 3), objectname [6]"(null)"

2008-05-13 19:43:16, Info CSI 00000020 Created NT transaction (seq 3) result 0x00000000, handle @0x13f3c

2008-05-13 19:43:19, Error CSI 00000021 (F) STATUS_INVALID_PARAMETER #5932745# from Windows::Rtl::SystemImplementation::CFile_IRtlFileTearoff::SetAttributes(Attributes = 2048 (0x00000800))[gle=0xd000000d]

2008-05-13 19:43:19, Error CSI 00000022@2008/5/13:23:43:19.556 (F) d:\rtm\base\wcp\sil\silp.h(2661): Error STATUS_INVALID_PARAMETER originated in function Windows::Rtl::SystemImplementation::CFile_IRtlFileTearoff::SetAttributes expression: Valid flags check failed: Attributes

[gle=0x80004005]

2008-05-13 19:43:24, Info CSI 00000023 Error STATUS_INVALID_PARAMETER while executing operation SetFileInformation on [l:134{67}]"\??\C:\Windows\System32\inetsrv\config\schema\rscaext.xml, N/A, N/A"

(this is after playing with it; originally, the error was on FX_schema.xml)

Decompressing all of the XML files in the above folder solved this problem and allowed me to install IIS.

Now, I do not want to dissuade you from compressing those folders - the right solution is for Microsoft to fix this and any other such issues. But I would only recommend doing so if you are prepared to diagnose such problems - with nothing to go on except something randomly not working as expected (because that will probably be the symptom).

Edited by greenreaper

Is this tiny amount of disk space really significant to you guys? How large is your hard drive?

NTFS compression is best avoided, especially for something like winsxs. Unless you like having a really slow computer.

Is this tiny amount of disk space really significant to you guys? How large is your hard drive?

NTFS compression is best avoided, especially for something like winsxs. Unless you like having a really slow computer.

I have a 60GB laptop drive on which I have shoehorned XP, Vista and several development environments and SDKs. Plus I rip videos and store photos in RAW format on it now and then. I like to make the most of the space I have. Plus, think of all the people with flash drives! :-)

I don't see why it would be particularly slower. It might even end up faster, given a fast enough CPU. NTFS compression is designed to be fast to read, and I could see the decreased disk access beating the need for decompression cycles. I typically get around a 25%-35% size saving, which is not insignificant.

Also bear in mind that these files are rarely accessed; compressing them means that defrag can move other files closer to the front of the disk, which definitely will speed their access (except for the aforementioned flash). What you really don't want to do is compress something you write to regularly, like a database or mail store, as doing so is likely to be very painful.

Edited by greenreaper

how are you viewing the size of the winsxs folder?

"NTFS Compression of this huge ass folder 'winsxs' "Side by Side" hard linked from system32 folder."

Seems you do understand that most of what is in winsxs are hardlinks.. So they are not taking up space, they are link to the space that the file is taking up.. So yes tools can report the folder as size X.. but in reality is not.

I would really suggest you stop wasting time looking to shaving a few gig here or there in your OS/Program files -- if your running out of space for what you want to do.. Then get a bigger drive -- its seems clear that 60GB drive in your laptop is too small for what you want to do.. So what your going to squeeze what 1 or 2 GB of space by compressing all of your system/program files?

Lets see "25%-35%", you state "The folder is size of ~3,7Gb" so lets round it up to 4GB of real space -- forget the hardlinks.. So your dicking around trying to compress system files for a savings of 35% of 4GB = 1.4GB?? Really? But not really --- since the winsxs is hardlinks!! But lets call it real space.

How about you buy a new hard drive??

I'm quite sure you can find a 120GB 7200 rpm 3GB sata laptop drive for like $100 --- thats double the size you have, and more than likely a faster drive as well. Would that not be money and time better spent, then dicking around trying to squeeze a few hundred MB out of a compressing system files?? For a few bucks more you could get a 160GB drive, etc.

So lets say you can squeeze 2GB extra out of your drive by compressing system files.. At 120GB for $100 your looking what less than 85 cents a GB or 1.4 * .85 a $1.20 ---> So your dicking around with compressing system files for $1.20???

Get a bigger HDD if your out of space ;)

Edited by BudMan
Seems you do understand that most of what is in winsxs are hardlinks.. So they are not taking up space, they are link to the space that the file is taking up.. So yes tools can report the folder as size X.. but in reality is not.

The savings are the same. It just means the "real" file ends up compressed (though arguably the one in winsxs is just as real) - the very files that are not normally modified by the operating system and hence are ripe targets for compression.

In addition, this compresses all the features that you have not installed.

... How about you buy a new hard drive. ...

Where would the fun be in that? :) My objective is to get the most out of the hardware that I have. I find this sort of thing amusing; that's why I'm here. I don't recommend it for those who don't.

  • 1 year later...
...I would really suggest you stop wasting time looking to shaving a few gig here or there in your OS/Program files -- if your running out of space for what you want to do.. Then get a bigger drive -- its seems clear that 60GB drive in your laptop is too small for what you want to do.. So what your going to squeeze what 1 or 2 GB of space by compressing all of your system/program files?

...How about you buy a new hard drive??

...

Get a bigger HDD if your out of space ;)

The above response doesn't even begin to answer the question!! The issue has nothing at all to do with the price of hard drives. For example, I use a laptop Macbook Pro with a 120 GB hard drive, partitioned with dual boot system with Vista NTFS drive having a maximum of 26 GB. The winsxs subfolder is eating up 11 GB of this drive right now, with hardly any programs installed!

This means my Vista can't update to SP2 and crashes during the update process.

A more realistic view at this problem is looking at the HD size as finite and final - as something that can't be altered or updated. (A new expensive macbook pro drive would be required, the whole multiboot system moved, etc, etc. Forget it).

Just by looking at a few forums at the web this is a problem for a lot of people. For hundreds of different reasons. And it's not going to go away by simply suggesting people buy new hard drives, unless of course, Microsoft is willing to take the cost for it...

So the only realistic thing to do is either compressing the folder (or major parts of it) or erasing stuff that's not required from it. This is what needs to be answered.

Edited by schatz87

So your spending time searching the web finding other "____"s that don't understand how the winsxs folder works either -- good for you!

http://blogs.msdn.com/e7/archive/2008/11/19/disk-space.aspx

"In practice, nearly every file in the WinSxS directory is a “hard link” to the physical files elsewhere on the system—meaning that the files are not actually in this directory. For instance in the WinSxS there might be a file called advapi32.dll that takes up >700K however what’s being reported is a hard link to the actual file that lives in the Windows\System32, and it will be counted twice (or more) when simply looking at the individual directories from Windows Explorer."

"While it’s true that WinSxS does consume some disk space by simply existing, and there are a number of metadata files, folders, manifests, and catalogs in it, it’s significantly smaller than reported. The actual amount of storage consumed varies, but on a typical system it is about 400MB. While that is not small, we think the robustness provided for servicing is a reasonable tradeoff."

My statement still stands -- if what your doing is filling up your yes finite HDD.. Get a bigger one.

As to your macbook pro drive?? Dude I don't care what brand you bought, or how expensive you think it is?? 2.5 Laptop drives are very Reasonable in price -- if yours is too small for what your doing "dual boot" for example.. Vs wasting your time trying to squeeze a gig here and a gig there out of your OS.. Get a drive better suited in size for what your wanting to do.

"(A new expensive macbook pro drive would be required, the whole multiboot system moved, etc, etc. Forget it)." Not sure what you think is expensive -- when you dropped how much on your Macbook Pro??

160GB 2.5" drives are about $50... To double your 120GB to 250GB your talking about $55 to $75... Really Breaking the Bank there!

As to your 11GB being used by winsxs.. Read the link I gave -- I HIGHLY doubt its 11GB since its mostly links to files..

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Ocenaudio 3.19.3 by Razvan Serea  Ocenaudio is a full featured, fast and easy to use audio and music editor. It is the ideal software for people who need to edit and analyze audio files without complications. Ocenaudio also has powerful features that will please more advanced users. To assist ocenaudio development, a powerful toolset of audio editing, analysis and manipulation called Ocen Framework was created. ocenaudio is also based on Qt framework, a well known library for cross-platform development. Cross-platform support ocenaudio is available for all major operating systems: Microsoft Windows, Mac OS X and Linux. Native applications are generated for each platform from a common source, in order to achieve excelent performance and seamless integration with the operating system. All versions of ocenaudio have a uniform set of features and the same graphical interface, so the skills you learn in one platform can be used in the others. VST plugins support Ocenaudio supports VST (Virtual Studio Technology) plugins, giving its users access to numerous effects. Like the native effects, VST effects can use real-time preview to aide configuration. Real-time preview of effects Applying effects such as EQ, gain and filtering is an important part of audio editing. However, it is very tricky to get the desired result by adjusting the controls configuration alone: you must listen the processed audio. To ease the configuration of audio effects, ocenaudio has a real time preview feature: you hear the processed signal while adjusting the controls. The effect configuration window also includes a miniature view of the selected audio signal. You can navigate on this miniature view in the same way as you do on the main interface, selecting parts that interest you and listening to the effect result in real time. Multiselection for delicate editions To speed up complex audio files editing, ocenaudio includes multi-selection. With this amazing tool, you can simultaneously select different portions of an audio file and listen, edit or even apply an effect to them. For example, if you want to normalize only the excerpts of an interview where the interviewee is talking, just select them and apply the effect. Eficient edition of large files With ocenaudio, there is no limit to the length or the quantity of the audio files you can edit. Using an advanced memory management system, the application keeps your files open without wasting any of your computer's memory. Even in files several hours long, common editing operations such as copy, cut or paste happen almost instantly. Fully featured spectrogram Besides offering an incredible waveform view of your audio files, ocenaudio has a powerful and complete spectrogram view. In this view, you can analyze the spectral content of your audio signal with maximum clarity. Advanced users will be surprised to find that the spectrogram settings are applied in real time. The display is updated immediately when altering features such as the number of frequency bands, window type and size and dynamic range of the display. Ocenaudio 3.19.3 changelog: Fixes issues with MP4 files with more than 8 channels Fixes incorrect VBR detection for some CBR MP3 files Other bug fixes and improvements Download: Ocenaudio 64-bit | Portable | ~40.0 MB (Freeware) Download: Ocenaudio for Linux and Mac OS View: Ocenaudio Homepage | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • DiskGenius 6.2.0.1829 - All Versions: Free, Lite & Portable by Razvan Serea DiskGenius is a full-featured partition manager, which is designed to optimize disk usage for Windows users. It will efficiently help you recover lost data, resize/split partition, backup files, edit hex data, check bad sectors, manage virtual disks, erase data, etc.. Create a system image backup for current Windows with simple clicks to keep the operating system under protection. DiskGenius key features: Partition Management - It can create format, resize, extend, backup, split, hide and clone partition, both MBR and GPT are supported. Disk and partition conversion - Convert dynamic disk to basic, convert virtual disk format and convert MBR to GPT, convert primary partition to logical. File recovery - It can recover files deleted or emptied form recycle bin, recover files from damaged partition or disk and recover files by file type and supports file preview and file filter. Partition recovery - It is the best partition recovery program in that it can recover files from damaged, corrupted and RAW partitions, search for lost partition and recover files from it, besides, it can fix partition table. RAID recovery - It can reconstruct Virtual RAID and recover files from it, and all RAID types are supported. Sector Editor - A Hex editor is embedded to help users edit raw hex data and recover data manually. Backup and Restore - It can backup and restore partition including system partition, hard disk and partition table. Bad Tracks - It can check and repair bad sectors for all storage devices; check hard disk S.M.A.R.T. information. Delete files permanently - It can delete files permanently so that they can't be recovered by any data recovery software. Virtual Disk - It supports virtual disks, including VMware, Virtual PC and Virtual Box. Create WinPE bootable disk and you can manage disk partition when system crashes or there is no operating system on your computer. Support FAT12/FAT16/FAt32/exFAT/NTFS/EXT2/EXT3/EXT4 file system format. DiskGenius 6.2.0.1829 changelog: Add the "Disk Speed Test" feature. Add the "Windows Boot Repair and Conversion" feature. Add the BMB21-2019 erase standard to the "Erase Sectors" feature. Add support for restoring an individual partition from a PMFX disk image file. Enhanced The "Verify Or Repair Bad Sectors/Blocks" feature displays disk read speed in the detection window during scanning. The "Quick Partition" dialog box allows users to quickly select the number of partitions by pressing the numeric keys 1, 2, 7, 8, or 9. The "Set Volume Name" dialog box supports selecting preset volume labels provided by the software. The "Copy Sectors" feature supports resuming copy tasks after modifying the number of skipped bad sectors. Add the "TRIM Optimization" option to the format dialog box. The "Clone Partition" and "Clone Disk" features perform TRIM optimization on target partitions or disks before cloning. Add support for Not Equal To search conditions (prefixed with "!") when searching hexadecimal data in the sector editor. Optimize the display of capacity values in the program interface to show two decimal places. Add a minimize button to dialogs that may require long processing time. Enhance support for the ReFS file system. Enhance support for newer HIF and MP4 formats when recovering files by type. Enhance support for the EXT4 file system. Enhance compatibility of the "File Recovery" feature with special data structures. Fixed Fixed the issue that the selected file system type automatically reverted to NTFS after changing it to exFAT or EXT4 in the "Quick Partition" dialog box. Fixed inaccurate Unicode string search results in the "Sector Editor" feature. Fixed the issue that exceptions might occur when adding multiple disks in the "Erase Sectors" feature. Fixed the issue that insufficient target disk space was incorrectly reported in some cases when cloning, backing up, or restoring disks. Fixed the issue that folder modification timestamps were not preserved when copying files from ReFS partitions. Fixed the issue that Excel-format reports generated by features such as file copying or bad sector checking could not be opened when the report contained more than one million rows. Fixed the issue that folders were not displayed in the exclude-folder dialog box when backing up partitions to image files. Fixed the issue that the "Erase Sectors" feature could not be executed in some cases. Download: DiskGenius 6.2.0.1829 | 63.9 MB (Freeware, paid upgrade available) Download: DiskGenius Portable 64-bit | 40.0 MB Download: DiskGenius Portable 32-bit | 36.0 MB Download: DiskGenius Lite 64-bit | 13.4 MB Download: DiskGenius Lite 32-bit | 11.6 MB View: DiskGenius Home Page | DiskGenius Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Really? Use a better search engine https://www.google.com/search?...ourceid=chrome&ie=UTF-8
  • Recent Achievements

    • Week One Done
      agatameier earned a badge
      Week One Done
    • One Month Later
      agatameier earned a badge
      One Month Later
    • Week One Done
      ssd21345 earned a badge
      Week One Done
    • Contributor
      MarkHughes4096 went up a rank
      Contributor
    • Dedicated
      jordanspringer earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      513
    2. 2
      +Edouard
      182
    3. 3
      PsYcHoKiLLa
      143
    4. 4
      ATLien_0
      95
    5. 5
      Steven P.
      74
  • Tell a friend

    Love Neowin? Tell a friend!