Hello, i’m writing this post because i’ve not found that thing written anywhere, maybe it is just too obvious, but tried yesterday and completely change my rendering performance.
So we all know that when blender gets low on ram it simply crashes, well yesterday i was playing with grass and my poor 8gb ram couldn’t simply handle the amount of grass i needed for my scene.
over 292000 particles(path) and 10 children it simply crashed. i was looking at the ram consuming in order to get an idea on how much i could increase it, when i noticced that it didn’t crash at reaching the 8gb ram, but the 8 gb + the 3 gb of swap i had allocated.
So tried givin him 25gb of swap from the ssd disk and BAM!
could render at 3000000 particles, it just take some time when loading, it used the 8gb ram + 22 gb swap!
Well this thing is going to change my life(blender speaking)! it means i can handle very very complex scenes,
currently i am rendering on CPU, as i have the integrated graphic card. next week it’s going to arrive the gtx970 and i really hope this swap thing will work either on GPU rendering, it would simply mean you could render any complex scene on the gpu no care of the ram.
So if someone have any idea on if it goes also on gpu and eventually how to enable it, please write it down, found anything on the internet.
So, For the ones who have no idea on how to enable another swap partition, let explain the thing:
Fist, you need to have a partition to play with in your ssd.
then
apt-get install gparted
gparted is a graphical tool that let you edit your partition be VERY careful on what you do, it is a mass destruction weapon.
Identify the partition you want to use for the swap, or re-dimension it in order to have litteler partition for swap (like 20gb) and the rest for datas. before doing this copy all the data from the iterested partition on other disks of course!
Than right click on the partition you want to use as swap and go to format. in the File ssytem tipe select “linux-swap”.
click apply all changes, then right click on the same partition and click enable as linux swap.
Now you have Temporarly enabled the swap since the next reboot. make a try on rendering, and let’s see on hoe to enable it permanently.
open up a terminal
then sudo nano /etc/fstab
paste inside this line# /dev/sda7
UUID=your_partition_uuid swap swap sw 0 0
change “your_partition_uuid” to the uuid of your partition, to find out wich is, go back to gparted, right click on your partition and click on informations.
the pop up will show you various things, one of them is al line like that:
UUID: 94384803-1592-4c0f-a600-7189b3d9e497
so copy the number in the file you opened with the terminal in order to make your line like that one:
UUID=6c6e897f-625e-4bd0-9e52-b6fcce301f61 swap swap sw 0 0
and now you can reboot or simply tipe sudo mount -a
and the partition will be mounted every time.
hoping to be useful to someone, if someone told me those thing months ago that would surely had made a big change for me.