Solidworks Memory Usage

User avatar
Frederick_Law
Posts: 1945
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1636
x 1467

Solidworks Memory Usage

Unread post by Frederick_Law »

Summary:
Add RAM won't solve SW out of memory problem.
Increase pagefile size will.


I got this while saving bodies out of an import file with 1000 bodies:
SW-OutOfMemory-01.jpg
RAM use was only half and only SW closed.
So I start another import (500 bodies) and watch memory use:
SW-Memory-02.jpg
Notice SW has 13GB committed and Windows show 41.4GB.
Committed go up slowly and I let it run overnight.

It didn't crash and total committed is 58GB with SW 18GB.
SW-Memory-05.jpg
Commit is when a program ask Windows for a block of memory.
So something asked Windows for 58GB which most of it is SW because it went down when SW is closed.
Committed doesn't mean used. It means Windows allocated "memory address" for that program, or reserved memory.
Total allowable "committed" is RAM + pagefile.
You can see I have 80GB = 16GB RAM + 64GB pagefile

Since SW process only show 18GB committed with 6GB RAM free, I'll say SW keep asking for RAM which it never used.

I'll say the out of memory earlier was because SW asked for more then 80GB and Windows told it no.
Instead of releasing what it allocated and didn't use, it shut itself down.

I'll run the 1000 bodies again tonight. I've add another 64GB to pagefile on another HD.
144GB on the last screenshot. SW didn't release anything even I went and change pagefile size in Windows

Let see how it looks tomorrow.

This is for my recommendation of having a large enough pagefile so SW won't crash.
The usual recommendation was 4x RAM. Some even turn it off believing 16GB or 32GB RAM is enough.
They're correct since SW only has a 3GB working set but asked for over 40GB from Windows.

This also explain why adding RAM won't resolve "running out of memory".

If you want an headache, read this:
https://superuser.com/questions/1174229 ... windows-10

The most important part:
When commit charge fills up and windows starts asking me to close things, most of the time physical memory is at around 60%. This seems horribly inefficient.
It isn't that Windows is being inefficient. It's the apps you're running. They're committing a lot more v.a.s. than they're actually using.
User avatar
AlexLachance
Posts: 2180
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2361
x 2011

Re: Solidworks Memory Usage

Unread post by AlexLachance »

Wow, how long have you been trouble shooting this Fred?

When I come in office next week I might have some little stuff to add to this.
User avatar
Frederick_Law
Posts: 1945
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1636
x 1467

Re: Solidworks Memory Usage

Unread post by Frederick_Law »

It started yesterday.
Took more time to organise and type it out.
Lots of time to think when you're making subassemblies from a 500 parts assembly.
That's why I hate multibody. People don't set it up correctly and parts are import1 import 2 .....
1 weldment, 1 machined. 2 different part. So I end up with 4 import1 to import1000.

Will run the 1000 part one tonight. Hope it won't crash.
User avatar
AlexLachance
Posts: 2180
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2361
x 2011

Re: Solidworks Memory Usage

Unread post by AlexLachance »

Ooof, geez looks like you're cleaning up someone's mess
User avatar
Frederick_Law
Posts: 1945
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1636
x 1467

Re: Solidworks Memory Usage

Unread post by Frederick_Law »

Its not really a mess. It became a mess when export and import.
If I don't get the files name right, it will be a mess.
We did one set Rev A. Its updated to B. Customer order Rev C without model.
We quote and order material from A. Need to order ASAP because material price is going up 4% a day.
So we're manually comparing Rev C drawing to Rev B model to order Rev A material.
Someone just don't realize the mistakes gonna cause more then 4%.

Its a 160in tall gearbox housing. Looks like one in 11 out.
User avatar
bnemec
Posts: 1944
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2542
x 1400

Re: Solidworks Memory Usage

Unread post by bnemec »

**
User avatar
Frederick_Law
Posts: 1945
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1636
x 1467

Re: Solidworks Memory Usage

Unread post by Frederick_Law »

