Bluefin does not use swap

salve

Cadet
Joined
Dec 27, 2022
Messages
5
Hello
Bluefin does not use my swap space. htop shows 0kB/0kB und swapon -s shows nothing.
If I boot Angelfish again, htop and swapon shows and use my swap.
I came up with it because my VM's crashes due to too little RAM.
As a test I installed Bluefin on another pc and made a new mirror-pool with 2x2TB and Bluefin is using no swap but Angelfish does.
If I test Bluefin in a VM with 8GB ram it's using swap.

My main-NAS has 16GB ECC and 3x3TB raidz1
My WIN10-VM with 8GB RAM crashed after starting crystal-disk-bench.
I strugle also with linux-vm and 6G ram.

Can I force to use swap or is this a bug?
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
Look in Jira to see if this has been reported already.

I came up with it because my VM's crashes due to too little RAM.
SWAP Space does not make up for lack of RAM. Maybe try to make your Win-VM use 2GB RAM. Also make sure you are not using RAM elsewhere when doing these tests. If you do plan to run VM's like this, you are going to need more RAM.

Good Luck! It's good to see people testing this stuff out.
 

salve

Cadet
Joined
Dec 27, 2022
Messages
5
Look in Jira to see if this has been reported already.


SWAP Space does not make up for lack of RAM. Maybe try to make your Win-VM use 2GB RAM. Also make sure you are not using RAM elsewhere when doing these tests. If you do plan to run VM's like this, you are going to need more RAM.

Good Luck! It's good to see people testing this stuff out.
THX:
I had only searched in the forum and have now found the bug report in Jira :)
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
Nice that you can confirm it's a bug.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
That is strange. I almost sounds like the L2ARC now has a 2GB SWAP partition. When the disks are added the system default is to create a 2GB swap partition of each drive. I think that is excessive but that is the way it works right now. When I created my first pool I disabled the SWAP creation and it worked great. I forgot to do that with my current pool. Eh, only 8GB of space total.

Also, an L2ARC does not make up for low RAM, it will actually hurt you as it consumes RAM space to index the data in the L2ARC. But I understand that you are playing with TrueNAS so do every configuration you can and test the hell out of it. It took me a few months to test it and try all sorts of things, like using a single SSD as both a L2ARC and ZIL. It can be done but it certainly is not supported.
 
Top