2014-01-02 11:33:20

by Daniel Lezcano

[permalink] [raw]
Subject: very slow IO after resume


Hi All,

I noticed an issue on the IOs after resuming my laptop.

My mailer thunderbird or the compilations are very slow, often blocked
in 'D' state. The 'top' shows 81% on wait.

The processes stack are always in when blocked:

[<c164f8ab>] balance_dirty_pages.isra.18+0x3f5/0x4b4
[<c112a2ce>] balance_dirty_pages_ratelimited+0xde/0x100
[<c1120d81>] generic_perform_write+0x141/0x1c0
[<c1120e50>] generic_file_buffered_write+0x50/0x80
[<c1122a4a>] __generic_file_aio_write+0x22a/0x490
[<c1122d13>] generic_file_aio_write+0x63/0xd0
[<c11f5162>] ext4_file_write+0xb2/0x100
[<c117318a>] do_sync_write+0x6a/0xa0
[<c1173dc5>] vfs_write+0xa5/0x1d0
[<c1174277>] SyS_write+0x57/0xa0
[<c1661b37>] syscall_call+0x7/0xb

The kernel is 3.11.0-031100-generic based on ubuntu, I noticed this
issue on some previous version (since 3.5 AFAIR).
My laptop is a Lenovo X230, SSD 250GB (6Gb/s) and 16GB of RAM.

Is it a known issue ?

Thanks
-- Daniel

--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog


2014-01-02 11:56:20

by Ming Lei

[permalink] [raw]
Subject: Re: very slow IO after resume

On Thu, Jan 2, 2014 at 7:33 PM, Daniel Lezcano
<[email protected]> wrote:
>
> Hi All,
>
> I noticed an issue on the IOs after resuming my laptop.
>
> My mailer thunderbird or the compilations are very slow, often blocked in
> 'D' state. The 'top' shows 81% on wait.
>
> The processes stack are always in when blocked:
>
> [<c164f8ab>] balance_dirty_pages.isra.18+0x3f5/0x4b4
> [<c112a2ce>] balance_dirty_pages_ratelimited+0xde/0x100
> [<c1120d81>] generic_perform_write+0x141/0x1c0
> [<c1120e50>] generic_file_buffered_write+0x50/0x80
> [<c1122a4a>] __generic_file_aio_write+0x22a/0x490
> [<c1122d13>] generic_file_aio_write+0x63/0xd0
> [<c11f5162>] ext4_file_write+0xb2/0x100
> [<c117318a>] do_sync_write+0x6a/0xa0
> [<c1173dc5>] vfs_write+0xa5/0x1d0
> [<c1174277>] SyS_write+0x57/0xa0
> [<c1661b37>] syscall_call+0x7/0xb
>
> The kernel is 3.11.0-031100-generic based on ubuntu, I noticed this issue on
> some previous version (since 3.5 AFAIR).
> My laptop is a Lenovo X230, SSD 250GB (6Gb/s) and 16GB of RAM.
>
> Is it a known issue ?

We met write regressions before, see

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1242812

But it wasn't related with system sleep, and you may check if the
patches land in your kernel.

Thanks,
--
Ming Lei