| Windows 7: Moving the winsxs folder |
13 Jul 2011
|
#11 | | XP, Vista, W7, all flavors |
I went ahead and looked at the winsxs folder using a tool called ctts.exe (calculates usage and then subtracts the amount due to duplicated inodes). Mine is a pretty fresh install, and I have 6.05GB in there + 98MB due to hard links. | My System Specs |
| OS XP, Vista, W7, all flavors |
13 Jul 2011
|
#12 | | |
Hmmm...might have to revist this topic under Windows 7 to see if there are not as many hardlinks as MS led people to believe. If there are legit files in C:\windows\winsxs..they would take space. But my understanding was that these files were Mostly (80%+) hardlinks. However, ctts.exe seems to say otherwise...as it shows my 5.8GB of C:\windows\winsxs consists of only 75MB of hard links and 5.7GB of actual files. Most everything I have read in the past was reverse of this in Technet...meaning 75MB of files with over 5GB of hard links. | My System Specs | | System Manufacturer/Model Number Self-Built in July 2009 OS Windows 7 Ultimate x64 CPU Intel Q9550 2.83Ghz OC'd to 3.40Ghz Motherboard Gigabyte GA-EP45-UD3R rev. 1.1, F12 BIOS Memory 8GB G.Skill PI DDR2-800, 4-4-4-12 timings Graphics Card EVGA 1280MB Nvidia GeForce GTX570 Sound Card Realtek ALC899A 8 channel onboard audio Monitor(s) Displays 23" Acer x233H Screen Resolution 1920x1080 Keyboard ABS M1 Mechanical Mouse Logitech G9 Laser Mouse PSU Corsair 620HX modular Case Antec P182 Cooling stock Hard Drives Intel X25-M 80GB Gen 2 SSD
Western Digital 1TB Caviar Black, 32MB cache. WD1001FALS Internet Speed 15/2 cable modem Other Info Windows and Linux enthusiast. Logitech G35 Headset. |
13 Jul 2011
|
#13 | | |
Almost every single file in WinSxS is a hardlink. File that are not hardlinked in WinSxS are in hibernation, not currently in used. But moving WinSxS will not reclaim any thing. A file is only removed if all the hardlinks are removed. Link Shell Extension will give a visual indicator of all hardlinks in a directroy. As well as a tab in the properties for hardlinks.
On my system there is about 3 GBs worth of hardlinks in the WinSxS folder, it is also under 5 GB in total size.
Last edited by logicearth; 13 Jul 2011 at 07:09 PM..
| My System Specs | | System Manufacturer/Model Number Alienware Aurora ALX R4 OS Windows 7 x64 (SP1) CPU Intel Core i7-3930K (3.2GHz, Turbo 4GHz) Motherboard Alienware Aurora-R4 x79 Memory 4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz) Graphics Card Nvidia Geforce GTX 690 (Stock) Sound Card RealTek Integrated Audio Monitor(s) Displays Dell UltraSharp U3011 Screen Resolution 2560x1600 Other Info Dell Inspiron Mini 10v (Intel Atom N270 1.6 GHz; 1GB; Windows 7 Ultimate) |
13 Jul 2011
|
#14 | | |

Quote: Originally Posted by ultralame I went ahead and looked at the winsxs folder using a tool called ctts.exe (calculates usage and then subtracts the amount due to duplicated inodes). Mine is a pretty fresh install, and I have 6.05GB in there + 98MB due to hard links. You used that tool in the wrong way. It needs to look at the whole drive not just the WinSxS folder. | My System Specs | | System Manufacturer/Model Number Alienware Aurora ALX R4 OS Windows 7 x64 (SP1) CPU Intel Core i7-3930K (3.2GHz, Turbo 4GHz) Motherboard Alienware Aurora-R4 x79 Memory 4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz) Graphics Card Nvidia Geforce GTX 690 (Stock) Sound Card RealTek Integrated Audio Monitor(s) Displays Dell UltraSharp U3011 Screen Resolution 2560x1600 Other Info Dell Inspiron Mini 10v (Intel Atom N270 1.6 GHz; 1GB; Windows 7 Ultimate) |
13 Jul 2011
|
#15 | | |
hard links or not in vista anyway if you had a 20 gig drive and windows and everything else was using 5 gigs, winsxs was reporting 4.7 gigs, and you tried to add 12 gigs of files to your c drive you would get told not enough room. now in 7 they may have fixed that i honestly do not know. now once you moved the winsxs to say d in vista your free space in windows did increase by the full 4.7 gigs that winsxs was claiming it was. | My System Specs | | OS Windows 7 Ultimate CPU Core2Duo E8400 Motherboard Asus Rampage Formula Rev. 1 Memory 5 Gigs Graphics Card Asus Nvidia 9500 Gt Sound Card Creative X-Fi Extreme Audio Monitor(s) Displays 18 Inch LCD Screen Resolution 1366x768 PSU 600 watts Hard Drives c: wd 300 gig velociaptor, wd 1tb, wd 500 gig, wd 320 gig, and 2 wd 40 gig ide drives |
06 Nov 2011
|
#16 | | Windows 7 Professional x64, Windows xp 32, Unbuntu 10.4, DSL, Android 3.3 |
I am aware that winsxs is mainly hardlinks thus it does not take up much space.
From what I have read the idea is if you uninstall a program that has a shared .dll or similar these are not deleted from the disk as the link remains in winsxs?
Thus on a fresh install winsxs should be all hard links and only technically begins to take up space when you uninstall/remove something?
Thus the file physically exists on the drive (SSD) and remains even if one link is deleted.
So why not create a symbolic link of the folder to a slower drive; most likely it won't save you any space immediately but over time you will find more of the links become "active" (ie. they are the only link to the physical data) - would this cause a physical transfer of the file from the SSD to the HD, thus saving space? | My System Specs | | System Manufacturer/Model Number Lenovo W520 OS Windows 7 Professional x64, Windows xp 32, Unbuntu 10.4, DSL, Android 3.3 CPU i7 2820QM Memory 8 GB Graphics Card Nvidia Quadro 2000M Monitor(s) Displays 16.4" HD Hard Drives 120 SSD
200 HD |
06 Nov 2011
|
#17 | | |
If I finally understand what you are talking about, I think what you really want is one of the newer z68 motherboards with the smart response system for ssd's. | My System Specs | | System Manufacturer/Model Number Insane hobo technologies. ;-) OS Windows 7 x64 CPU Intel i7 2600k Motherboard Asrock z68 extreme 4 gen 3 Memory G.skill Ripjaw 16gigs @ 1866 Graphics Card Nvidia gtx580 (evga) Sound Card Integrated HD audio + hdmi Monitor(s) Displays 24" ASUS widescreen + 42" insignia Screen Resolution 1080p (1920x1080) Keyboard Microsoft wireless 3000 (v2) Mouse MS - wireless 5000 (bluetrack) PSU 1 kilowatt SLI/Crossfire rated Silverstone modular Case NZXT Phantom + additional 220 fan Cooling Zalmann Hard Drives 128 Samsung 830
256 Samsung 840
3 x 1tb storage drive (various)
1 western digital 1tb (eSATA)
1 Seagate 1tb (eSATA) Internet Speed depends on if you ask me or my provider. Other Info The above information is provided as is, and the author assumes no responsibility for issues it may cause with your sanity or fanboyism. |
06 Nov 2011
|
#18 | | Windows 7 Professional SP1 32-bit Fantasyland |
Stubborn little myth, that "WinSxS is almost all hardlinks" thing...it isn't. Most of it is actual files, and these files are actual copies of real, live system/app files.
If they weren't, then how would one ever be able to reinstall deleted files?
Where would sfc /scannow get missing/corrupted files from in order to replace them if not from winsxs?
And how would anyone be able to upgrade their Windows edition in-place without, say, a huge download? | My System Specs | | System Manufacturer/Model Number Custom-built OS Windows 7 Professional SP1 32-bit CPU Intel Core 2 Duo E6600 2.4GHz, overclocked to 2.7GHz Motherboard Asus PL5D2 Memory 4GB DDR2-667 (4x1GB in dual-channel config) Graphics Card nVidia GeForce 9800 GT Sound Card Creative X-Fi XtremeMusic Monitor(s) Displays Acer Screen Resolution 1920x1200 (DVI) Keyboard Standard Mouse Microsoft wireless optical mouse PSU Antec TruePower 2.0 Case Cooler Master Centurion Cooling various fans Hard Drives OCZ SSD Vertex Plus 60GB SATA (Firmware 3.55), 64MB cache
Hitachi HD321KJ SATA, 320GB, 7200rpm, 16MB cache Internet Speed DSL; ~330KB/sec down, ~110KB/sec up Other Info Have a laptop too :) (Compaq CQ60 also with Win7 Pro SP1 32-bit)
Drives in both systems:
C: - Windows 7 + apps. Pagefile is fixed size and located at the very end of the partition.
D: - various temp files/cache for Firefox and apps/games.
E: - videos, music, misc. storage, torrent downloads, etc. |
06 Nov 2011
|
#19 | | |
Corazon, they are hardlinks. The reason SFC can restore files delete by using WinSxS because when you delete a hardlink the file is never truely deleted until every single hardlink to the file is deleted.
Attached is a ZIP files containing a large text file that list all the hardlinks within WinSxS from my system. | My System Specs | | System Manufacturer/Model Number Alienware Aurora ALX R4 OS Windows 7 x64 (SP1) CPU Intel Core i7-3930K (3.2GHz, Turbo 4GHz) Motherboard Alienware Aurora-R4 x79 Memory 4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz) Graphics Card Nvidia Geforce GTX 690 (Stock) Sound Card RealTek Integrated Audio Monitor(s) Displays Dell UltraSharp U3011 Screen Resolution 2560x1600 Other Info Dell Inspiron Mini 10v (Intel Atom N270 1.6 GHz; 1GB; Windows 7 Ultimate) |
10 Dec 2011
|
#20 | | |
So basically what has been said is that this folder is reporting larger used space than is actually being used. Between this thread and the other referenced called WinSXS Folder not actually consuming lots of space
I think most of use can get a handle on what is happening.
But what about third party programs. (I'm talking about SSD drives) My SSD is 80GB. Windows 7 plus 3 or 4 of the newer games and this drive is full. (no hibernate, pagefile move to a fast HDD) Third party programs do not understand about hard links. They just ask windows how much space is available. If there is not enough, well your screwed then. It is great to now know what is going on with the winsx Dir. But that does not help real world use for SSD's
There needs to be a way to reduce or be able to move this dir to another drive (for advanced users). I have removed the SP1 backup files with dism/ & diskcleanup, & cleanmgr sageset/run, but my winsx dir is still over 10GB as windows reports it (57K of files & links) that can not be used to install other programs to the fastest drive I have.
Just for kicks, I made a back up image of my Windows 7 instal. Then deleted 9gb of the oldest files in winsx. I got about 4gb back. I installed a couple more big programs just to fill the drive. As I suspected, when I installed the last program that needed more space than what windows explorer reported, it would not install. winsx grew some in size during this exercise. The system was stable until patch Tuesday. Installing updated hosed the win install. It would boot, then freeze, or sometimes reboot itself, but never got back to the desktop.
I want MS to put a method out in the wild to help me (us) get back that space on SSD's. 12.5% of my SSD is basically not usable, and I want it back. | My System Specs | | Moving the winsxs folder problems? All times are GMT -5. The time now is 05:21 AM. | |