[Asus 1000HE] s2disk/hibernate hangs during saving of image data

Bug #1328727 reported by Dick Streefland
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Linux
Confirmed
Medium
linux (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Hibernation with the pm-hibernate command works fine on a freshly
booted system, but when a significant portion of the RAM is in use,
for instance by starting gimp, google-chrome and firefox at the same
time, it stalls at the start of the saving of the image data:

s2disk: Snapshotting system
s2disk: System snapshot ready. Preparing to write
s2disk: Image size: 441652 kilobytes
s2disk: Free swap: 1798624 kilobytes
s2disk: Saving 110413 image data pages (press backspace to abort) ... 0%

The system is not usable at this point, although alt-sysrq still
works. It looks like some sort of deadlock.

The system is an Asus eeePC 1000HE with 2GB RAM and a 2GB swap
partition and a Samsung SSD 840 EVO. The Ubuntu release is 14.04
LTS. The kernel package is linux-image-3.13.0-27-generic version
3.13.0-27.50 (32 bit).

I found a kernel bug report that looks exactly the same:

https://bugzilla.kernel.org/show_bug.cgi?id=75101

In that bug report, the problem was bisected to commit a1c3bfb2.
This commit is part of the 3.14 kernel, but was apparently backported
to the 3.13 Ubuntu kernel. I've rebuild the kernel package with this
commit reverted, and it seems to fix this issue for me.
---
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: dick 1719 F.... pulseaudio
CurrentDesktop: Unity
DistroRelease: Ubuntu 14.04
HibernationDevice: RESUME=UUID=c6b78f80-b4a1-4b1a-91b4-8ae5c41b36f4
InstallationDate: Installed on 2013-04-28 (408 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release i386 (20130424)
MachineType: ASUSTeK Computer INC. 1000HE
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-27-generic root=UUID=54684f57-2a33-403f-ae4d-ad6b3d0168ea ro acpi_osi=Linux acpi_backlight=vendor quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.13.0-27.50hib-generic 3.13.11
RelatedPackageVersions:
 linux-restricted-modules-3.13.0-27-generic N/A
 linux-backports-modules-3.13.0-27-generic N/A
 linux-firmware 1.127.2
Tags: trusty
Uname: Linux 3.13.0-27-generic i686
UpgradeStatus: Upgraded to trusty on 2014-04-26 (45 days ago)
UserGroups: adm cdrom dialout dip fuse lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 06/24/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0902
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: 1000HE
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: x.xx
dmi.chassis.asset.tag: 0x00000000
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTek Computer INC.
dmi.chassis.version: x.x
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0902:bd06/24/2009:svnASUSTeKComputerINC.:pn1000HE:pvrx.x:rvnASUSTeKComputerINC.:rn1000HE:rvrx.xx:cvnASUSTekComputerINC.:ct10:cvrx.x:
dmi.product.name: 1000HE
dmi.product.version: x.x
dmi.sys.vendor: ASUSTeK Computer INC.

Revision history for this message
In , oliverml1 (oliverml1-linux-kernel-bugs) wrote :

Created attachment 134271
Full console trace with various SysRq outputs

Since v3.14 under normal desktop usage my s2disk/hibernate often blocks on the saving of the image data ("Saving 506031 image data pages () ...").

With following test I can reproduce the problem reliably:
---
0) Boot

1) Fill ram with 2GiB (+50% in my case)

mount -t tmpfs tmpfs /media/test/
dd if=/dev/zero of=/media/test/test0.bin bs=1k count=$[1024*1024]
dd if=/dev/zero of=/media/test/test1.bin bs=1k count=$[1024*1024]

2) Do s2disk

s2disk

---
s2disk: Unable to switch virtual terminals, using the current console.
s2disk: Snapshotting system
s2disk: System snapshot ready. Preparing to write
s2disk: Image size: 2024124 kilobytes
s2disk: Free swap: 3791208 kilobytes
s2disk: Saving 506031 image data pages (press backspace to abort) ... 0%

#Problem>: ... there is stays and blocks. SysRq still responds, so that I could trigger various debug outputs.
---

I've bisected this to following commit:
---
commit a1c3bfb2f67ef766de03f1f56bdfff9c8595ab14 (HEAD, refs/bisect/bad)
Author: Johannes Weiner <email address hidden>
Date: Wed Jan 29 14:05:41 2014 -0800

    mm/page-writeback.c: do not count anon pages as dirtyable memory

[...]
---

Reverting a1c3bfb2 fixes s2disk for me again - so basically I'm ok ;). But maybe there is still another better solution.

Attached is a full console trace with various SysRq outputs, possibly useful for analyzing.

BR, Oliver

Revision history for this message
In , oliverml1 (oliverml1-linux-kernel-bugs) wrote :

Arch: x86_64

Revision history for this message
In , akpm (akpm-linux-kernel-bugs) wrote :

(switched to email. Please respond via emailed reply-to-all, not via the
bugzilla web interface).

On Tue, 29 Apr 2014 20:13:44 +0000 <email address hidden> wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=75101
>
> Bug ID: 75101
> Summary: [bisected] s2disk / hibernate blocks on "Saving 506031
> image data pages () ..."
> Product: Memory Management
> Version: 2.5
> Kernel Version: v3.14
> Hardware: All
> OS: Linux
> Tree: Mainline
> Status: NEW
> Severity: normal
> Priority: P1
> Component: Other
> Assignee: <email address hidden>
> Reporter: <email address hidden>
> Regression: No
>
> Created attachment 134271
> --> https://bugzilla.kernel.org/attachment.cgi?id=134271&action=edit
> Full console trace with various SysRq outputs
>
> Since v3.14 under normal desktop usage my s2disk/hibernate often blocks on
> the
> saving of the image data ("Saving 506031 image data pages () ...").

A means to reproduce as well as a bisection result. Nice! Thanks.

Johannes, could you please take a look?

> With following test I can reproduce the problem reliably:
> ---
> 0) Boot
>
> 1) Fill ram with 2GiB (+50% in my case)
>
> mount -t tmpfs tmpfs /media/test/
> dd if=/dev/zero of=/media/test/test0.bin bs=1k count=$[1024*1024]
> dd if=/dev/zero of=/media/test/test1.bin bs=1k count=$[1024*1024]
>
> 2) Do s2disk
>
> s2disk
>
> ---
> s2disk: Unable to switch virtual terminals, using the current console.
> s2disk: Snapshotting system
> s2disk: System snapshot ready. Preparing to write
> s2disk: Image size: 2024124 kilobytes
> s2disk: Free swap: 3791208 kilobytes
> s2disk: Saving 506031 image data pages (press backspace to abort) ... 0%
>
> #Problem>: ... there is stays and blocks. SysRq still responds, so that I
> could
> trigger various debug outputs.
> ---
>
> I've bisected this to following commit:
> ---
> commit a1c3bfb2f67ef766de03f1f56bdfff9c8595ab14 (HEAD, refs/bisect/bad)
> Author: Johannes Weiner <email address hidden>
> Date: Wed Jan 29 14:05:41 2014 -0800
>
> mm/page-writeback.c: do not count anon pages as dirtyable memory
>
> [...]
> ---
>
> Reverting a1c3bfb2 fixes s2disk for me again - so basically I'm ok ;). But
> maybe there is still another better solution.
>
> Attached is a full console trace with various SysRq outputs, possibly useful
> for analyzing.
>
> BR, Oliver
>

Revision history for this message
In , hannes (hannes-linux-kernel-bugs) wrote :
Download full text (4.5 KiB)

Hi,

On Tue, Apr 29, 2014 at 03:24:37PM -0700, Andrew Morton wrote:
>
> (switched to email. Please respond via emailed reply-to-all, not via the
> bugzilla web interface).
>
> On Tue, 29 Apr 2014 20:13:44 +0000 <email address hidden> wrote:
>
> > https://bugzilla.kernel.org/show_bug.cgi?id=75101
> >
> > Bug ID: 75101
> > Summary: [bisected] s2disk / hibernate blocks on "Saving 506031
> > image data pages () ..."
> > Product: Memory Management
> > Version: 2.5
> > Kernel Version: v3.14
> > Hardware: All
> > OS: Linux
> > Tree: Mainline
> > Status: NEW
> > Severity: normal
> > Priority: P1
> > Component: Other
> > Assignee: <email address hidden>
> > Reporter: <email address hidden>
> > Regression: No
> >
> > Created attachment 134271
> > --> https://bugzilla.kernel.org/attachment.cgi?id=134271&action=edit
> > Full console trace with various SysRq outputs
> >
> > Since v3.14 under normal desktop usage my s2disk/hibernate often blocks on
> the
> > saving of the image data ("Saving 506031 image data pages () ...").
>
> A means to reproduce as well as a bisection result. Nice! Thanks.
>
> Johannes, could you please take a look?
>
> > With following test I can reproduce the problem reliably:
> > ---
> > 0) Boot
> >
> > 1) Fill ram with 2GiB (+50% in my case)
> >
> > mount -t tmpfs tmpfs /media/test/
> > dd if=/dev/zero of=/media/test/test0.bin bs=1k count=$[1024*1024]
> > dd if=/dev/zero of=/media/test/test1.bin bs=1k count=$[1024*1024]
> >
> > 2) Do s2disk
> >
> > s2disk
> >
> > ---
> > s2disk: Unable to switch virtual terminals, using the current console.
> > s2disk: Snapshotting system
> > s2disk: System snapshot ready. Preparing to write
> > s2disk: Image size: 2024124 kilobytes
> > s2disk: Free swap: 3791208 kilobytes
> > s2disk: Saving 506031 image data pages (press backspace to abort) ... 0%
> >
> > #Problem>: ... there is stays and blocks. SysRq still responds, so that I
> could
> > trigger various debug outputs.