Ran the Save Bodies with "Derive resulting parts from similar bodies or cut list" on the 1000 bodies part last.
It finished with 41GB committed this morning.
SW show committed 12.6GB and used 3GB.
Test-01.jpg
Will try another one with that off next week.
User avatar
elmarklammer
Posts: 14
Joined: Mon Apr 05, 2021 3:48 am
Answers: 0
x 1
x 20

Re: Solidworks Memory Usage

Unread post by elmarklammer »

Hi Frederic

Why do you export the whole thing. Why not break it down first and export it in chunks.
For large and difficult files I use the delete body feature, selection sets in combination with save-as-selected body function.
Other handy tools. Insert weldment feature and let SW collect all identical bodies.
Just a few thoughts. Hard to say what applies in your case. Not enough info. There are more tricks you could use.
Filter tree, macro to traverse bodies by name...etc.

Good luck anyways....

Elmar
User avatar
Frederick_Law
Posts: 1945
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1636
x 1467

Re: Solidworks Memory Usage

Unread post by Frederick_Law »

Because I'm testing why SW run out of memory.
SW used 3GB of RAM but asking Windows for 40GB and crash.

This is an imported file with 1000 bodies.
Bodies are named import1 to import1011.
Because its faster working in assembly. Easier to select parts and move them into subassembly.
Working in multibody part is very slow. Even just select and delete bodies is slow.
User avatar
Frederick_Law
Posts: 1945
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1636
x 1467

Re: Solidworks Memory Usage

Unread post by Frederick_Law »

Run save bodies on the 1000 bodies again last night:
SW-Memory-06.jpg
SW used 3.3GB RAM, asked for 19.3GB paged. Got a total of 63GB paged allocated. 14GB was before SW start.
So SW don't NEED 32GB of RAM. It NEED 100GB pagefile/swapfile.
User avatar
Peter De Vlieger
Posts: 52
Joined: Fri Mar 12, 2021 9:46 am
Answers: 0
x 223
x 105

Re: Solidworks Memory Usage

Unread post by Peter De Vlieger »

Quelle surprise.

In short, what lots of us have been thinking over the years is true. The program is in dire need of an overhaul because the sloppy and lazy programming of patching the patches with more patched patches has led to a program that can't efficiently use the hardware that it's supposed to run on.

But hey, don't blame it on Gian Paolo who's only been the CEO for 6 years and another 3 years being VP of R&D. I'm sure that any year now you'll see a real change and a massive improvement... really....any year... well perhaps in a few decades.
User avatar
zwei
Posts: 701
Joined: Mon Mar 15, 2021 9:17 pm
Answers: 18
Location: Malaysia
x 185
x 600

Re: Solidworks Memory Usage

Unread post by zwei »

Peter De Vlieger wrote: Wed May 05, 2021 9:11 am Quelle surprise.

In short, what lots of us have been thinking over the years is true. The program is in dire need of an overhaul because the sloppy and lazy programming of patching the patches with more patched patches has led to a program that can't efficiently use the hardware that it's supposed to run on.

But hey, don't blame it on Gian Paolo who's only been the CEO for 6 years and another 3 years being VP of R&D. I'm sure that any year now you'll see a real change and a massive improvement... really....any year... well perhaps in a few decades.
I am afraid Dassault call that changes as 3DEXPERIENCE on cloud... **
Far too many items in the world are designed, constructed and foisted upon us with no understanding-or even care-for how we will use them.
User avatar
Steen Winther
Posts: 11
Joined: Tue May 04, 2021 5:53 pm
Answers: 1
Location: Sydney, Australia
x 91
x 14
Contact:

Re: Solidworks Memory Usage

Unread post by Steen Winther »

Peter De Vlieger wrote: Wed May 05, 2021 9:11 am I'm sure that any year now you'll see a real change and a massive improvement... really....any year... well perhaps in a few decades.
Too true, unfortunately >>>
I came here from the Dark Site
User avatar
linsd
Posts: 6
Joined: Wed Mar 10, 2021 4:53 am
Answers: 0
Location: Singapore
x 8
x 13

Re: Solidworks Memory Usage

Unread post by linsd »

