View Single Post
Old 12-29-2017, 06:43 PM   #308
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
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.
knc1 is offline   Reply With Quote