According to your dmesg s2disk is stuck in balance_dirty_pages():

[ 215.645240] s2disk D ffff88011fd93100 0 3323 3261 0x00000000
[ 215.645240] ffff8801196d4110 0000000000000082 0000000000013100 ffff8801196d4110
[ 215.645240] ffff8800365cdfd8 ffff880119ed9190 00000000ffffc16c ffff8800365cdbe8
[ 215.645240] 0000000000000032 0000000000000032 ffff8801196d4110 0000000000000000
[ 215.645240] Call Trace:
[ 215.645240] [<ffffffff8162fdce>] ? schedule_timeout+0xde/0xff
[ 215.645240] [<ffffffff81041be1>] ? ftrace_raw_output_tick_stop+0x55/0x55
[ 215.645240] [<ffffffff81630987>] ? io_schedule_timeout+0x5d/0x7e
[ 215.645240] [<ffffffff810cb035>] ? balance_dirty_pages_ratelimited+0x588/0x747
[ 215.645240] [<ffffffff812d0795>] ? radix_tree_tag_set+0x69/0xc4
[ 215.645240] [<ffffffff810c244e>] ? generic_file_buffered_write+0x1a8/0x21c
[ 215.645240] [<ffffffff810c351e>] ? __generic_file_aio_write+0x1c7/0x1fe
[ 215.645240] [<ffffffff81134ab5>] ? blkdev_aio_write+0x44/0x79
[ 215.645240] [<ffffff...

Read more...

Revision history for this message
In , jack (jack-linux-kernel-bugs) wrote :
Download full text (5.1 KiB)

  Hello,

On Mon 05-05-14 11:35:41, Johannes Weiner wrote:
> On Tue, Apr 29, 2014 at 03:24:37PM -0700, Andrew Morton wrote:
> > (switched to email. Please respond via emailed reply-to-all, not via the
> > bugzilla web interface).
> >
> > On Tue, 29 Apr 2014 20:13:44 +0000 <email address hidden>
> wrote:
> >
> > > https://bugzilla.kernel.org/show_bug.cgi?id=75101
> > >
> > > Bug ID: 75101
> > > Summary: [bisected] s2disk / hibernate blocks on "Saving
> 506031
> > > image data pages () ..."
> > > Product: Memory Management
> > > Version: 2.5
> > > Kernel Version: v3.14
> > > Hardware: All
> > > OS: Linux
> > > Tree: Mainline
> > > Status: NEW
> > > Severity: normal
> > > Priority: P1
> > > Component: Other
> > > Assignee: <email address hidden>
> > > Reporter: <email address hidden>
> > > Regression: No
> > >
> > > Created attachment 134271
> > > --> https://bugzilla.kernel.org/attachment.cgi?id=134271&action=edit
> > > Full console trace with various SysRq outputs
> > >
> > > Since v3.14 under normal desktop usage my s2disk/hibernate often blocks
> on the
> > > saving of the image data ("Saving 506031 image data pages () ...").
> >
> > A means to reproduce as well as a bisection result. Nice! Thanks.
> >
> > Johannes, could you please take a look?
> >
> > > With following test I can reproduce the problem reliably:
> > > ---
> > > 0) Boot
> > >
> > > 1) Fill ram with 2GiB (+50% in my case)
> > >
> > > mount -t tmpfs tmpfs /media/test/
> > > dd if=/dev/zero of=/media/test/test0.bin bs=1k count=$[1024*1024]
> > > dd if=/dev/zero of=/media/test/test1.bin bs=1k count=$[1024*1024]
> > >
> > > 2) Do s2disk
> > >
> > > s2disk
> > >
> > > ---
> > > s2disk: Unable to switch virtual terminals, using the current console.
> > > s2disk: Snapshotting system
> > > s2disk: System snapshot ready. Preparing to write
> > > s2disk: Image size: 2024124 kilobytes
> > > s2disk: Free swap: 3791208 kilobytes
> > > s2disk: Saving 506031 image data pages (press backspace to abort) ...
> 0%
> > >
> > > #Problem>: ... there is stays and blocks. SysRq still responds, so that I
> could
> > > trigger various debug outputs.
>
> According to your dmesg s2disk is stuck in balance_dirty_pages():
>
> [ 215.645240] s2disk D ffff88011fd93100 0 3323 3261
> 0x00000000
> [ 215.645240] ffff8801196d4110 0000000000000082 0000000000013100
> ffff8801196d4110
> [ 215.645240] ffff8800365cdfd8 ffff880119ed9190 00000000ffffc16c
> ffff8800365cdbe8
> [ 215.645240] 0000000000000032 0000000000000032 ffff8801196d4110
> 0000000000000000
> [ 215.645240] Call Trace:
> [ 215.645240] [<ffffffff8162fdce>] ? schedule_timeout+0xde/0xff
> [ 215.645240] [<ffffffff81041be1>] ? ftrace_raw_output_tick_stop+0x55/0x55
> [ 215.645240] [<ffffffff81630987>] ? io_schedule_timeout+0x5d/0x7e
> [ 215.645240] [<ffffffff810cb035>] ?
> balance_dirty_pages_ratelimited+0x588/0x747
> [ 215.645240] [<ffffffff812d0795>] ? radix_tree_tag_set+0x69/0xc4
> [ 215.645240] [<ffffffff810c...

Read more...

Revision history for this message
In , oliverml1 (oliverml1-linux-kernel-bugs) wrote :

Created attachment 135171
session.log.s2disk.20140505_2238.bz2

Hello,

1) Attached a full function-trace log + other SysRq outputs, see [1]
attached.

I saw bdi_...() calls in the s2disk paths, but didn't check in detail
Probably more efficient when one of you guys looks directly.

2) /sys/kernel/debug/bdi/<dev>/stats

They are also in [1] - however the major/minors of my sdbX didn't
match with the /sys/.../bdi/<dev>'s. So I just displayed them all.

3) What is the estimated bandwith?

It's an Samsung SSD 840 PRO, in this system: Read: 237 MB/s, Write 265
MB/s - see [2] (the faster writing is maybe due caching?)

Just by curiosity:

Can you also reproduce it ? ... since the test is quite simple.
Or is it something specific in my system here ?

BR, Oliver

---

[1] Attached session.log.s2disk.20140505_2238.bz2
- 18MiB uncompressed function-trace output + others
- The bdi outputs are also in there

[2] Rough bandwidth tests
Read:
---
gamix64:~# swapon -s
Filename Type Size Used Priority
/dev/sdb7 partition 4193276 0 -1
gamix64:~# dd if=/dev/sdb7 bs=1024 count=$[1024*1024*4] |pv >/dev/null
   4GB 0:00:18 [ 226MB/s] [ <=> ]4193280+0 records in
4193280+0 records out

4293918720 bytes (4.3 GB) copied, 18.1509 s, 237 MB/s
---

Write:
---
gamix64:~# dd if=/dev/zero bs=1024 count=$[1024*1024*4] |pv >/root/Test/test1.bin
4194304+0 records inMB/s] [ <=> ]
4194304+0 records out
4294967296 bytes (4.3 GB) copied, 16.2039 s, 265 MB/s
   4GB 0:00:15 [ 256MB/s] [ <=> ]
---

On Mon, 5 May 2014 18:10:53 +0200
Jan Kara <email address hidden> wrote:

> > Ignoring free pages due to dirty_balance_reserve, inactive+active
> > file yields 3481 dirtyable pages, which sets the global limits to
> > 174 pages background and 348 pages foreground with the default
> > configuration. It's low, but not 0.
> OK, so we are over the dirty_limit.
>
> > So why is the dirtier throttled to starvation when the background
> > flusher is not even running? Shouldn't they be looking at the same
> > numbers and behave inversely?
> These days there isn't a background flusher thread but a workqueue
> which handles the flushing work. But still you should see that in a
> process list like "flush-$dev". Can you check whether
> balance_dirty_pages() properly calls bdi_start_background_writeback()
> and whether wb_do_writeback() gets to run (there are tracepoints in
> there)? Also can you have a look
> in /sys/kernel/debug/bdi/<dev>/stats? What is the estimated bandwith?
>
> Honza

Revision history for this message
In , hannes (hannes-linux-kernel-bugs) wrote :
Download full text (12.3 KiB)