Have you submitted the file and the reproduction process to SOLIDWORKS technical support?
Maybe they can figure out the root cause of the unusual behavior.
Beta tester
User avatar
SPerman
Posts: 2053
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 14
x 2224
x 1874
Contact:

Re: Solidworks Memory Usage

Unread post by SPerman »

They already know. It is one of the following:

Unsupported Hardware
Corrupt Registry
Software needs to be re-installed
...
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
User avatar
Frederick_Law
Posts: 1945
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1636
x 1467

Re: Solidworks Memory Usage

Unread post by Frederick_Law »

User need training.
Don't open large import.
Don't make large assembly.
Don't use SW.
User avatar
mike miller
Posts: 878
Joined: Fri Mar 12, 2021 3:38 pm
Answers: 7
Location: Michigan
x 1070
x 1231
Contact:

Re: Solidworks Memory Usage

Unread post by mike miller »

You must be trying to do something crazy like using mates..........or making an assembly with more than three components......... ()
He that finds his life will lose it, and he who loses his life for [Christ's] sake will find it. Matt. 10:39
User avatar
zwei
Posts: 701
Joined: Mon Mar 15, 2021 9:17 pm
Answers: 18
Location: Malaysia
x 185
x 600

Re: Solidworks Memory Usage

Unread post by zwei »

Use 3DXPERIENCE~
Move it to cloud~
Drown in the glory of the SWYMP~
Far too many items in the world are designed, constructed and foisted upon us with no understanding-or even care-for how we will use them.
User avatar
phealy_lssi
Posts: 6
Joined: Wed May 12, 2021 2:51 pm
Answers: 0
Location: Orlando, FL
x 5
x 4

Re: Solidworks Memory Usage

Unread post by phealy_lssi »

User today clocked a high score of 11.7GB memory used for SW2021, with another 3GB going to Explorer/Solidworks PDM. Just had two SLDDRWs open. Time to go memory leak hunting.
Patrick Healy | IT Contractor
"Per my last email..."
User avatar
Steen Winther
Posts: 11
Joined: Tue May 04, 2021 5:53 pm
Answers: 1
Location: Sydney, Australia
x 91
x 14
Contact:

Re: Solidworks Memory Usage

Unread post by Steen Winther »

linsd wrote: Tue May 11, 2021 4:27 am Have you submitted the file and the reproduction process to SOLIDWORKS technical support?
Maybe they can figure out the root cause of the unusual behavior.
Hey, I think you forgot to use purple:
Have you submitted the file and the reproduction process to SOLIDWORKS technical support?
Maybe they can figure out the root cause of the unusual behavior.
I came here from the Dark Site
Frank_Oostendorp
Posts: 221
Joined: Tue Mar 09, 2021 7:25 am
Answers: 3
Location: Netherlands
x 184
x 229

Re: Solidworks Memory Usage

Unread post by Frank_Oostendorp »

@Frederick_Law
Data in RAM memory is the fastest, paged data is slower, could be much slower. So if RAM is not used to the available amount, speed is not optimised?
User avatar
SPerman
Posts: 2053
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 14
x 2224
x 1874
Contact:

Re: Solidworks Memory Usage

Unread post by SPerman »

The online version of Solidworks doesn't have this problem.
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
User avatar
Frederick_Law
Posts: 1945
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1636
x 1467

Re: Solidworks Memory Usage

Unread post by Frederick_Law »

Frank_Oostendorp wrote: Wed May 26, 2021 4:05 am @Frederick_Law
Data in RAM memory is the fastest, paged data is slower, could be much slower. So if RAM is not used to the available amount, speed is not optimised?
Technically, yes. We have no idea what is stored in pagefile.
Problem is SW show 10GB committed. Windows say 60GB. So SW lost 50GB.
User avatar
Frederick_Law
Posts: 1945
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1636
x 1467

Re: Solidworks Memory Usage

Unread post by Frederick_Law »

Repost from the SwYmP because the platform can't view photo properly:
Users had reported RX complaining low memory even with 32GB RAM install.

How could SW see low memory before any file is opened?

Changing Windows swap file to fixed 64GB will remove that.
While working on a STEP import with 1000 part SW crashed will low memory. With 6GB free RAM.

This is a recreate of what happened. I can repeat this with different large STEP files. So feel free to test it yourself.
Very simple steps.
Import STEP, break link, Save Body, Create Assembly. Turn Off "Derive resulting parts from similar bodies" for maximum effect.  I have it on for a quick example.
Watch Committed grow. My highest was 77GB. My pagefiles size is 64GB + 64GB.

Start with SW fresh start, 14GB committed, 7.3GB free RAM

SW used 253MB Private Byte 396MB Working Set
SW-Memory-09.jpg
After Save Body, 44GB committed, 5.3GB free RAM.

SW used 12GB Private Byte 3GB Working Set

Committed increase 44 - 14 = 30GB  SW used 12+3 = 15GB  RAM used 7.3-5.3 = 2GB

Extra in committed 30-15-2 = 13GB (not sure if committed include RAM used, assuming it is)
SW-Memory-10.jpg
Close all open files in SW, 43GB committed, 6.2GB free RAM

We free 1GB RAM and 1GB committed.  So committed include RAM
SW-Memory-11.jpg

SW will not free the committed until it's closed.
Since closing SW release all committed, they are allocated by SW
SW-Memory-12.jpg

Reopen SW, back to where we started.  So it is not a problem with other running program.
SW-Memory-13.jpg
I also observed committed grow slowly during the day with every file opened.  Closing the files does not recover all committed memory.
That's why user need to restart SW.
User avatar
Frederick_Law
Posts: 1945
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1636
x 1467

Re: Solidworks Memory Usage

Unread post by Frederick_Law »

Double screenshot is killing this forum too.
User avatar
matt
Posts: 1586
Joined: Mon Mar 08, 2021 11:34 am
Answers: 19
Location: Virginia
x 1214
x 2368
Contact:

Re: Solidworks Memory Usage

Unread post by matt »

Frederick_Law wrote: Fri May 28, 2021 10:40 am Double screenshot is killing this forum too.
Your double screen shots work better if you have a big landscape display. Maybe you could split those up if you want people to see them.
User avatar
bnemec
Posts: 1944
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2542
x 1400

Re: Solidworks Memory Usage

Unread post by bnemec »

matt wrote: Fri May 28, 2021 11:06 am Your double screen shots work better if you have a big landscape display. Maybe you could split those up if you want people to see them.
I don't understand the "double screen shot" problem. They look fine to me, I think.
User avatar
Frederick_Law
Posts: 1945
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1636
x 1467

Re: Solidworks Memory Usage

Unread post by Frederick_Law »

If I get Chrome to span both screens, I can read it.
Probably will keep them single screen.

bnemec
Can't scroll up down or side way to read the text when browser is on single screen.
User avatar
bnemec
Posts: 1944
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2542
x 1400

Re: Solidworks Memory Usage

Unread post by bnemec »

Frederick_Law wrote: Fri May 28, 2021 11:43 am If I get Chrome to span both screens, I can read it.
Probably will keep them single screen.

bnemec
Can't scroll up down or side way to read the text when browser is on single screen.
I see. I'm slow. I have the habit of right click, "open image in new tab" when I want more detail than a preview. As you say, zoom and pan would be sweet in the image viewer.
User avatar
Frederick_Law
Posts: 1945
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1636
x 1467

Re: Solidworks Memory Usage

Unread post by Frederick_Law »

Even right click doesn't work in the SwYmP. It open a low res compressed one.
User avatar
mike miller
Posts: 878
Joined: Fri Mar 12, 2021 3:38 pm
Answers: 7
Location: Michigan
x 1070
x 1231
Contact:

Re: Solidworks Memory Usage

Unread post by mike miller »

Just RMB on the picture and select "Open Link in New Tab". Then you have full resolution PLUS zoom and pan. :D
He that finds his life will lose it, and he who loses his life for [Christ's] sake will find it. Matt. 10:39
User avatar
Frederick_Law
Posts: 1945
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1636
x 1467

Re: Solidworks Memory Usage

Unread post by Frederick_Law »

I was looking for the bottom scroll bar.
I was SwYmPed.
Post Reply