Re: mysqld prevents s2ram [Re: 2.6.23-mm1]
On Sunday, 21 October 2007 11:58, Pavel Machek wrote: > Hi! > > > On Thu, Oct 11, 2007 at 09:31:26PM -0700, Andrew Morton wrote: > > > > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23/2.6.23-mm1/ > > > > Ok, now that it boots let's go for more. > > > > I cannot suspend if mysqld is running. mysql isn't atually doing > > anything useful anyway. > > I believe this is known and rafael already has a fix somewhere. The > "guilty" patch already hit mainline, not sure about the "fix" patch. The fix has not been merged yet, but freezer-use-wait-queue-instead-of-busy-looping.patch has been dropped for another reason. The mysqld problem seems to have been caused by another patch, though, and the fix is appended. Greetings, Rafael --- From: Rafael J. Wysocki <[EMAIL PROTECTED]> Do not allow processes to clear their TIF_SIGPENDING if TIF_FREEZE is set, so that they will not race with the freezer (like mysqld, for example). Signed-off-by: Rafael J. Wysocki <[EMAIL PROTECTED]> --- kernel/signal.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.23-mm1/kernel/signal.c === --- linux-2.6.23-mm1.orig/kernel/signal.c +++ linux-2.6.23-mm1/kernel/signal.c @@ -124,7 +124,7 @@ void recalc_sigpending_and_wake(struct t void recalc_sigpending(void) { - if (!recalc_sigpending_tsk(current)) + if (!recalc_sigpending_tsk(current) && !freezing(current)) clear_thread_flag(TIF_SIGPENDING); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: mysqld prevents s2ram [Re: 2.6.23-mm1]
Hi! > On Thu, Oct 11, 2007 at 09:31:26PM -0700, Andrew Morton wrote: > > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23/2.6.23-mm1/ > > Ok, now that it boots let's go for more. > > I cannot suspend if mysqld is running. mysql isn't atually doing > anything useful anyway. I believe this is known and rafael already has a fix somewhere. The "guilty" patch already hit mainline, not sure about the "fix" patch. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: mysqld prevents s2ram [Re: 2.6.23-mm1]
On Sun, Oct 21, 2007 at 02:58:17PM +0900, Mattia Dongili wrote: > On Thu, Oct 11, 2007 at 09:31:26PM -0700, Andrew Morton wrote: > > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23/2.6.23-mm1/ > > Ok, now that it boots let's go for more. > > I cannot suspend if mysqld is running. mysql isn't atually doing > anything useful anyway. ... > As suggested in a different post I'll try reverting > freezer-use-wait-queue-instead-of-busy-looping.patch and re-test great, that was the guilty patch in fact. -- mattia :wq! - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
mysqld prevents s2ram [Re: 2.6.23-mm1]
On Thu, Oct 11, 2007 at 09:31:26PM -0700, Andrew Morton wrote: > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23/2.6.23-mm1/ Ok, now that it boots let's go for more. I cannot suspend if mysqld is running. mysql isn't atually doing anything useful anyway. This is the failed suspend tasks dump of mysql: [0.00] Linux version 2.6.23-mm1-1 ([EMAIL PROTECTED]) (gcc version 4.2.1 (Debian 4.2.1-3)) #5 SMP PREEMPT Sun Oct 21 13:50:54 JST 2007 ... [ 271.736214] PM: Preparing system for mem sleep [ 271.738185] Freezing user space processes ... [ 291.918090] Freezing of tasks failed after 20.19 seconds (1 tasks refusing to freeze): [ 291.918156] taskPC stack pid father ... [ 292.043105] === [ 292.043175] mysqld_safe D c03d40c0 0 2393 1 [ 292.043343]c26b3eac 0082 c03d0eb0 c03d40c0 c011a850 c011a843 c2626aa0 c2626bd4 [ 292.043803]c17fd0c0 c26b3e88 c26cc380 c26b3ea8 c011b83a c26b3ea0 [ 292.044322]08104d08 08104d08 c26b3eb8 c0141de0 c26b3fb8 [ 292.044843] Call Trace: [ 292.044969] [] refrigerator+0xcf/0xdb [ 292.045091] [] get_signal_to_deliver+0x33/0x414 [ 292.045214] [] do_notify_resume+0x81/0x61e [ 292.045335] [] work_notifysig+0x13/0x19 [ 292.045456] === [ 292.045524] mysqldD c03d40c0 0 2430 2393 [ 292.045692]c25d0eac 0086 c03d0eb0 c03d40c0 c0119eb5 c1c98550 c1c98684 [ 292.046184]c18060c0 0001 c25d0e88 c2603000 c25d0ea8 c011b83a c25d0ea0 [ 292.046705] c25d0eb8 c0141de0 c25d0fb8 [ 292.047272] Call Trace: [ 292.049112] [] refrigerator+0xcf/0xdb [ 292.049234] [] get_signal_to_deliver+0x33/0x414 [ 292.049357] [] do_notify_resume+0x81/0x61e [ 292.049477] [] work_notifysig+0x13/0x19 [ 292.049598] === [ 292.049666] mysqldD c03d40c0 0 2433 2393 [ 292.049834]c3000eac 0086 c03d0eb0 c03d40c0 c1c98aa0 c1c98bd4 [ 292.050306]c17fd0c0 c3000e88 c2603000 c3000ea8 c011b83a c3000ea0 [ 292.050827] 0001 0001 c3000eb8 c0141de0 c3000fb8 [ 292.051353] Call Trace: [ 292.051479] [] refrigerator+0xcf/0xdb [ 292.051599] [] get_signal_to_deliver+0x33/0x414 [ 292.051721] [] do_notify_resume+0x81/0x61e [ 292.051842] [] work_notifysig+0x13/0x19 [ 292.051962] === [ 292.052031] mysqldD c03d40c0 0 2434 2393 [ 292.052198]c27b6eac 0086 c03d0eb0 c03d40c0 c02d95a9 c27b6e8c c1d76aa0 c1d76bd4 [ 292.052660]c17fd0c0 c27b6e88 c2603000 c27b6ea8 c011b83a c27b6ea0 [ 292.053179] 0007 0007 c27b6eb8 c0141de0 c27b6fb8 [ 292.053699] Call Trace: [ 292.053825] [] refrigerator+0xcf/0xdb [ 292.053958] [] get_signal_to_deliver+0x33/0x414 [ 292.054081] [] do_notify_resume+0x81/0x61e [ 292.054203] [] work_notifysig+0x13/0x19 [ 292.054323] === [ 292.054392] mysqldD c03d40c0 0 2435 2393 [ 292.054560]c26b2eac 0086 c03d0eb0 c03d40c0 c0119eb5 c1c42ff0 c1c43124 [ 292.055028]c18060c0 0001 c26b2e88 c2603000 c26b2ea8 c011b83a c26b2ea0 [ 292.055548] 0013 0013 c26b2eb8 c0141de0 c26b2fb8 [ 292.056087] Call Trace: [ 292.056214] [] refrigerator+0xcf/0xdb [ 292.056335] [] get_signal_to_deliver+0x33/0x414 [ 292.056458] [] do_notify_resume+0x81/0x61e [ 292.056579] [] work_notifysig+0x13/0x19 [ 292.056700] === [ 292.056769] mysqldD c03d40c0 0 2436 2393 [ 292.056937]c2776eac 0086 c03d0eb0 c03d40c0 c02d95a9 c2776e8c c26a7a90 c26a7bc4 [ 292.057398]c17fd0c0 c2776e88 c2603000 c2776ea8 c011b83a c2776ea0 [ 292.057930] 0003 0003 c2776eb8 c0141de0 c2776fb8 [ 292.058450] Call Trace: [ 292.058576] [] refrigerator+0xcf/0xdb [ 292.058696] [] get_signal_to_deliver+0x33/0x414 [ 292.058819] [] do_notify_resume+0x81/0x61e [ 292.058945] [] work_notifysig+0x13/0x19 [ 292.059065] === [ 292.059134] mysqldD c03d40c0 0 2438 2393 [ 292.059301]c254deac 0086 c03d0eb0 c03d40c0 c1c9fa90 c1c9fbc4 [ 292.059762]c18060c0 0001 c254de88 c2603000 c254dea8 c011b83a c254dea0 [ 292.060281] b3435390 b3435390 c254deb8 c0141de0 c254dfb8 [ 292.060801] Call Trace: [ 292.060927] [] refrigerator+0xcf/0xdb [ 292.061047] [] get_signal_to_deliver+0x33/0x414 [ 292.061169] [] do_notify_resume+0x81/0x61e [ 292.061290] [] work_notifysig+0x13/0x19 [ 292.061411] === [ 292.061479] mysqldD c03d