Hi Oliver,

On Mon, May 05, 2014 at 11:00:13PM +0200, Oliver Winker wrote:
> Hello,
>
> 1) Attached a full function-trace log + other SysRq outputs, see [1]
> attached.
>
> I saw bdi_...() calls in the s2disk paths, but didn't check in detail
> Probably more efficient when one of you guys looks directly.

Thanks, this looks interesting. balance_dirty_pages() wakes up the
bdi_wq workqueue as it should:

[ 249.148009] s2disk-3327 2.... 48550413us : global_dirty_limits <-balance_dirty_pages_ratelimited
[ 249.148009] s2disk-3327 2.... 48550414us : global_dirtyable_memory <-global_dirty_limits
[ 249.148009] s2disk-3327 2.... 48550414us : writeback_in_progress <-balance_dirty_pages_ratelimited
[ 249.148009] s2disk-3327 2.... 48550414us : bdi_start_background_writeback <-balance_dirty_pages_ratelimited
[ 249.148009] s2disk-3327 2.... 48550414us : mod_delayed_work_on <-balance_dirty_pages_ratelimited
[ 249.148009] s2disk-3327 2.... 48550414us : try_to_grab_pending <-mod_delayed_work_on
[ 249.148009] s2disk-3327 2d... 48550414us : del_timer <-try_to_grab_pending
[ 249.148009] s2disk-3327 2d... 48550415us : get_work_pool <-try_to_grab_pending
[ 249.148009] s2disk-3327 2d... 48550415us : _raw_spin_lock <-try_to_grab_pending
[ 249.148009] s2disk-3327 2d... 48550415us : get_work_pwq <-try_to_grab_pending
[ 249.148009] s2disk-3327 2d... 48550415us : pwq_activate_delayed_work <-try_to_grab_pending
[ 249.148009] s2disk-3327 2d... 48550415us : get_work_pwq <-pwq_activate_delayed_work
[ 249.148009] s2disk-3327 2d... 48550415us : move_linked_works <-pwq_activate_delayed_work
[ 249.148009] s2disk-3327 2d... 48550415us : get_work_pwq <-try_to_grab_pending
[ 249.148009] s2disk-3327 2d... 48550416us : pwq_dec_nr_in_flight <-try_to_grab_pending
[ 249.148009] s2disk-3327 2d... 48550416us : __queue_delayed_work <-mod_delayed_work_on
[ 249.148009] s2disk-3327 2d... 48550416us : __queue_work <-mod_delayed_work_on
[ 249.148009] s2disk-3327 2d... 48550416us : get_work_pool <-__queue_work
[ 249.148009] s2disk-3327 2d... 48550416us : _raw_spin_lock <-__queue_work
[ 249.148009] s2disk-3327 2d... 48550416us : insert_work <-__queue_work
[ 249.148009] s2disk-3327 2d... 48550417us : get_pwq.isra.20 <-insert_work
[ 249.148009] s2disk-3327 2d... 48550417us : wake_up_worker <-__queue_work
[ 249.148009] s2disk-3327 2d... 48550417us : wake_up_process <-__queue_work
[ 249.148009] s2disk-3327 2d... 48550417us : try_to_wake_up <-__queue_work
[ 249.148009] s2disk-3327 2d... 48550417us : _raw_spin_lock_irqsave <-try_to_wake_up
[ 249.148009] s2disk-3327 2d... 48550417us : task_waking_fair <-try_to_wake_up
[ 249.148009] s2disk-3327 2d... 48550418us : select_task_rq_fair <-select_task_rq
[ 249.148009] s2disk-3327 2d... 48550418us : idle_cpu <-select_task_rq_fair
[ 249.148009] s2disk-3327 2d... 48550418us : idle_cpu <-select_task_rq_fair
[ 249.148009] s2disk-3327 2d... 48550418us : cpus_share_cache <-try_to_wake_up
[ 249.148009] s2disk-3327 2d... 48550418us : _raw_spin_lock <-try_to_wake_up
[ 249.148009] ...

Revision history for this message
In , dick (dick-linux-kernel-bugs) wrote :

I'm experiencing exactly the same hibernation problem and finally found this bug report. However, I'm running Ubuntu 14.10 (32 bit) with the default kernel 3.13.0-24, not 3.14.

My machine is an Asus eeePC 1000HE with 2GB RAM and a 2GB swap partition. I recently replaced the hard disk by a Samsung SSD 840 EVO. I can reproduce the hang by first starting a couple of large applications: gimp, google-chrome and firefox and then running pm-hibernate. The system hangs after:

s2disk: Snapshotting system
s2disk: System snapshot ready. Preparing to write
s2disk: Image size: 441652 kilobytes
s2disk: Free swap: 1798624 kilobytes
s2disk: Saving 110413 image data pages (press backspace to abort) ... 0%

Revision history for this message
In , dick (dick-linux-kernel-bugs) wrote :

I meant Ubuntu 14.04, not 14.10 obviously.

Revision history for this message
In , dick (dick-linux-kernel-bugs) wrote :

I checked the source code of the Ubuntu kernel (linux-image-3.13.0-24-generic), and the Ubuntu modifications indeed include commit a1c3bfb2 from the 3.14 kernel.

Revision history for this message
In , dick (dick-linux-kernel-bugs) wrote :

Rebuilding the Ubuntu kernel with commit a1c3bf reversed fixes this issue for me as well.

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1328727

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: trusty
Revision history for this message
Dick Streefland (dick-streefland) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Dick Streefland (dick-streefland) wrote : BootDmesg.txt

apport information

Revision history for this message
Dick Streefland (dick-streefland) wrote : CRDA.txt

apport information

Revision history for this message
Dick Streefland (dick-streefland) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Dick Streefland (dick-streefland) wrote : IwConfig.txt

apport information

Revision history for this message
Dick Streefland (dick-streefland) wrote : Lspci.txt

apport information

Revision history for this message
Dick Streefland (dick-streefland) wrote : Lsusb.txt

apport information

Revision history for this message
Dick Streefland (dick-streefland) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Dick Streefland (dick-streefland) wrote : ProcEnviron.txt

apport information

Revision history for this message
Dick Streefland (dick-streefland) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Dick Streefland (dick-streefland) wrote : ProcModules.txt

apport information

Revision history for this message
Dick Streefland (dick-streefland) wrote : PulseList.txt

apport information

Revision history for this message
Dick Streefland (dick-streefland) wrote : RfKill.txt

apport information

Revision history for this message
Dick Streefland (dick-streefland) wrote : UdevDb.txt

apport information

Revision history for this message
Dick Streefland (dick-streefland) wrote : UdevLog.txt

apport information

Revision history for this message
Dick Streefland (dick-streefland) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
penalvch (penalvch)
tags: added: bios-outdated-1102
Changed in linux (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
summary: - s2disk/hibernate hangs during saving of image data
+ [Asus 1000HE] s2disk/hibernate hangs during saving of image data
Revision history for this message
Dick Streefland (dick-streefland) wrote :

I've updated the BIOS to the latest version:

/home/dick $ sudo dmidecode -s bios-version && sudo dmidecode -s bios-release-date
1104
10/14/2009

The new BIOS doesn't make any difference. Hibernation still hangs with the original Ubuntu kernel, and it works fine with a kernel that has commit a1c3bfb2 reverted. A BIOS problem also seems unlikely, as the submitter of the kernel bug report mentioned above has totally different hardware (and a 64-bit kernel).

penalvch (penalvch)
tags: added: latest-bios-1104
removed: bios-outdated-1102
Revision history for this message
penalvch (penalvch) wrote :

Dick Streefland, could you please test the latest upstream kernel available from the first line at the top page (not the daily folder) following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-3.15

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

Changed in linux (Ubuntu):
importance: Low → Medium
Revision history for this message
Dick Streefland (dick-streefland) wrote :

I've tested the 3.15.0 upstream kernel, and the problem persists: hibernation works fine directly after a reboot, but it hangs at 0% when I first start gimp, google-chrome and firefox.

tags: added: kernel-bug-exists-upstream kernel-bug-exists-upstream-3.15.0
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
In , hannes (hannes-linux-kernel-bugs) wrote :
Download full text (3.7 KiB)

On Tue, May 06, 2014 at 01:45:01AM +0200, Rafael J. Wysocki wrote:
> On 5/6/2014 1:33 AM, Johannes Weiner wrote:
> >Hi Oliver,
> >
> >On Mon, May 05, 2014 at 11:00:13PM +0200, Oliver Winker wrote:
> >>Hello,
> >>
> >>1) Attached a full function-trace log + other SysRq outputs, see [1]
> >>attached.
> >>
> >>I saw bdi_...() calls in the s2disk paths, but didn't check in detail
> >>Probably more efficient when one of you guys looks directly.
> >Thanks, this looks interesting. balance_dirty_pages() wakes up the
> >bdi_wq workqueue as it should:
> >
> >[ 249.148009] s2disk-3327 2.... 48550413us : global_dirty_limits
> <-balance_dirty_pages_ratelimited
> >[ 249.148009] s2disk-3327 2.... 48550414us : global_dirtyable_memory
> <-global_dirty_limits
> >[ 249.148009] s2disk-3327 2.... 48550414us : writeback_in_progress
> <-balance_dirty_pages_ratelimited
> >[ 249.148009] s2disk-3327 2.... 48550414us :
> bdi_start_background_writeback <-balance_dirty_pages_ratelimited
> >[ 249.148009] s2disk-3327 2.... 48550414us : mod_delayed_work_on
> <-balance_dirty_pages_ratelimited

> >but the worker wakeup doesn't actually do anything:

> >[ 249.148009] kworker/-3466 2d... 48550431us : finish_task_switch
> <-__schedule
> >[ 249.148009] kworker/-3466 2.... 48550431us : _raw_spin_lock_irq
> <-worker_thread
> >[ 249.148009] kworker/-3466 2d... 48550431us : need_to_create_worker
> <-worker_thread
> >[ 249.148009] kworker/-3466 2d... 48550432us : worker_enter_idle
> <-worker_thread
> >[ 249.148009] kworker/-3466 2d... 48550432us : too_many_workers
> <-worker_enter_idle
> >[ 249.148009] kworker/-3466 2.... 48550432us : schedule <-worker_thread
> >[ 249.148009] kworker/-3466 2.... 48550432us : __schedule
> <-worker_thread
> >
> >My suspicion is that this fails because the bdi_wq is frozen at this
> >point and so the flush work never runs until resume, whereas before my
> >patch the effective dirty limit was high enough so that image could be
> >written in one go without being throttled; followed by an fsync() that
> >then writes the pages in the context of the unfrozen s2disk.
> >
> >Does this make sense? Rafael? Tejun?
>
> Well, it does seem to make sense to me.

From what I see, this is a deadlock in the userspace suspend model and
just happened to work by chance in the past.

Can we patch suspend-utils as follows? Alternatively, suspend-utils
could clear the dirty limits before it starts writing and restore them
post-resume.

---
From 73d6546d5e264130e3d108c97d8317f86dc11149 Mon Sep 17 00:00:00 2001
From: Johannes Weiner <email address hidden>
Date: Thu, 12 Jun 2014 17:43:05 -0400
Subject: [patch] s2disk: fix buffered IO throttling deadlock in frozen state

s2disk uses buffered IO when writing the snapshot image to disk. If
it runs into the dirty limits, the kernel forces it to wait until the
flusher threads clean some of the dirty pages. However, at this point
s2disk already froze the system, including the flusher infrastructure,
and the whole operation deadlocks.

Open the resume device with O_SYNC to force flushing any dirty pages
directly from the write() context before they accumulate and engage
dirt...

Read more...

Revision history for this message
In , dick (dick-linux-kernel-bugs) wrote :

The good news is that with the O_SYNC flag, hibernation succeeds now. The bad news is that it takes forever. The write speed drops from 28.9 MB/s to 1.7 MB/s and the total hibernation time increases from 0:18 to 2:50.

penalvch (penalvch)
tags: added: bisect-done regression-release
Changed in linux (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
In , hannes (hannes-linux-kernel-bugs) wrote :
Download full text (3.6 KiB)

On Fri, Jun 13, 2014 at 01:50:47AM +0200, Rafael J. Wysocki wrote:
> On 6/13/2014 12:02 AM, Johannes Weiner wrote:
> >On Tue, May 06, 2014 at 01:45:01AM +0200, Rafael J. Wysocki wrote:
> >>On 5/6/2014 1:33 AM, Johannes Weiner wrote:
> >>>Hi Oliver,
> >>>
> >>>On Mon, May 05, 2014 at 11:00:13PM +0200, Oliver Winker wrote:
> >>>>Hello,
> >>>>
> >>>>1) Attached a full function-trace log + other SysRq outputs, see [1]
> >>>>attached.
> >>>>
> >>>>I saw bdi_...() calls in the s2disk paths, but didn't check in detail
> >>>>Probably more efficient when one of you guys looks directly.
> >>>Thanks, this looks interesting. balance_dirty_pages() wakes up the
> >>>bdi_wq workqueue as it should:
> >>>
> >>>[ 249.148009] s2disk-3327 2.... 48550413us : global_dirty_limits
> <-balance_dirty_pages_ratelimited
> >>>[ 249.148009] s2disk-3327 2.... 48550414us : global_dirtyable_memory
> <-global_dirty_limits
> >>>[ 249.148009] s2disk-3327 2.... 48550414us : writeback_in_progress
> <-balance_dirty_pages_ratelimited
> >>>[ 249.148009] s2disk-3327 2.... 48550414us :
> bdi_start_background_writeback <-balance_dirty_pages_ratelimited
> >>>[ 249.148009] s2disk-3327 2.... 48550414us : mod_delayed_work_on
> <-balance_dirty_pages_ratelimited
> >>>but the worker wakeup doesn't actually do anything:
> >>>[ 249.148009] kworker/-3466 2d... 48550431us : finish_task_switch
> <-__schedule
> >>>[ 249.148009] kworker/-3466 2.... 48550431us : _raw_spin_lock_irq
> <-worker_thread
> >>>[ 249.148009] kworker/-3466 2d... 48550431us : need_to_create_worker
> <-worker_thread
> >>>[ 249.148009] kworker/-3466 2d... 48550432us : worker_enter_idle
> <-worker_thread
> >>>[ 249.148009] kworker/-3466 2d... 48550432us : too_many_workers
> <-worker_enter_idle
> >>>[ 249.148009] kworker/-3466 2.... 48550432us : schedule
> <-worker_thread
> >>>[ 249.148009] kworker/-3466 2.... 48550432us : __schedule
> <-worker_thread
> >>>
> >>>My suspicion is that this fails because the bdi_wq is frozen at this
> >>>point and so the flush work never runs until resume, whereas before my
> >>>patch the effective dirty limit was high enough so that image could be
> >>>written in one go without being throttled; followed by an fsync() that
> >>>then writes the pages in the context of the unfrozen s2disk.
> >>>
> >>>Does this make sense? Rafael? Tejun?
> >>Well, it does seem to make sense to me.
> > From what I see, this is a deadlock in the userspace suspend model and
> >just happened to work by chance in the past.
>
> Well, it had been working for quite a while, so it was a rather large
> opportunity
> window it seems. :-)

No doubt about that, and I feel bad that it broke. But it's still a
deadlock that can't reasonably be accommodated from dirty throttling.

It can't just put the flushers to sleep and then issue a large amount
of buffered IO, hoping it doesn't hit the dirty limits. Don't shoot
the messenger, this bug needs to be addressed, not get papered over.

> >Can we patch suspend-utils as follows?
>
> Perhaps we can. Let's ask the new maintainer.
>
> Rodolfo, do you think you can apply the patch below to suspend-utils?
>
> >Alternatively, su...

Read more...

Revision history for this message
Javi FA (wyre12) wrote :

Above all it happens when I hibernate system the second time.

Revision history for this message
In , killian.de.volder (killian.de.volder-linux-kernel-bugs) wrote :

Created attachment 183141
suspend-utils: set vm/dirty_bytes before hibernation

I ran into this bug myself, given it was from 2014 I wrote a patch.
I hope I understood the issue correctly, as I'm quite new to this stuff.
Basically sets and remembers /proc/sys/vm/dirty_[ratio|bytes]. And sets bytes to void*(-1).

Revision history for this message
In , killian.de.volder (killian.de.volder-linux-kernel-bugs) wrote :

Created attachment 183151
suspend-utils: set vm/dirty_bytes before hibernation

Revision history for this message
In , atillakaraca72 (atillakaraca72-linux-kernel-bugs) wrote :

(In reply to Killian De Volder from comment #15)
> Created attachment 183151 [details]
> suspend-utils: set vm/dirty_bytes before hibernation

I am on Ubuntu 14.04.3 platform and I use 4.2 Linux kernel. Ubuntu has pm-utils instead of suspend-utils. Can I apply your patch for pm-utils?

Revision history for this message
In , killian.de.volder (killian.de.volder-linux-kernel-bugs) wrote :

(In reply to Atilla from comment #16)
> I am on Ubuntu 14.04.3 platform and I use 4.2 Linux kernel. Ubuntu has
> pm-utils instead of suspend-utils. Can I apply your patch for pm-utils?
I don't know what if pm-utils is like suspend-utils.
IIRC it should only be a bug with pm-utils, unless suspend does the same ?

Revision history for this message
In , atillakaraca72 (atillakaraca72-linux-kernel-bugs) wrote :

(In reply to Killian De Volder from comment #17)
> (In reply to Atilla from comment #16)
> > I am on Ubuntu 14.04.3 platform and I use 4.2 Linux kernel. Ubuntu has
> > pm-utils instead of suspend-utils. Can I apply your patch for pm-utils?
> I don't know what if pm-utils is like suspend-utils.
> IIRC it should only be a bug with pm-utils, unless suspend does the same ?

I found the relevant package, it's in uswsusp-1.0 where s2disk is located. I manually applied the patch and tried it last night on the hope that it would work but it hanged again. It hangs usually if used memory takes over 40% of the RAM.

By the way I ran pm-hibernate to put it to hibernation. Shall I try it with s2disk ? Does it mind?

Revision history for this message
effell (effell) wrote :

Exact same symptoms on a Thinkpad T420 (64bit).
Ubuntu 14.04, 3.13.0-65-generic, 4Gb RAM, Intel SSD root device, 15GB swap partition on a 30Gb device, another SSD.

Revision history for this message
penalvch (penalvch) wrote :

Javier Fernández Aparicio / effell, it will help immensely if you filed a new report via a terminal:
ubuntu-bug linux

Please feel free to subscribe me to it.

Revision history for this message
In , jrf (jrf-linux-kernel-bugs) wrote :

Has this one been solved already?
Asking because I've encountered something similar during tests (kernel 4.9.20):

"s2both: Saving 1474608 image data pages (press backspace to abort) ... 68%"

And there it stalled. Reset necessary.

1474608 pages is close to the max for that box (max_size = 1510475 pages). So I'm wondering whether failure could have been due to this bug or just to overload.

Revision history for this message
In , jrf (jrf-linux-kernel-bugs) wrote :

Could this be related to "early writeout = y" in etc/suspend.conf?

The comment there says:
## start writing out the image early, before buffers are full.
## will most of the time speed up overall writing time (default y)

After "early writeout = n", I couldn't reproduce the bug any more so far, despite quite high memory-load. But I haven't tested it thoroughly.

Speedwise I couldn't see a major difference, if any.

So, for those affected it may be worth a try.

Revision history for this message
In , atillakaraca72 (atillakaraca72-linux-kernel-bugs) wrote :

(In reply to Rainer Fiebig from comment #20)
> Could this be related to "early writeout = y" in etc/suspend.conf?
>
> The comment there says:
> ## start writing out the image early, before buffers are full.
> ## will most of the time speed up overall writing time (default y)
>
> After "early writeout = n", I couldn't reproduce the bug any more so far,
> despite quite high memory-load. But I haven't tested it thoroughly.
>
> Speedwise I couldn't see a major difference, if any.
>
> So, for those affected it may be worth a try.

I don't think it has something to do with `"early writeout = y" in etc/suspend.conf`. I did a clean installation of Ubuntu 16.04 with 4.4.0-21 kernel and it suspends and hibenates well.

Revision history for this message
In , atillakaraca72 (atillakaraca72-linux-kernel-bugs) wrote :

(In reply to Rainer Fiebig from comment #20)
> Could this be related to "early writeout = y" in etc/suspend.conf?
>
> The comment there says:
> ## start writing out the image early, before buffers are full.
> ## will most of the time speed up overall writing time (default y)
>
> After "early writeout = n", I couldn't reproduce the bug any more so far,
> despite quite high memory-load. But I haven't tested it thoroughly.
>
> Speedwise I couldn't see a major difference, if any.
>
> So, for those affected it may be worth a try.

May be it's related to swap partition

Revision history for this message
In , jrf (jrf-linux-kernel-bugs) wrote :

(In reply to Atilla from comment #21)
> (In reply to Rainer Fiebig from comment #20)
> > Could this be related to "early writeout = y" in etc/suspend.conf?
> >
> > The comment there says:
> > ## start writing out the image early, before buffers are full.
> > ## will most of the time speed up overall writing time (default y)
> >
> > After "early writeout = n", I couldn't reproduce the bug any more so far,
> > despite quite high memory-load. But I haven't tested it thoroughly.
> >
> > Speedwise I couldn't see a major difference, if any.
> >
> > So, for those affected it may be worth a try.
>
> I don't think it has something to do with `"early writeout = y" in
> etc/suspend.conf`. I did a clean installation of Ubuntu 16.04 with 4.4.0-21
> kernel and it suspends and hibenates well.

I should have been more specific. On my system this bug is a rare event and only occurred when I was doing tests with extremely high memory-load - close to what s2disk can handle. I've never seen it in normal cases.

Now - if this bug generally only occurs when s2disk is near its limit (true for my system but induction of course) and buffering may have something to do with it (as far as I understand Comment 13) *and* "early writeout" has something to do with buffering then switching it off may be worth a try. And see what happens.

If it still occurs we at least know that "early writeout" is not to blame.

Revision history for this message
In , jrf (jrf-linux-kernel-bugs) wrote :

(In reply to Atilla from comment #22)
> (In reply to Rainer Fiebig from comment #20)
> > Could this be related to "early writeout = y" in etc/suspend.conf?
> >
> > The comment there says:
> > ## start writing out the image early, before buffers are full.
> > ## will most of the time speed up overall writing time (default y)
> >
> > After "early writeout = n", I couldn't reproduce the bug any more so far,
> > despite quite high memory-load. But I haven't tested it thoroughly.
> >
> > Speedwise I couldn't see a major difference, if any.
> >
> > So, for those affected it may be worth a try.
>
> May be it's related to swap partition

Not on my system - that's for sure.

Revision history for this message
In , matheusfillipeag (matheusfillipeag-linux-kernel-bugs) wrote :

Wow! Here I am to revive this topic in 2019! I have exactly the same problem, on ubuntu 18.04.2 with basically all kernels since 4.15.0-42 up to 5, which was all I tested, currently on 4.18.0-17-generic... I guess this has nothing to do with the kernel anyway.

It was working fine before, even with proprietary nvidia drivers which would generally cause a bug on the resume and not while saving the ram snapshot. I've been trying to tell this to the ubuntu guys and you can see my whole story with this problem right here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1819915

Shortly, I tried with or without nvidia modules enabled (or intel or using nouveau), many different kernels, disabled i915, and this is all get in all those different combinations: https://launchpadlibrarian.net/417327528/i915.jpg

The event is pretty random and seems to be more likely to happen after 2 or 4 gb of ram is ever used (I have 16 in total), and nothing changes if later I reduce the ram usage later. But is random, I successfully hibernated with 11gb in use yesterday, just resumed and hibernated 5 seconds later without doing nothing else than running hibernate, and got freeze there.

This also happens randomly if there's just 3 or 2 gb in use, likely on the second attempt of after more than 5 minutes after the computer is on. What can be wrong here?

Revision history for this message
Matheus (mattfly) wrote :
Revision history for this message
In , akpm (akpm-linux-kernel-bugs) wrote :
Download full text (4.5 KiB)

I cc'ed a bunch of people from bugzilla.

Folks, please please please remember to reply via emailed
reply-to-all. Don't use the bugzilla interface!

On Mon, 16 Jun 2014 18:29:26 +0200 "Rafael J. Wysocki" <email address hidden> wrote:

> On 6/13/2014 6:55 AM, Johannes Weiner wrote:
> > On Fri, Jun 13, 2014 at 01:50:47AM +0200, Rafael J. Wysocki wrote:
> >> On 6/13/2014 12:02 AM, Johannes Weiner wrote:
> >>> On Tue, May 06, 2014 at 01:45:01AM +0200, Rafael J. Wysocki wrote:
> >>>> On 5/6/2014 1:33 AM, Johannes Weiner wrote:
> >>>>> Hi Oliver,
> >>>>>
> >>>>> On Mon, May 05, 2014 at 11:00:13PM +0200, Oliver Winker wrote:
> >>>>>> Hello,
> >>>>>>
> >>>>>> 1) Attached a full function-trace log + other SysRq outputs, see [1]
> >>>>>> attached.
> >>>>>>
> >>>>>> I saw bdi_...() calls in the s2disk paths, but didn't check in detail
> >>>>>> Probably more efficient when one of you guys looks directly.
> >>>>> Thanks, this looks interesting. balance_dirty_pages() wakes up the
> >>>>> bdi_wq workqueue as it should:
> >>>>>
> >>>>> [ 249.148009] s2disk-3327 2.... 48550413us : global_dirty_limits
> <-balance_dirty_pages_ratelimited
> >>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> global_dirtyable_memory <-global_dirty_limits
> >>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> writeback_in_progress <-balance_dirty_pages_ratelimited
> >>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> bdi_start_background_writeback <-balance_dirty_pages_ratelimited
> >>>>> [ 249.148009] s2disk-3327 2.... 48550414us : mod_delayed_work_on
> <-balance_dirty_pages_ratelimited
> >>>>> but the worker wakeup doesn't actually do anything:
> >>>>> [ 249.148009] kworker/-3466 2d... 48550431us : finish_task_switch
> <-__schedule
> >>>>> [ 249.148009] kworker/-3466 2.... 48550431us : _raw_spin_lock_irq
> <-worker_thread
> >>>>> [ 249.148009] kworker/-3466 2d... 48550431us :
> need_to_create_worker <-worker_thread
> >>>>> [ 249.148009] kworker/-3466 2d... 48550432us : worker_enter_idle
> <-worker_thread
> >>>>> [ 249.148009] kworker/-3466 2d... 48550432us : too_many_workers
> <-worker_enter_idle
> >>>>> [ 249.148009] kworker/-3466 2.... 48550432us : schedule
> <-worker_thread
> >>>>> [ 249.148009] kworker/-3466 2.... 48550432us : __schedule
> <-worker_thread
> >>>>>
> >>>>> My suspicion is that this fails because the bdi_wq is frozen at this
> >>>>> point and so the flush work never runs until resume, whereas before my
> >>>>> patch the effective dirty limit was high enough so that image could be
> >>>>> written in one go without being throttled; followed by an fsync() that
> >>>>> then writes the pages in the context of the unfrozen s2disk.
> >>>>>
> >>>>> Does this make sense? Rafael? Tejun?
> >>>> Well, it does seem to make sense to me.
> >>> From what I see, this is a deadlock in the userspace suspend model and
> >>> just happened to work by chance in the past.
> >> Well, it had been working for quite a while, so it was a rather large
> >> opportunity
> >> window it seems. :-)
> > No doubt about that, and I feel bad that it broke. But it's still a
> > deadlock that can't reasonably be accommodated from ...

Read more...

Revision history for this message
In , matheusfillipeag (matheusfillipeag-linux-kernel-bugs) wrote :
Download full text (6.2 KiB)

Created attachment 282103
attachment-1247-0.html

Wow! Here I am to revive this topic in 2019! I have exactly the same
problem, on ubuntu 18.04.2 with basically all kernels since 4.15.0-42 up to
5, which was all I tested, currently on 4.18.0-17-generic... I guess this
has nothing to do with the kernel anyway.

It was working fine before, even with proprietary nvidia drivers which
would generally cause a bug on the resume and not while saving the ram
snapshot. I've been trying to tell this to the ubuntu guys and you can see
my whole story with this problem right here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1819915

Shortly, I tried with or without nvidia modules enabled (or intel or using
nouveau), many different kernels, disabled i915, and this is all get in
all those different combinations:
https://launchpadlibrarian.net/417327528/i915.jpg

The event is pretty random and seems to be more likely to happen after 2 or
4 gb of ram is ever used (I have 16 in total), and nothing changes if later
I reduce the ram usage later. But is random, I successfully hibernated with
11gb in use yesterday, just resumed and hibernated 5 seconds later without
doing nothing else than running hibernate, and got freeze there.

This also happens randomly if there's just 3 or 2 gb in use, likely on the
second attempt of after more than 5 minutes after the computer is on. What
can be wrong here?

On Tue, Apr 2, 2019, 20:25 Andrew Morton <email address hidden> wrote:

>
> I cc'ed a bunch of people from bugzilla.
>
> Folks, please please please remember to reply via emailed
> reply-to-all. Don't use the bugzilla interface!
>
> On Mon, 16 Jun 2014 18:29:26 +0200 "Rafael J. Wysocki" <
> <email address hidden>> wrote:
>
> > On 6/13/2014 6:55 AM, Johannes Weiner wrote:
> > > On Fri, Jun 13, 2014 at 01:50:47AM +0200, Rafael J. Wysocki wrote:
> > >> On 6/13/2014 12:02 AM, Johannes Weiner wrote:
> > >>> On Tue, May 06, 2014 at 01:45:01AM +0200, Rafael J. Wysocki wrote:
> > >>>> On 5/6/2014 1:33 AM, Johannes Weiner wrote:
> > >>>>> Hi Oliver,
> > >>>>>
> > >>>>> On Mon, May 05, 2014 at 11:00:13PM +0200, Oliver Winker wrote:
> > >>>>>> Hello,
> > >>>>>>
> > >>>>>> 1) Attached a full function-trace log + other SysRq outputs, see
> [1]
> > >>>>>> attached.
> > >>>>>>
> > >>>>>> I saw bdi_...() calls in the s2disk paths, but didn't check in
> detail
> > >>>>>> Probably more efficient when one of you guys looks directly.
> > >>>>> Thanks, this looks interesting. balance_dirty_pages() wakes up the
> > >>>>> bdi_wq workqueue as it should:
> > >>>>>
> > >>>>> [ 249.148009] s2disk-3327 2.... 48550413us :
> global_dirty_limits <-balance_dirty_pages_ratelimited
> > >>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> global_dirtyable_memory <-global_dirty_limits
> > >>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> writeback_in_progress <-balance_dirty_pages_ratelimited
> > >>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> bdi_start_background_writeback <-balance_dirty_pages_ratelimited
> > >>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> mod_delayed_work_on <-balance_dirty_pages_ratelimited
> > >>>>> but the worker wakeup...

Read more...

Revision history for this message
In , jack (jack-linux-kernel-bugs) wrote :
Download full text (6.0 KiB)

On Tue 02-04-19 16:25:00, Andrew Morton wrote:
>
> I cc'ed a bunch of people from bugzilla.
>
> Folks, please please please remember to reply via emailed
> reply-to-all. Don't use the bugzilla interface!
>
> On Mon, 16 Jun 2014 18:29:26 +0200 "Rafael J. Wysocki"
> <email address hidden> wrote:
>
> > On 6/13/2014 6:55 AM, Johannes Weiner wrote:
> > > On Fri, Jun 13, 2014 at 01:50:47AM +0200, Rafael J. Wysocki wrote:
> > >> On 6/13/2014 12:02 AM, Johannes Weiner wrote:
> > >>> On Tue, May 06, 2014 at 01:45:01AM +0200, Rafael J. Wysocki wrote:
> > >>>> On 5/6/2014 1:33 AM, Johannes Weiner wrote:
> > >>>>> Hi Oliver,
> > >>>>>
> > >>>>> On Mon, May 05, 2014 at 11:00:13PM +0200, Oliver Winker wrote:
> > >>>>>> Hello,
> > >>>>>>
> > >>>>>> 1) Attached a full function-trace log + other SysRq outputs, see [1]
> > >>>>>> attached.
> > >>>>>>
> > >>>>>> I saw bdi_...() calls in the s2disk paths, but didn't check in
> detail
> > >>>>>> Probably more efficient when one of you guys looks directly.
> > >>>>> Thanks, this looks interesting. balance_dirty_pages() wakes up the
> > >>>>> bdi_wq workqueue as it should:
> > >>>>>
> > >>>>> [ 249.148009] s2disk-3327 2.... 48550413us :
> global_dirty_limits <-balance_dirty_pages_ratelimited
> > >>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> global_dirtyable_memory <-global_dirty_limits
> > >>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> writeback_in_progress <-balance_dirty_pages_ratelimited
> > >>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> bdi_start_background_writeback <-balance_dirty_pages_ratelimited
> > >>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> mod_delayed_work_on <-balance_dirty_pages_ratelimited
> > >>>>> but the worker wakeup doesn't actually do anything:
> > >>>>> [ 249.148009] kworker/-3466 2d... 48550431us : finish_task_switch
> <-__schedule
> > >>>>> [ 249.148009] kworker/-3466 2.... 48550431us : _raw_spin_lock_irq
> <-worker_thread
> > >>>>> [ 249.148009] kworker/-3466 2d... 48550431us :
> need_to_create_worker <-worker_thread
> > >>>>> [ 249.148009] kworker/-3466 2d... 48550432us : worker_enter_idle
> <-worker_thread
> > >>>>> [ 249.148009] kworker/-3466 2d... 48550432us : too_many_workers
> <-worker_enter_idle
> > >>>>> [ 249.148009] kworker/-3466 2.... 48550432us : schedule
> <-worker_thread
> > >>>>> [ 249.148009] kworker/-3466 2.... 48550432us : __schedule
> <-worker_thread
> > >>>>>
> > >>>>> My suspicion is that this fails because the bdi_wq is frozen at this
> > >>>>> point and so the flush work never runs until resume, whereas before
> my
> > >>>>> patch the effective dirty limit was high enough so that image could
> be
> > >>>>> written in one go without being throttled; followed by an fsync()
> that
> > >>>>> then writes the pages in the context of the unfrozen s2disk.
> > >>>>>
> > >>>>> Does this make sense? Rafael? Tejun?
> > >>>> Well, it does seem to make sense to me.
> > >>> From what I see, this is a deadlock in the userspace suspend model and
> > >>> just happened to work by chance in the past.
> > >> Well, it had been working for quite a while, so it was a rather large
> > >> oppor...

Read more...

Changed in linux:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , matheusfillipeag (matheusfillipeag-linux-kernel-bugs) wrote :
Download full text (7.2 KiB)

Yes I can sorta confirm the bug is in uswsusp. I removed the package
and pm-utils and used both "systemctl hibernate" and "echo disk >>
/sys/power/state" to hibernate. It seems to succeed and shuts down, I
am just not able to resume from it, which seems to be a classical
problem solved just by setting the resume swap file/partition on grub.
(which i tried and didn't work even with nvidia disabled)

Anyway uswsusp is still necessary because the default kernel
hibernation doesn't work with the proprietary nvidia drivers as long
as I know and tested.

Is there anyway I could get any workaround to this bug on my current
OS by the way?

On Wed, Apr 3, 2019 at 7:04 AM Rainer Fiebig <email address hidden> wrote:
>
> Am 03.04.19 um 11:34 schrieb Jan Kara:
> > On Tue 02-04-19 16:25:00, Andrew Morton wrote:
> >>
> >> I cc'ed a bunch of people from bugzilla.
> >>
> >> Folks, please please please remember to reply via emailed
> >> reply-to-all. Don't use the bugzilla interface!
> >>
> >> On Mon, 16 Jun 2014 18:29:26 +0200 "Rafael J. Wysocki"
> <email address hidden> wrote:
> >>
> >>> On 6/13/2014 6:55 AM, Johannes Weiner wrote:
> >>>> On Fri, Jun 13, 2014 at 01:50:47AM +0200, Rafael J. Wysocki wrote:
> >>>>> On 6/13/2014 12:02 AM, Johannes Weiner wrote:
> >>>>>> On Tue, May 06, 2014 at 01:45:01AM +0200, Rafael J. Wysocki wrote:
> >>>>>>> On 5/6/2014 1:33 AM, Johannes Weiner wrote:
> >>>>>>>> Hi Oliver,
> >>>>>>>>
> >>>>>>>> On Mon, May 05, 2014 at 11:00:13PM +0200, Oliver Winker wrote:
> >>>>>>>>> Hello,
> >>>>>>>>>
> >>>>>>>>> 1) Attached a full function-trace log + other SysRq outputs, see
> [1]
> >>>>>>>>> attached.
> >>>>>>>>>
> >>>>>>>>> I saw bdi_...() calls in the s2disk paths, but didn't check in
> detail
> >>>>>>>>> Probably more efficient when one of you guys looks directly.
> >>>>>>>> Thanks, this looks interesting. balance_dirty_pages() wakes up the
> >>>>>>>> bdi_wq workqueue as it should:
> >>>>>>>>
> >>>>>>>> [ 249.148009] s2disk-3327 2.... 48550413us :
> global_dirty_limits <-balance_dirty_pages_ratelimited
> >>>>>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> global_dirtyable_memory <-global_dirty_limits
> >>>>>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> writeback_in_progress <-balance_dirty_pages_ratelimited
> >>>>>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> bdi_start_background_writeback <-balance_dirty_pages_ratelimited
> >>>>>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> mod_delayed_work_on <-balance_dirty_pages_ratelimited
> >>>>>>>> but the worker wakeup doesn't actually do anything:
> >>>>>>>> [ 249.148009] kworker/-3466 2d... 48550431us :
> finish_task_switch <-__schedule
> >>>>>>>> [ 249.148009] kworker/-3466 2.... 48550431us :
> _raw_spin_lock_irq <-worker_thread
> >>>>>>>> [ 249.148009] kworker/-3466 2d... 48550431us :
> need_to_create_worker <-worker_thread
> >>>>>>>> [ 249.148009] kworker/-3466 2d... 48550432us : worker_enter_idle
> <-worker_thread
> >>>>>>>> [ 249.148009] kworker/-3466 2d... 48550432us : too_many_workers
> <-worker_enter_idle
> >>>>>>>> [ 249.148009] kworker/-3466 2.... 48550432us : schedule
> <-worker_thread
> >>>>>>>> [ 249...

Read more...

Revision history for this message
In , matheusfillipeag (matheusfillipeag-linux-kernel-bugs) wrote :
Download full text (9.4 KiB)

Created attachment 282113
pm-suspend.log

Okay, I reinstalled pm-utils and make sure uswsusp was removed (apt
remove --purge uswsusp).

# fdisk -l | grep swap
/dev/sda8 439762944 473214975 33452032 16G Linux swap
root@matheus-Inspiron-15-7000-Gaming:/home/matheus# blkid /dev/sda8
/dev/sda8: UUID="70d967e6-ad52-4c21-baf0-01a813ccc6ac" TYPE="swap"
PARTUUID="666096bb-0e72-431a-b981-9fd0c7e553ee"

I have resume=70d967e6-ad52-4c21-baf0-01a813ccc6ac variable set in
all linux comamnd kernel (GRUB_CMDLINE_LINUX_DEFAULT) as you can see
on my attached boot-sequence. You can see more info about my setup and
what I already did here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1819915

> What doesn't work: hibernating or resuming?
> And /var/log/pm-suspend.log might give you a clue what causes the problem.

Resuming doesn't work and still don't work.I tried setting either my
partition to /dev/sda8 or the uiid. It simply boots as if it was the
fist boot.

On Wed, Apr 3, 2019 at 2:55 PM Rainer Fiebig <email address hidden> wrote:
>
> Am 03.04.19 um 18:59 schrieb Matheus Fillipe:
> > Yes I can sorta confirm the bug is in uswsusp. I removed the package
> > and pm-utils
>
> Matheus,
>
> there is no need to uninstall pm-utils. You actually need this to have
> comfortable suspend/hibernate.
>
> The only additional option you will get from uswsusp is true s2both
> (which is nice, imo).
>
> pm-utils provides something similar called "suspend-hybrid" which means
> that the computer suspends and after a configurable time wakes up again
> to go into hibernation.
>
> and used both "systemctl hibernate" and "echo disk >>
> > /sys/power/state" to hibernate. It seems to succeed and shuts down, I
> > am just not able to resume from it, which seems to be a classical
> > problem solved just by setting the resume swap file/partition on grub.
> > (which i tried and didn't work even with nvidia disabled)
> >
> > Anyway uswsusp is still necessary because the default kernel
> > hibernation doesn't work with the proprietary nvidia drivers as long
> > as I know and tested.
>
> What doesn't work: hibernating or resuming?
> And /var/log/pm-suspend.log might give you a clue what causes the problem.
>
> >
> > Is there anyway I could get any workaround to this bug on my current
> > OS by the way?
>
> *I* don't know, I don't use Ubuntu. But what I would do now is
> re-install pm-utils *without* uswsusp and make sure that you have got
> the swap-partition/file right in grub.cfg or menu.lst (grub legacy).
>
> Then do a few pm-hibernate/resume and tell us what happened.
>
> So long!
>
> >
> > On Wed, Apr 3, 2019 at 7:04 AM Rainer Fiebig <email address hidden> wrote:
> >>
> >> Am 03.04.19 um 11:34 schrieb Jan Kara:
> >>> On Tue 02-04-19 16:25:00, Andrew Morton wrote:
> >>>>
> >>>> I cc'ed a bunch of people from bugzilla.
> >>>>
> >>>> Folks, please please please remember to reply via emailed
> >>>> reply-to-all. Don't use the bugzilla interface!
> >>>>
> >>>> On Mon, 16 Jun 2014 18:29:26 +0200 "Rafael J. Wysocki"
> <email address hidden> wrote:
> >>>>
> >>>>> On 6/13/2014 6:55 AM, Johannes Weiner wrote:
> >>>>>> On Fri, Jun 13, 2014 at 01:50:47AM +0200, Rafael J. Wysocki wr...

Read more...

Revision history for this message
In , matheusfillipeag (matheusfillipeag-linux-kernel-bugs) wrote :

Created attachment 282115
boot-sequence

Revision history for this message
In , matheusfillipeag (matheusfillipeag-linux-kernel-bugs) wrote :
Download full text (9.1 KiB)

Created attachment 282117
boot-sequence

Okay I found a way to get it working and there was also a huge mistake
on my last boot-config, the resume was commented :P
I basically followed this: https://askubuntu.com/a/1064114
but changed to:
resume=/dev/disk/by-uuid/70d967e6-ad52-4c21-baf0-01a813ccc6ac (just
the uuid wouldnt work) and this is probably the most important thing
to do.it worked!
I also set the resume variable in initramfs to my swap partition but
this might nor be so important anyway since it's automatically
detected.

I tested both systemctl hibernate and pm-hibernate, i guess they call
the same thing anyway. I attached a screenshot. Seems to be working
fine without uswsusp and with nvidia proprietary drivers!

On Wed, Apr 3, 2019 at 2:55 PM Rainer Fiebig <email address hidden> wrote:
>
> Am 03.04.19 um 18:59 schrieb Matheus Fillipe:
> > Yes I can sorta confirm the bug is in uswsusp. I removed the package
> > and pm-utils
>
> Matheus,
>
> there is no need to uninstall pm-utils. You actually need this to have
> comfortable suspend/hibernate.
>
> The only additional option you will get from uswsusp is true s2both
> (which is nice, imo).
>
> pm-utils provides something similar called "suspend-hybrid" which means
> that the computer suspends and after a configurable time wakes up again
> to go into hibernation.
>
> and used both "systemctl hibernate" and "echo disk >>
> > /sys/power/state" to hibernate. It seems to succeed and shuts down, I
> > am just not able to resume from it, which seems to be a classical
> > problem solved just by setting the resume swap file/partition on grub.
> > (which i tried and didn't work even with nvidia disabled)
> >
> > Anyway uswsusp is still necessary because the default kernel
> > hibernation doesn't work with the proprietary nvidia drivers as long
> > as I know and tested.
>
> What doesn't work: hibernating or resuming?
> And /var/log/pm-suspend.log might give you a clue what causes the problem.
>
> >
> > Is there anyway I could get any workaround to this bug on my current
> > OS by the way?
>
> *I* don't know, I don't use Ubuntu. But what I would do now is
> re-install pm-utils *without* uswsusp and make sure that you have got
> the swap-partition/file right in grub.cfg or menu.lst (grub legacy).
>
> Then do a few pm-hibernate/resume and tell us what happened.
>
> So long!
>
> >
> > On Wed, Apr 3, 2019 at 7:04 AM Rainer Fiebig <email address hidden> wrote:
> >>
> >> Am 03.04.19 um 11:34 schrieb Jan Kara:
> >>> On Tue 02-04-19 16:25:00, Andrew Morton wrote:
> >>>>
> >>>> I cc'ed a bunch of people from bugzilla.
> >>>>
> >>>> Folks, please please please remember to reply via emailed
> >>>> reply-to-all. Don't use the bugzilla interface!
> >>>>
> >>>> On Mon, 16 Jun 2014 18:29:26 +0200 "Rafael J. Wysocki"
> <email address hidden> wrote:
> >>>>
> >>>>> On 6/13/2014 6:55 AM, Johannes Weiner wrote:
> >>>>>> On Fri, Jun 13, 2014 at 01:50:47AM +0200, Rafael J. Wysocki wrote:
> >>>>>>> On 6/13/2014 12:02 AM, Johannes Weiner wrote:
> >>>>>>>> On Tue, May 06, 2014 at 01:45:01AM +0200, Rafael J. Wysocki wrote:
> >>>>>>>>> On 5/6/2014 1:33 AM, Johannes Weiner wrote:
> >>>>>>>>>> Hi Oliver,
> >>>>>>>>>>
> >>>>>>>...

Read more...

Revision history for this message
In , matheusfillipeag (matheusfillipeag-linux-kernel-bugs) wrote :

Created attachment 282119
Screenshot at 2019-04-03 16-42-48.png

Revision history for this message
In , rjw (rjw-linux-kernel-bugs) wrote :
Download full text (6.4 KiB)

On Wednesday, April 3, 2019 11:34:32 AM CEST Jan Kara wrote:
> On Tue 02-04-19 16:25:00, Andrew Morton wrote:
> >
> > I cc'ed a bunch of people from bugzilla.
> >
> > Folks, please please please remember to reply via emailed
> > reply-to-all. Don't use the bugzilla interface!
> >
> > On Mon, 16 Jun 2014 18:29:26 +0200 "Rafael J. Wysocki"
> <email address hidden> wrote:
> >
> > > On 6/13/2014 6:55 AM, Johannes Weiner wrote:
> > > > On Fri, Jun 13, 2014 at 01:50:47AM +0200, Rafael J. Wysocki wrote:
> > > >> On 6/13/2014 12:02 AM, Johannes Weiner wrote:
> > > >>> On Tue, May 06, 2014 at 01:45:01AM +0200, Rafael J. Wysocki wrote:
> > > >>>> On 5/6/2014 1:33 AM, Johannes Weiner wrote:
> > > >>>>> Hi Oliver,
> > > >>>>>
> > > >>>>> On Mon, May 05, 2014 at 11:00:13PM +0200, Oliver Winker wrote:
> > > >>>>>> Hello,
> > > >>>>>>
> > > >>>>>> 1) Attached a full function-trace log + other SysRq outputs, see
> [1]
> > > >>>>>> attached.
> > > >>>>>>
> > > >>>>>> I saw bdi_...() calls in the s2disk paths, but didn't check in
> detail
> > > >>>>>> Probably more efficient when one of you guys looks directly.
> > > >>>>> Thanks, this looks interesting. balance_dirty_pages() wakes up the
> > > >>>>> bdi_wq workqueue as it should:
> > > >>>>>
> > > >>>>> [ 249.148009] s2disk-3327 2.... 48550413us :
> global_dirty_limits <-balance_dirty_pages_ratelimited
> > > >>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> global_dirtyable_memory <-global_dirty_limits
> > > >>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> writeback_in_progress <-balance_dirty_pages_ratelimited
> > > >>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> bdi_start_background_writeback <-balance_dirty_pages_ratelimited
> > > >>>>> [ 249.148009] s2disk-3327 2.... 48550414us :
> mod_delayed_work_on <-balance_dirty_pages_ratelimited
> > > >>>>> but the worker wakeup doesn't actually do anything:
> > > >>>>> [ 249.148009] kworker/-3466 2d... 48550431us :
> finish_task_switch <-__schedule
> > > >>>>> [ 249.148009] kworker/-3466 2.... 48550431us :
> _raw_spin_lock_irq <-worker_thread
> > > >>>>> [ 249.148009] kworker/-3466 2d... 48550431us :
> need_to_create_worker <-worker_thread
> > > >>>>> [ 249.148009] kworker/-3466 2d... 48550432us :
> worker_enter_idle <-worker_thread
> > > >>>>> [ 249.148009] kworker/-3466 2d... 48550432us : too_many_workers
> <-worker_enter_idle
> > > >>>>> [ 249.148009] kworker/-3466 2.... 48550432us : schedule
> <-worker_thread
> > > >>>>> [ 249.148009] kworker/-3466 2.... 48550432us : __schedule
> <-worker_thread
> > > >>>>>
> > > >>>>> My suspicion is that this fails because the bdi_wq is frozen at
> this
> > > >>>>> point and so the flush work never runs until resume, whereas before
> my
> > > >>>>> patch the effective dirty limit was high enough so that image could
> be
> > > >>>>> written in one go without being throttled; followed by an fsync()
> that
> > > >>>>> then writes the pages in the context of the unfrozen s2disk.
> > > >>>>>
> > > >>>>> Does this make sense? Rafael? Tejun?
> > > >>>> Well, it does seem to make sense to me.
> > > >>> From what I see, this is a deadlock in the users...

Read more...

Revision history for this message
In , matheusfillipeag (matheusfillipeag-linux-kernel-bugs) wrote :

> So you got hibernate working now with pm-utils*and* the prop. Nvidia
> drivers. That's good - although a bit contrary to what you said in
> Comment 29:
>
I was told so, long time ago struggling to get nvidia prop to resume
from hibernation, I found out that uswsusp was better for it (googling
or on irc), and it indeed worked better, or with less effort at least,
back  then.  I made that comment thinking this was true but I just
proved myself wrong...

> till puzzles me is that while others are having problems,
> suspend-utils/uswsusp work for me almost 100 % of the time, except for a
> few extreme test-cases in the past. You also said that it worked
> "flawlessly" for yo

Yes! It worked pretty good on version 18.04.1 of ubuntu with kernel
4.15.0-42 and 41 using uswsusp. There was a long problem with nvidia
props that wouldn't let the system resume, but this was fixed when I
upgraded to the latest version of the 415 nvidia driver. I kept like one
month just hibernating to switch to windows and coming back to the
restored snapshot of linux.  You can check my apt history here:
https://launchpadlibrarian.net/415602746/aptHistory.log. At the
Start-Date: 2019-02-02 15:40:45, I'm 100% sure it was perfect. I am 100%
sure that it wasn't already working anymore having the s2disk freeze
issue at Start-Date: 2019-03-05 10:38:4.

uswsusp also worked fine on ubuntu 16.04, but I dont remember the kernel
versions. Now I'm currently with the nvidia 418.56, ubuntu 18.04.2,
kernel 4.18.0-17-generic and hibernation with pm-utils works. I haven't
found any major problem with it besides failing to suspend to ram
yesterday, which  I don't know if is related to it or not, but today I
tested it after and before hibernation and seems to be ok.

> So I'm wondering whether used-up swap space might play a role in this
> matter, too. At least for the cases that I've seen on my system, I can't
> rule this out. And when I look at the screenshot you provided in Comment
> 27 (https://launchpadlibrarian.net/417327528/i915.jpg), sparse
> swap-space could have been a factor in that case as well. Because
> roughly 3.5 GB free swap-space doesn't seem much for a 16-GB-RAM box.

On my many tests with uswsusp and a 16gb swap partition and 16 gb of
ram, I noticed that it would be less likely to fail when less than
something about 2 gb of ram, like just after boot up, it would though
after the 3rd or 4th followed hibernation cycle. If after the boot up I
allocate more than that value if would be much more likely to happen
like always on the 2nd attempt, and if more than around 6gb would fail
on the first attempt.

Those aren't sure values, sometimes it failed regardless of ram usage,
specially on my latest tests. also once it hibernated with more than
11gb ram usage and failed on the second attempt. So this is all
happening pretty randomly. What I described above is just most of the
cases and maybe this is just random anyway.

Brad Figg (brad-figg)
tags: added: cscc
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.