Bug 771006

Summary: khugepaged prevents suspend
Product: [Fedora] Fedora Reporter: Ben Liblit <liblit>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kernel-2.6.41.9-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-07 23:05:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ben Liblit 2011-12-31 00:13:36 UTC
My laptop, a ThinkPad X61 running kernel-3.1.6-1.fc16.i686, frequently fails to suspend.  The suspend process begins, but eventually it seems to give up and returns to the regular running state.  I don't think it fails every time, but if not then it certainly fails much more often than it succeeds.

After such a failed suspend, messages in "/var/log/messages" reveal that khugepaged did not freeze after 20 seconds:

    [47245.252131] Freezing of tasks failed after 20.00 seconds (1 tasks refusing to freeze, wq_busy=0):
    [47245.252182] khugepaged      S f38b5e98     0    28      2 0x00800000
    [47245.252190]  f38b5ea8 00000046 00000002 f38b5e98 00000001 f4100c90 00000000 c0c59ec0
    [47245.252201]  c0c59ec0 2478757e 00002af8 f4e06ec0 f38b8000 f4100c90 c04e46b0 0000000a
    [47245.252212]  f38b5e64 c04e46c3 f38b5e7c 00000000 c0baed40 004352da 0000000a 00000003
    [47245.252222] Call Trace:
    [47245.252235]  [<c04e46b0>] ? page_alloc_cpu_notify+0x40/0x40
    [47245.252241]  [<c04e46c3>] ? drain_local_pages+0x13/0x20
    [47245.252247]  [<c04e5bdb>] ? __alloc_pages_nodemask+0x51b/0x6f0
    [47245.252254]  [<c090b795>] schedule+0x35/0x50
    [47245.252259]  [<c090bbc4>] schedule_timeout+0x124/0x290
    [47245.252266]  [<c04595d0>] ? lock_timer_base+0x60/0x60
    [47245.252272]  [<c090bd8a>] schedule_timeout_interruptible+0x1a/0x20
    [47245.252279]  [<c051bd76>] khugepaged+0x856/0xe00
    [47245.252287]  [<c046a820>] ? remove_wait_queue+0x40/0x40
    [47245.252293]  [<c051b520>] ? collect_mm_slot+0x70/0x70
    [47245.252299]  [<c046a1cd>] kthread+0x6d/0x80
    [47245.252304]  [<c046a160>] ? kthread_worker_fn+0x140/0x140
    [47245.252311]  [<c09148be>] kernel_thread_helper+0x6/0x10

This is apparently what caused the entire suspend to be aborted.

Discussion at <https://lkml.org/lkml/2011/11/9/312> might be related, and might include a patch.

Comment 1 Dave Jones 2012-01-03 15:24:22 UTC
patch added for next build.

Comment 2 Fedora Update System 2012-01-03 22:53:29 UTC
kernel-3.1.7-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/kernel-3.1.7-1.fc16

Comment 3 Fedora Update System 2012-01-03 23:05:00 UTC
kernel-2.6.41.7-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/kernel-2.6.41.7-1.fc15

Comment 4 Fedora Update System 2012-01-05 20:55:39 UTC
Package kernel-2.6.41.7-1.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing kernel-2.6.41.7-1.fc15'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-0096/kernel-2.6.41.7-1.fc15
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-01-07 23:05:19 UTC
kernel-3.1.7-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2012-01-08 02:30:23 UTC
kernel-2.6.41.8-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/kernel-2.6.41.8-1.fc15

Comment 7 Fedora Update System 2012-01-13 19:03:20 UTC
kernel-2.6.41.9-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/kernel-2.6.41.9-1.fc15

Comment 8 Fedora Update System 2012-01-15 19:58:50 UTC
kernel-2.6.41.9-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.