Executive summary:
I've tripled the RAM in my FreeNAS box and suddenly I'm getting swap space issues. I don't understand this but I would like to solve it.
Full story:
After my boot USB failed I decided to switch to a small SSD as boot device, and while I had my hands in the box I added 16GB to the existing 8GB of memory. Once I had reclosed the chest cavity I installed the 9.3 software and uploaded my config file.
All looked great, so I scrubbed the storage. Part way through the web UI stopped responding, so I switched to the console, and lo, the machine was complaining about swap space. After the scrub completed the web UI stayed down so I did an orderly restart, voila, it's alive. Good.
But I don't want to have this happening. The machine is presently a 24GB system with an AMD Bulldozer CPU, a 30GB SSD for boot and 6 4TB drives in a RaidZ2 configuration in a single pool. The default 12GB (2 per drive) of swap is allocated.
So the questions:
- Any idea why this started happening AFTER I added RAM?
- Does the move to 9.3 have any bearing?
- Should I have more swap?
Proposed solution:
Would it work if I added a drive, made it a single drive vdev in a new pool, and set the swap per drive for that pool to be some huge value? For instance I have some slightly pre-loved SSDs (another 30, and a 120) that I could use for this, or I also have some reasonably fast HDDs of around 1TB capacity I could use this way.
- Can I in effect essentially dedicate a drive/vdev/pool to being swap by doing this?
- Would it help?
- Would it be recommended for or against?
- If I have a dedicated swap pool, would it be safe to rebuild the main storage pool with no swap?
I've tripled the RAM in my FreeNAS box and suddenly I'm getting swap space issues. I don't understand this but I would like to solve it.
Full story:
After my boot USB failed I decided to switch to a small SSD as boot device, and while I had my hands in the box I added 16GB to the existing 8GB of memory. Once I had reclosed the chest cavity I installed the 9.3 software and uploaded my config file.
All looked great, so I scrubbed the storage. Part way through the web UI stopped responding, so I switched to the console, and lo, the machine was complaining about swap space. After the scrub completed the web UI stayed down so I did an orderly restart, voila, it's alive. Good.
But I don't want to have this happening. The machine is presently a 24GB system with an AMD Bulldozer CPU, a 30GB SSD for boot and 6 4TB drives in a RaidZ2 configuration in a single pool. The default 12GB (2 per drive) of swap is allocated.
So the questions:
- Any idea why this started happening AFTER I added RAM?
- Does the move to 9.3 have any bearing?
- Should I have more swap?
Proposed solution:
Would it work if I added a drive, made it a single drive vdev in a new pool, and set the swap per drive for that pool to be some huge value? For instance I have some slightly pre-loved SSDs (another 30, and a 120) that I could use for this, or I also have some reasonably fast HDDs of around 1TB capacity I could use this way.
- Can I in effect essentially dedicate a drive/vdev/pool to being swap by doing this?
- Would it help?
- Would it be recommended for or against?
- If I have a dedicated swap pool, would it be safe to rebuild the main storage pool with no swap?