When the fuse file system exports that partition as USB storage, it is no longer available on the system side.
And if you have swap on it, your access to swap is cut-off.
Not a good thing to happen to the system if swap is in active use.
Note:
You do not need much swap -
Just a few megabytes will do just fine.
This is an embedded system, not a network server.
/var is tmpfs
putting swap on tmpfs is a VERY BAD idea.
in fact, depending on the kernel version, it will deadlock.
think about it -
What is the backing store for tmpfs?
swap
and when you need more room in tmpfs, where do the in memory portions get written?
swap
now what happens when the memory management needs to write to a memory page (of the swap file) that isn't in memory?
it has to write to swap to make room to write to swap ...
deadlock.
|