When I try to turn the swapdisk off on my machine, either manually or during a reboot, the swapoff program will hang during the last 15 or so meg of the swap disk. I have re-made the swap partition numerous times, and I have even gave up and tried using a different disk, to no avail. It does it anyway. Reproducible: Always Steps to Reproduce: 1. reboot machine -or- 2. swapoff /dev/<disk> Actual Results: swapoff hangs. Expected Results: software should have emptied swap, then disabled the swap space. Portage 2.0.51-r12 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-nitro4-mm-Tidus i686) ================================================================= System uname: 2.6.10-nitro4-mm-Tidus i686 Pentium III (Katmai) Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Jan 7 2005, 09:57:25)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -mmmx -msse -mfpmath=387,sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -mmmx -msse -mfpmath=387,sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo http://gentoo.seren.com/gentoo http://gentoo.mirrors.pair.com/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aac aalib acpi aim alsa apache2 apm arts audiofile avi bash-completion berkdb bidi bitmap-fonts bonobo cdr crypt cscope ctype cups dga dio divx4linux dvd dvdr dvdread encode esd ethereal f77 fam flac font-server foomaticdb fortran ftp gd gdbm gif gnome gpm gtk gtk2 gtkhtml icq imagemagick imlib ipv6 java joystick jpeg kde libg++ libwww mad maildir mbox mikmod mmx motif mozilla mpeg msn mysql ncurses nls nptl nvidia oggvorbis openal opengl oscar oss pam pdf pdflib perlphp pic pie png posix python qt quicktime readline samba sdl spell sse ssl svgatcpd tetex theora tiff truetype truetype-fonts type1-fonts usb wmf wxwindows x86 xine xinerama xml xml2 xmms xscreensaver xv xvid zlib" Unset: LDFLAGS
forgot the version of util-linux (the package which provides swapon/off). * sys-apps/util-linux Latest version available: 2.12p Latest version installed: 2.12p Size of downloaded files: 3,922 kB Homepage: http://www.kernel.org/pub/linux/utils/util-linux/ Description: Various useful Linux utilities License: GPL-2
does 2.12i exhibit the same behavior ? could you perhaps try it with a normal kernel ? does `dmesg` show anything ?
Backed down to 2.12i-r1 (marked stable on all architectures) and under any 2.6.10 nitro kernel, it still hangs up. Decided to try gentoo-dev-sources 2.6.10-r5, and sad to say, it works like it should (both 2.12i and 2.12p) under the same test case (opening enough applications and files to drive swap usage to 50M, then turning off swap with everything open). I will move this bug to that particular patchset's author, and change the status to "Moved Upstream".