On Thu, 2005-01-06 at 22:00 +0000, Hugh Dickins wrote: > Curious. I regularly check that swapoff is working (though not suspend > and resume), and have not noticed this. You fill memory so the machine > swaps, let the memory hog exit, then swapoff hangs indefinitely (not just > taking a long time)? With no suspend+resume since booting at all? No suspend or resume involved, just a normal boot. Steps to reproduce: 1. fill memory so it swaps 2. stop memory hog 3. swapoff -a I'm pretty sure it's an infinite loop, I left it like that while shaving. It produces the same sound over and over again as the head seeks back in order to try again and again... > How much memory? How much swap? What .config? I'll try it tomorrow. 768MB ram, 1.2GB swap, .config attached Before memory hog: # free total used free shared buffers cached Mem: 775664 110868 664796 0 4696 60420 -/+ buffers/cache: 45752 729912 Swap: 1226224 0 1226224 After memory hog: # free total used free shared buffers cached Mem: 775664 36180 739484 0 140 7224 -/+ buffers/cache: 28816 746848 Swap: 1226224 27984 1198240 After swapoff: # free total used free shared buffers cached Mem: 775664 53972 721692 0 268 11816 -/+ buffers/cache: 41888 733776 Swap: 1226224 2912 1223312 Running swapoff again produces the same behaviour and the amount of swap used does not decrease. I hope you can reproduce it. -- /Martin