[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: out of swap on shutdown
On Fri, Aug 15, 2014 at 11:08:12AM +0100, Patrick Welche wrote:
> On shutdown, on machines with a large tmpfs which has been thrashed, I
> UVM: pid 1029.1 (master), uid 0 killed: out of swap
> UVM: pid 701.1 (qmgr), uid 12 killed: out of swap
Any reason not to apply Wolfgang Stukenbrock's patch from PR 41766
which works around this?
--- swap1 2009/07/22 12:32:13 1.1
+++ swap1 2009/07/22 12:32:24
@@ -29,6 +29,16 @@
if checkyesno swapoff || [ -n "$rc_force" ]; then
echo "Removing block-type swap devices"
+# Check if there is tmpfs present.
+# The problem is that we my hang in swapctl -U if there
+# is not enougth physical memory to hold the contents.
+# Remark: We assume that there are no other mount points inside of tmpfs
+# and this will not solve the problem for more process memory
+# than physical memory.
+ umount -aft tmpfs
swapctl -U -t blk
Main Index |
Thread Index |