[Bug 428284] New: provide full featured powersaving under the usage of xen
https://bugzilla.novell.com/show_bug.cgi?id=428284 Summary: provide full featured powersaving under the usage of xen Product: openSUSE 11.0 Version: Final Platform: Other OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Xen AssignedTo: cgriffin@novell.com ReportedBy: estellnb@gmail.com QAContact: qa@suse.de Found By: Community of Practice Nowadays virtualisation has become available and thereby even more and more demanded by desktop users (os-compatibility, security, keep old installation, etc.). Nevertheless in places where there is no absolute necessity to deploy it, usability and performance will clinch its deployment. Xen offering paravirtualistation would basically be the system of choice for reasons of performance and os-integration. Unfortunately, besides some usability issues like concerning a graphical user interface frontend, it will never be an alternative for the desktop user as long as it does not fully support powersaving modes or as long as the hardware support in common leaps back behind the one of -default kernels (hardware support is an issue to desktop users but not to the deployment on server systems). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=428284 User estellnb@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=428284#c1 --- Comment #1 from Elmar Stellnberger (AT/K) <estellnb@gmail.com> 2008-09-22 03:26:37 MDT --- By default neither s2ram nor s2disk work. /usr/sbin/s2ram refuses its work because it can not find /proc/sys/kernel/acpi_video_flags. On my machine editing /usr/lib/pm-utils/functions.do_suspend() to issue 'echo -n mem >/sys/power/state' alongside manually restoring the video mode helps. Nevertheless s2disk neither seems to be supported by the kernel(1) nor does it work by setting 'shutdown method = reboot' in s2disk.conf (2): (1)# cat /sys/power/state mem (2)# s2disk Speicherzugriffsfehler (mem acess error) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=428284 Jason Douglas <jdouglas@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |carnold@novell.com, lbendixs@novell.com, | |jdouglas@novell.com, ksrinivasan@novell.com AssignedTo|cgriffin@novell.com |jbeulich@novell.com QAContact|qa@suse.de |jdouglas@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=428284 User jsong@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=428284#c3 song james <jsong@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jsong@novell.com --- Comment #3 from song james <jsong@novell.com> 2008-10-13 21:24:49 MDT --- in xen, Do S3 and S4 in guest os: - Guest OS: do itself's s3 S3 -- - Dom0: do itself's s3 by echo "mem" >/sys/power/state - Xen: save page table, save time... and write something to slp_typ of BIOS register. - Gusest OS: save something something to it's img. S4 -- - Dom0: shutdown - xen: shutdown -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=428284 User jsong@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=428284#c4 song james <jsong@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xwhu@novell.com --- Comment #4 from song james <jsong@novell.com> 2008-10-22 21:56:43 MDT --- talk about the policy of S3/S4 in Guest OS : S3 in Guest OS: - Guest OS: do itself's s3 S3 -- - Dom0: do itself's s3 by echo "mem" >/sys/power/state - Xen: save page table, save time... and write something to slp_typ of BIOS register. question: 1, If we run many VMs, Does other VM also go into S3 state? 2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=428284 User jsong@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=428284#c5 --- Comment #5 from song james <jsong@novell.com> 2008-10-22 22:04:55 MDT --- sorry for last uncompleted commit! talk about the policy of S3/S4 in Guest OS : My proposed S3 in Guest OS: - Guest OS: do itself's s3 S3 -- - Dom0: do itself's s3 by echo "mem" >/sys/power/state - Xen: save page table, save time... and write something to slp_typ of BIOS register. question: 1, If we run many VMs, Does other VM also go into S3 state? 2, If "1" does, Does Dom0's need to go into S3 state? My proposed S4 in Guest OS: - Gusest OS: save something something to it's img. S4 -- - Dom0: shutdown - xen: shutdown question: 1, Does Dom0 need do it's own S4? If anyone has some suggestion, pls don't hesitate to share! -- Tx -- James -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=428284 User jsong@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=428284#c6 --- Comment #6 from song james <jsong@novell.com> 2008-10-27 21:18:28 MDT --- Created an attachment (id=248238) --> (https://bugzilla.novell.com/attachment.cgi?id=248238) testS3 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=428284 User jsong@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=428284#c7 song james <jsong@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |estellnb@gmail.com --- Comment #7 from song james <jsong@novell.com> 2008-10-27 21:19:16 MDT --- Because I have commucate with team about what kind of S3 need in SLES. Someone wants to get the feature which sles can make physical machine go into S3 when no guest os any more. So that I have written a programme to realize this feature.I have test it in SLED 11, pls see attachment. For OpenSUSE I still want to write a patch to realize S3 from GuestOS,but I still not sure which the policy I'll select in case of more than one guest os in system. Otherwise we can define some policies left to user to choose. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=428284 User lance23au@yahoo.com.au added comment https://bugzilla.novell.com/show_bug.cgi?id=428284#c9 Lance Gardner <lance23au@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lance23au@yahoo.com.au --- Comment #9 from Lance Gardner <lance23au@yahoo.com.au> 2008-11-23 02:52:06 MST --- As seen below he powersave support is not built into the XEN kernel. Is there any reason why? # egrep "FREQ|Frequency" /boot/config-2.6.25.16-0.1-xen # CPU Frequency scaling # egrep "FREQ|Frequency" /boot/config-2.6.25.16-0.1-default # CPU Frequency scaling CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_TABLE=y # CONFIG_CPU_FREQ_DEBUG is not set CONFIG_CPU_FREQ_STAT=m CONFIG_CPU_FREQ_STAT_DETAILS=y # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=m CONFIG_CPU_FREQ_GOV_USERSPACE=m CONFIG_CPU_FREQ_GOV_ONDEMAND=y CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m CONFIG_X86_ACPI_CPUFREQ=m # CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=428284 User jbeulich@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=428284#c10 --- Comment #10 from Jan Beulich <jbeulich@novell.com> 2008-11-24 02:26:44 MST --- Because it doesn't (generally) work that way? That's being taken care of in 11.1/SLE11, where cpufreq handling happens in the hypervisor (but the repsective kernel config options continue to not be available). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=428284 User estellnb@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=428284#c11 --- Comment #11 from Elmar Stellnberger (AT/K) <estellnb@gmail.com> 2008-11-26 10:49:17 MST --- Created an attachment (id=255913) --> (https://bugzilla.novell.com/attachment.cgi?id=255913) allow s2ram in spite of missing kernel support This patch alters /usr/lib/pm-utils/functions to issue a manual s2ram mainly by issuing "echo -n mem >/sys/power/state" if /usr/sbin/s2ram refuses to work because of missing kernel support for /proc/sys/kernel/acpi_video_flags. By now it is configured to call /usr/local/bin/video_post instead of vbetool post & vbetool vbemode set "$(state)". At me vbetool works well just as long as I do not use the xen-kernel. Nonetheless /usr/local/bin/video_post does its job. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=428284 User estellnb@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=428284#c12 --- Comment #12 from Elmar Stellnberger (AT/K) <estellnb@gmail.com> 2008-11-26 10:52:28 MST --- Created an attachment (id=255914) --> (https://bugzilla.novell.com/attachment.cgi?id=255914) /usr/local/bin/video_post Instead of running video_post, temporarily invoking X on an unused vt works as well (invoke and quit X directly afterwards). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=428284 User estellnb@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=428284#c13 Elmar Stellnberger (AT/K) <estellnb@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #255913|0 |1 is obsolete| | --- Comment #13 from Elmar Stellnberger (AT/K) <estellnb@gmail.com> 2008-11-30 11:39:51 MST --- Created an attachment (id=256810) --> (https://bugzilla.novell.com/attachment.cgi?id=256810) allow s2ram in spite of missing kernel support The s2ram workaround must not be applied if no xen kernel is booted (crash). Apparently when using a xen kernel a totally different s2ram approach is required. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=428284 User estellnb@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=428284#c14 Elmar Stellnberger (AT/K) <estellnb@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #256810|0 |1 is obsolete| | --- Comment #14 from Elmar Stellnberger (AT/K) <estellnb@gmail.com> 2008-12-03 00:02:38 MST --- Created an attachment (id=257583) --> (https://bugzilla.novell.com/attachment.cgi?id=257583) allow s2ram in spite of missing kernel support forgot to incorporate all changes into patch-file -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=428284 User estellnb@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=428284#c15 Elmar Stellnberger (AT/K) <estellnb@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|estellnb@gmail.com | --- Comment #15 from Elmar Stellnberger (AT/K) <estellnb@gmail.com> 2009-02-03 04:24:37 MST --- . -- Configure bugmail: https://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