My main questions are:
- What is the best way to clear a ZFS encrypted swap if it fills up?
- If we allocate swap space at the rate of twice the available RAM, then how will we have enough memory to clear the swap?
It seems like, during a situation where we intervene to maintenance or clear swap, we need to be able to pick it all up and put it in RAM; or, we need to be able to carve out a section of swap and either clear it or transplant it in another place so that it can continue. If we take the advice to establish a swap at twice the RAM, are we creating a situation where it's not feasible to clear the swap?
When I try the swapoff/swapon technique, it works well with an additional swap file that I would build, but it's not helping with the full swap space on the encrypted swap. I receive an error message about the encrypted swap that says it can't allocate memory.
I will probably try to expand the swap with ZFS commands; but, it seems like that might be a temporary solution. Somehow part of the problem here is that the programs I am running are just running and not really checking to see that they have sufficient resources available. Is there a way to reserve a minimum amount or section of swap for a program by using ZFS commands?
- What is the best way to clear a ZFS encrypted swap if it fills up?
- If we allocate swap space at the rate of twice the available RAM, then how will we have enough memory to clear the swap?
It seems like, during a situation where we intervene to maintenance or clear swap, we need to be able to pick it all up and put it in RAM; or, we need to be able to carve out a section of swap and either clear it or transplant it in another place so that it can continue. If we take the advice to establish a swap at twice the RAM, are we creating a situation where it's not feasible to clear the swap?
When I try the swapoff/swapon technique, it works well with an additional swap file that I would build, but it's not helping with the full swap space on the encrypted swap. I receive an error message about the encrypted swap that says it can't allocate memory.
I will probably try to expand the swap with ZFS commands; but, it seems like that might be a temporary solution. Somehow part of the problem here is that the programs I am running are just running and not really checking to see that they have sufficient resources available. Is there a way to reserve a minimum amount or section of swap for a program by using ZFS commands?