Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Constantly running out of disk space on my 6GB RamDrive with a 200mb solution
ivanz
#1 Posted : Friday, April 20, 2012 1:51:51 PM(UTC)
Rank: Member

Groups: Registered
Joined: 2/28/2012(UTC)
Posts: 12
Location: London, United Kingdom

Was thanked: 1 time(s) in 1 post(s)
My solution is 200MB clean and 250MB when build. I am using a 6GB RamDrive for NCrunch and it's constantly getting full and out of space. It happens so often that NCrunch is starting to get in my way (I have to disable it, format the drive and re-enable it).

I don't have anything special about my solution - NuGet with package restore enable and the .nuget directory added to the NCrunch "Include additional files" on solution and project level and the other thing is PostSharp.

How can I help fix this?

P.S: This topic should probably be in "Daily Usage Issues"
Remco
#2 Posted : Friday, April 20, 2012 10:27:34 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
I think the first thing to identify would be what is eating up so much space in the NCrunch workspace. NCrunch can and will duplicate your projects inside the workspace, though not normally more than would be required to run things in parallel - so using more than 6GB on a 250MB solution seems quite extreme.

How much space is used by your nuget packages? NCrunch will copy/duplicate these to EVERY workspace, so if you have a large number of projects using many nuget references, this could get very hungry. Also, do you have any large resource files that are shared between projects that you've identified by using the 'Additional files to include' setting?
ivanz
#3 Posted : Friday, April 20, 2012 10:29:30 PM(UTC)
Rank: Member

Groups: Registered
Joined: 2/28/2012(UTC)
Posts: 12
Location: London, United Kingdom

Was thanked: 1 time(s) in 1 post(s)
Remco;1716 wrote:
I think the first thing to identify would be what is eating up so much space in the NCrunch workspace. NCrunch can and will duplicate your projects inside the workspace, though not normally more than would be required to run things in parallel - so using more than 6GB on a 250MB solution seems quite extreme.

How much space is used by your nuget packages? NCrunch will copy/duplicate these to EVERY workspace, so if you have a large number of projects using many nuget references, this could get very hungry. Also, do you have any large resource files that are shared between projects that you've identified by using the 'Additional files to include' setting?


I will play around when I get the chance in the next few days, but just wanted to say that my nuget packages folder is 120MB
Remco
#4 Posted : Saturday, April 21, 2012 6:33:20 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
That does sound like it would likely be the source of most of the disk consumption. How many projects do you have in your solution?
ivanz
#5 Posted : Saturday, April 21, 2012 10:36:35 AM(UTC)
Rank: Member

Groups: Registered
Joined: 2/28/2012(UTC)
Posts: 12
Location: London, United Kingdom

Was thanked: 1 time(s) in 1 post(s)
24 projects
Remco
#6 Posted : Sunday, April 22, 2012 12:04:39 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Ok - it's almost certainly the duplication of the nuget resources then. 24 * 120 = 2880MB and then this will be duplicated again for some of the projects you're actively working in.

For the time being, I think it's a safe assumption that the layout of this solution won't fit on a RAM drive. I'll make a note in my backlog to have a think about how NCrunch may be able to handle this better. Thanks for reporting this problem!
ivanz
#7 Posted : Sunday, April 22, 2012 12:37:19 PM(UTC)
Rank: Member

Groups: Registered
Joined: 2/28/2012(UTC)
Posts: 12
Location: London, United Kingdom

Was thanked: 1 time(s) in 1 post(s)
Remco;1720 wrote:
Ok - it's almost certainly the duplication of the nuget resources then. 24 * 120 = 2880MB and then this will be duplicated again for some of the projects you're actively working in.

For the time being, I think it's a safe assumption that the layout of this solution won't fit on a RAM drive. I'll make a note in my backlog to have a think about how NCrunch may be able to handle this better. Thanks for reporting this problem!


I see. Just an idea - you could pick up NuGet presence in the solution and maybe add some smart logic (instead of "additional files") specific for NuGet which copies the packages folder only ever to a single location and then use hard link to it for each project ( Hard Links info and Hard Links in .NET/C#)
1 user thanked ivanz for this useful post.
Remco on 4/22/2012(UTC)
Remco
#8 Posted : Sunday, May 20, 2012 11:33:55 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
For anyone interested, the recently released v1.39b contains a fix that should greatly reduce the disk consumption of solutions that are using Nuget.
ivanz
#9 Posted : Tuesday, July 10, 2012 4:08:24 PM(UTC)
Rank: Member

Groups: Registered
Joined: 2/28/2012(UTC)
Posts: 12
Location: London, United Kingdom

Was thanked: 1 time(s) in 1 post(s)
Remco;1924 wrote:
For anyone interested, the recently released v1.39b contains a fix that should greatly reduce the disk consumption of solutions that are using Nuget.


Unfortunately I am still constantly running out of space if I allocate a 6GB drive for the solution with 1.40.x
Remco
#10 Posted : Wednesday, July 11, 2012 6:22:46 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Are there any obvious indications around what is taking up all the space? Can you give me a rough count of the number of project workspaces that NCrunch has created on your RAM drive? (these are basically just directories with numbered names nested underneath a directory with the same name as the ID of the devenv.exe process).
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.061 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download