MSFN Forum: Install.wim rebuild Size - MSFN Forum

Jump to content



vLite Forum Rules

If you are having issues with Windows after removing components and have come to ask for help, please attach (not paste) your Last Session.ini file to your post to facilitate quicker assistance.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Install.wim rebuild Size might of figured out a way to estimate its size during rebuild Rate Topic: -----

#1 User is offline   Legolash2o 

  • W7T Pogrammer
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,129
  • Joined: 09-February 07

  Posted 09 November 2007 - 10:50 PM

Ok firstly all the sizes are in bytes and are taken from "size on disk" reading (when you click properties on an file/folder you get size and size on disk).

I think i have figured out a way to estimate the size of the install.wim for the rebuild process because at the moment you get just whatever its done so far i.e. 345MB. But with this idea if it works it will shows an estimate i.e. "Rebuilding.... 345.17 / 1300.85MB" :D

Ok ive gotten the size of the VsTemp19 folder in vLite temp folder in bytes and install.wim size in bytes too after rebuild(remember using "Size on Disk")

1st Test
VsTemp19: 6,545,445,238
Install.wim: 1,558,495,232
VsTemp19 / Install.wim = 4.19 (i have rounded the decimals)
2nd Test
VsTemp19: 6,162,133,366
Install.wim: 1,463,308,288
VsTemp19 / Install.wim = 4.2
3rd Test
VsTemp19: 5,555,974,518
Install.wim: 1,306,759,168
VsTemp19 / Install.wim = 4.3

Result
The Install.wim is around 4.2-4.3x smaller than the VsTemp19 Folder
So lets say i use 4.25 (average), excel said it was 4.22 but oh well

If i made a random vlite and its VsTemp19 folder was 5,555,974,518bytes and then divide that by 4.25 i get 1,307,288,121.88bytes

for the people who cant be assed to do maths i'll divide that by 1048576 (so its in MB) = 1246.73MB

So the install.wim during the rebuild process is going to be around 1246.73MB, so on the rebuilding process it would say "Rebuilding 345.17 / 1246.73MB" (remember that its just an estimate but it will give the user an idea of how long they have to wait).

Simple Explanation

VsTemp19 / 4.25 = A
A / 1048576 = Estimated Size of install.wim

(VsTemp19 / 4.25) / 1048576 = install.wim

For Nuhi: Have to get it before vlite clears the vstemp19 folder when on the rebuild process

Conlusion(Usining 4.25 with tests 1,2 & 3)

Test1
VsTemp19: 6,545,445,238
Estimated Install.wim = 1468.76MB
Actual install.wim = 1486.30MB

Test2
VsTemp19: 6,162,133,366
Estimated Install.wim = 1382.75MB
Actual install.wim = 1395.52MB

Test3
VsTemp19: 5,555,974,518
Estimated Install.wim = 1246.73MB
Actual install.wim = 1246.22MB

As you can seeit actually works, it has pretty close like if using 4.25 test 1 is 22.46MB off and in test 3 is only 0.51MB off!!

P.S. Excel did all the calculations for me so im not a maths genius lmao

This post has been edited by legolash2o: 10 November 2007 - 06:44 AM



#2 User is offline   nuhi 

  • ON PAUSE - nLite & vLite human.dll
  • Group: Developers
  • Posts: 4,299
  • Joined: 25-October 03

Posted 10 November 2007 - 10:46 AM

If it is that stable prediction I'll add it and we'll see.

I just hope that size calculation does not take too long because of so many files, it usually does and I'm not willing to wait even 10 seconds extra for this cosmetic upgrade.
Just so you understand if I don't do it, thx anyway.

#3 User is offline   Legolash2o 

  • W7T Pogrammer
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,129
  • Joined: 09-February 07

Posted 10 November 2007 - 10:51 AM

size calulation when on properties takes about 3 secs, you dont need to count everyfile, just the size of the mount folder(VsTemp19). once you got the size of the folder the program would do the rest in less than a second. I can live without this feature anyway just thought i'd post my findings :)

EDIT If you decide not to add this idea thingy then just delete this topic :P

This post has been edited by legolash2o: 10 November 2007 - 10:53 AM


#4 User is offline   nuhi 

  • ON PAUSE - nLite & vLite human.dll
  • Group: Developers
  • Posts: 4,299
  • Joined: 25-October 03

Posted 11 November 2007 - 04:02 PM

3 seconds? It is 8 seconds on my pc, that's borderline. Maybe you got offended judging from that lame reply about deleting this topic but for my standards vLite is too slow. Not completely my fault since there is tens of thousands of files but I believe it can go faster. 10 seconds is not nothing if that feature isn't really needed. You pressed Apply, what good is it if you find out 30 seconds before how big it will be, why spend 10 seconds for the calculation. And yeah you need to get info on every file, there is no folder size option in the code.

#5 User is offline   Legolash2o 

  • W7T Pogrammer
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,129
  • Joined: 09-February 07

Posted 11 November 2007 - 04:38 PM

nah i wasnt offended at all n yep 3 seconds, slower on my other pc, but every file! no point lol :), so how would u think vlite can go faster, i think its fine how it is now except the rebuild speed but its still ok and not really a big deal.

#6 User is offline   nuhi 

  • ON PAUSE - nLite & vLite human.dll
  • Group: Developers
  • Posts: 4,299
  • Joined: 25-October 03

Posted 11 November 2007 - 06:29 PM

64bit removal is too slow because there are double the files, gonna try multithreading but the HDDs are the bottleneck so maybe I can't help it.

#7 User is offline   jamieo 

  • Junior
  • Pip
  • Group: Members
  • Posts: 95
  • Joined: 17-October 04

Posted 24 November 2007 - 06:20 PM

View Postnuhi, on Nov 11 2007, 06:29 PM, said:

64bit removal is too slow because there are double the files, gonna try multithreading but the HDDs are the bottleneck so maybe I can't help it.

Would be interesting to see how multithreading helps as I recently got core2duo and noticed vLite only uses one core...

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy