[Bug 531958] New: s2disk produces segmentation fault
http://bugzilla.novell.com/show_bug.cgi?id=531958 User syseng@adnovum.ch added comment http://bugzilla.novell.com/show_bug.cgi?id=531958#c1 Summary: s2disk produces segmentation fault Classification: openSUSE Product: openSUSE 11.0 Version: Final Platform: i386 OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: syseng@adnovum.ch QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 OpenSUSE 11.0 with latest applied patches on a Dell Precision T5400. System is installed with Autoyast and swap sizing set to "auto" in the Autoyast XML. Autoyast set the swap partition to 2GB although system has 4GB RAM. adnws007:~ # echo "disk" >/sys/power/state -bash: echo: write error: Cannot allocate memory adnws007:~ # s2disk Segmentation fault adnws007:~ # tail /var/log/messages Aug 18 07:21:15 adnws007 kernel: PM: Syncing filesystems ... done. Aug 18 07:22:37 adnws007 kernel: Freezing user space processes ... (elapsed 0.00 seconds) done. Aug 18 07:22:37 adnws007 kernel: Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done. Aug 18 07:22:37 adnws007 kernel: PM: Shrinking memory... /Restarting tasks ... done. Aug 18 07:26:28 adnws007 kernel: PM: Syncing filesystems ... done. Aug 18 07:26:31 adnws007 kernel: Freezing user space processes ... (elapsed 0.00 seconds) done. Aug 18 07:26:31 adnws007 kernel: Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done. Aug 18 07:26:31 adnws007 kernel: PM: Shrinking memory... |Restarting tasks ... done. Aug 18 07:27:54 adnws007 kernel: s2disk[23364]: segfault at 0 ip b7f66efd sp bfba9a18 error 4 in libc-2.8.so[b7e86000+13d000] adnws007:~ # uname -a Linux adnws007 2.6.25.20-0.4-pae #1 SMP 2009-06-01 09:57:12 +0200 i686 i686 i386 GNU/Linux The suspend to RAM seems to work only with the --force option: adnws007:~ # s2ram Machine is unknown. This machine can be identified by: sys_vendor = "Dell Inc." sys_product = "Precision WorkStation T5400 " sys_version = "" bios_version = "A04" See http://en.opensuse.org/S2ram for details. If you report a problem, please include the complete output above. If you report success, please make sure you tested it from both X and the text console and preferably without proprietary drivers. adnws007:~ # s2ram --force Switching from vt7 to vt1 fbcon fb0 state 1 fbcon fb0 state 0 switching back to vt7 Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531958 User syseng@adnovum.ch added comment http://bugzilla.novell.com/show_bug.cgi?id=531958#c1 --- Comment #1 from Bernd Nies <syseng@adnovum.ch> 2009-08-18 01:49:37 MDT --- I reinstalled openSUSE 11.0 using Autoyast and changed the size parameter of the swap partition from "auto" to 8G (2 x size of physical RAM). Now these two suspend to disk methods do work: (1) echo "disk" >/sys/power/state (2) KDE -> Leave -> Suspend to Disk The "s2disK" command still produces a segmentation fault. Two issues should be fixed here: (1) The s2disk segmentation fault. (2) The algorithm of the Autoyast partitioner for the swap partition size. The following Autoyast XML code creates a 2 GB swap partition on a system that has 2 GB physical RAM. Many years ago I learned that swap should be at least the size of physical RAM, better twice as much. <partitioning config:type="list"> <drive> <device>/dev/sda</device> <initialize config:type="boolean">true</initialize> <partitions config:type="list"> <partition> <mount>/boot</mount> <size>128M</size> <partition_nr config:type="integer">1</partition_nr> <partition_id config:type="integer">131</partition_id> <partition_type>primary</partition_type> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> </partition> <partition> <mount>swap</mount> <size>auto</size> <partition_nr config:type="integer">2</partition_nr> <partition_id config:type="integer">130</partition_id> <partition_type>primary</partition_type> <filesystem config:type="symbol">swap</filesystem> <format config:type="boolean">true</format> </partition> <partition> <mount>/</mount> <size>max</size> <partition_nr config:type="integer">3</partition_nr> <partition_id config:type="integer">131</partition_id> <partition_type>primary</partition_type> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> </partition> </partitions> <use>all</use> </drive> </partitioning> http://www.suse.de/~ug/autoyast_doc/CreateProfile.Partitioning.html -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531958 Bernd Nies <syseng@adnovum.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|s2disk produces |suspend to disk fails / |segmentation fault |Autoyast swap auto size | |limit 2G -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531958 shuang qiu <sqiu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sqiu@novell.com AssignedTo|bnc-team-screening@forge.pr |kernel-maintainers@forge.pr |ovo.novell.com |ovo.novell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531958 http://bugzilla.novell.com/show_bug.cgi?id=531958#c Greg Kroah-Hartman <gregkh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Kernel |AutoYaST AssignedTo|kernel-maintainers@forge.pr |ug@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531958 http://bugzilla.novell.com/show_bug.cgi?id=531958#c2 Uwe Gansert <ug@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |aschnell@novell.com --- Comment #2 from Uwe Gansert <ug@novell.com> 2009-12-15 09:47:18 UTC --- I use Partitions::SwapSizeMb(0) Arvin, maybe we have to rethink the swap size calculation? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531958 http://bugzilla.novell.com/show_bug.cgi?id=531958#c3 Arvin Schnell <aschnell@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW CC| |aschnell@novell.com Info Provider|aschnell@novell.com | --- Comment #3 from Arvin Schnell <aschnell@novell.com> 2009-12-15 11:45:57 UTC --- In SwapSizeMb the swap size is limited to 2GB. From my point of view more swap doesn't make sence since swap is very slow. I suspect that suspend to disk with e.g. 8GB used RAM is very slow, maybe even slower than a reboot. So, we can change the calculation but product managment should decide the calculation rules. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531958 http://bugzilla.novell.com/show_bug.cgi?id=531958#c6 Matthias Eckermann <mge@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED CC| |mge@novell.com Info Provider|mge@novell.com | --- Comment #6 from Matthias Eckermann <mge@novell.com> 2010-03-11 10:07:28 UTC --- (In reply to comment #1)
(2) The algorithm of the Autoyast partitioner for the swap partition size. The following Autoyast XML code creates a 2 GB swap partition on a system that has 2 GB physical RAM. Many years ago I learned that swap should be at least the size of physical RAM, better twice as much.
I learned the same - However, I don't think this is appropriate anymore: this rule was true, when we had harddisks smaller than the RAM machines have nowadays, ...:-) That said, we have to discuss two use cases: 1. SWAP space for SWAP only. Here the current rule is sufficient 2. SWAP space for SWAP and Suspend. Here the current rule obviously is not sufficient. However, with 8+ GiB SWAP space resuming will be rather slow (2+ minutes), thus shutting off / restart the machine might be better anyways, and having a limit is reasonable. That said, I propose to not fix this for existing releases, but for future releases go with the following calculation: "Auto" should default to the RAM size rounded up to the next GiB, with the following limits: - not exceeding 4GiB - not exceeding 10% of the primary harddisk (think of small SSDs!) (whatever limit is reached first) This will need a feature request. Does that sound reasonable? so long - MgE -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531958 http://bugzilla.novell.com/show_bug.cgi?id=531958#c Stanislav Visnovsky <visnov@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|visnov@novell.com |aschnell@novell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531958 http://bugzilla.novell.com/show_bug.cgi?id=531958#c7 Arvin Schnell <aschnell@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|aschnell@novell.com |mge@novell.com --- Comment #7 from Arvin Schnell <aschnell@novell.com> 2010-04-06 13:26:26 UTC --- That is OK for us. Please make the feature request. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531958 http://bugzilla.novell.com/show_bug.cgi?id=531958#c8 Matthias Eckermann <mge@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FEATURE AssignedTo|mge@novell.com |aschnell@novell.com Severity|Normal |Major --- Comment #8 from Matthias Eckermann <mge@novell.com> 2010-04-08 09:10:06 UTC --- This should be triggered via an openFATE feature request. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com