Skip to contentSkip to conversation

SUNRPC: Declare RPC timers as TIMER_DEFERRABLE (431235818bc3)

REGRESSION v5.2-rc Jon Hunter 3 participants 6 messages Jun 5, 2019 – Jun 19, 2019

Subsystems (3)
lore
Share & tools
lore

Jon Hunter

author maintainer
#0 lore raw

Hi Trond,

I have been noticing intermittent failures with a system suspend test on some of our machines that have a NFS mounted root file-system. Bisecting this issue points to your commit 431235818bc3 ("SUNRPC: Declare RPC timers as TIMER_DEFERRABLE") and reverting this on top of v5.2-rc3 does appear to resolve the problem.

The cause of the suspend failure appears to be a long delay observed sometimes when resuming from suspend, and this is causing our test to timeout. For example, in a failing case I see something like the following ...

[   69.667385] PM: suspend entry (deep)
[   69.675642] Filesystems sync: 0.000 seconds
[   69.684983] Freezing user space processes ... (elapsed 0.001 seconds) done.
[   69.697880] OOM killer disabled.
[   69.705670] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[   69.719043] printk: Suspending console(s) (use no_console_suspend to debug)
[   69.758911] Disabling non-boot CPUs ...
[   69.761875] IRQ 17: no longer affine to CPU3
[   69.762609] Entering suspend state LP1
[   69.762636] Enabling non-boot CPUs ...
[   69.763600] CPU1 is up
[   69.764517] CPU2 is up
[   69.765532] CPU3 is up
[   69.845832] mmc1: queuing unknown CIS tuple 0x80 (50 bytes)
[   69.854223] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[   69.857238] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[   69.892700] mmc1: queuing unknown CIS tuple 0x02 (1 bytes)
[   70.407286] OOM killer enabled.
[   70.414674] Restarting tasks ... done.
[   70.423232] PM: suspend exit
[   73.533252] asix 1-1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[  105.461852] nfs: server 192.168.99.1 not responding, still trying
[  105.462347] nfs: server 192.168.99.1 not responding, still trying
[  105.484809] nfs: server 192.168.99.1 OK
[  105.486454] nfs: server 192.168.99.1 OK

So it would appear that making these timers deferrable is having an impact when resuming from suspend. Do you have any thoughts on this?

Thanks
Jon

#1 lore raw
Quoted 66 lines · Jon Hunter

Hi Trond,

I have been noticing intermittent failures with a system suspend test on
some of our machines that have a NFS mounted root file-system. Bisecting
this issue points to your commit 431235818bc3 ("SUNRPC: Declare RPC timers as TIMER_DEFERRABLE") and reverting this on top of v5.2-rc3 does
appear to resolve the problem.

The cause of the suspend failure appears to be a long delay observed sometimes when resuming from suspend, and this is causing our test to timeout. For example, in a failing case I see something like the following ...

[   69.667385] PM: suspend entry (deep)
[   69.675642] Filesystems sync: 0.000 seconds
[   69.684983] Freezing user space processes ... (elapsed 0.001

seconds) done.

[   69.697880] OOM killer disabled.
[   69.705670] Freezing remaining freezable tasks ... (elapsed 0.001

seconds) done.

[   69.719043] printk: Suspending console(s) (use no_console_suspend

to debug)

[   69.758911] Disabling non-boot CPUs ...
[   69.761875] IRQ 17: no longer affine to CPU3
[   69.762609] Entering suspend state LP1
[   69.762636] Enabling non-boot CPUs ...
[   69.763600] CPU1 is up
[   69.764517] CPU2 is up
[   69.765532] CPU3 is up
[   69.845832] mmc1: queuing unknown CIS tuple 0x80 (50 bytes)
[   69.854223] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[   69.857238] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[   69.892700] mmc1: queuing unknown CIS tuple 0x02 (1 bytes)
[   70.407286] OOM killer enabled.
[   70.414674] Restarting tasks ... done.
[   70.423232] PM: suspend exit
[   73.533252] asix 1-1:1.0 eth0: link up, 100Mbps, full-duplex, lpa

0xCDE1

[  105.461852] nfs: server 192.168.99.1 not responding, still trying
[  105.462347] nfs: server 192.168.99.1 not responding, still trying
Quoted 9 lines
[  105.484809] nfs: server 192.168.99.1 OK
[  105.486454] nfs: server 192.168.99.1 OK

So it would appear that making these timers deferrable is having an impact
when resuming from suspend. Do you have any thoughts on this?

I'd be OK with just reverting this patch if it is causing a performance issue.

Anna?

Signature · 3 lines
Trond Myklebust
Linux NFS client maintainer, Hammerspace
[email protected]
author maintainer
#2 lore raw

On 05/06/2019 23:01, Trond Myklebust wrote:

...

Quoted 4 lines

I'd be OK with just reverting this patch if it is causing a performance issue.

Anna?

Any update on this?

Thanks
Jon

Signature · 1 line
nvpublic
author maintainer
#3 lore raw

Trond, Anna,

Quoted 11 lines · Jon Hunter

On 05/06/2019 23:01, Trond Myklebust wrote:

...

Quoted 4 lines

I'd be OK with just reverting this patch if it is causing a performance issue.

Anna?

Any update on this?

I have not seen any update on this. Do you plan to revert this?

We are getting ever closer to v5.2 and this problem still persists.

Thanks
Jon

Signature · 1 line
nvpublic
#4 lore raw
Quoted 11 lines · Jon Hunter

Trond, Anna,

Quoted 8 lines · Jon Hunter

On 05/06/2019 23:01, Trond Myklebust wrote:

...

Quoted 4 lines

I'd be OK with just reverting this patch if it is causing a performance
issue.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Anna?

Any update on this?

I have not seen any update on this. Do you plan to revert this?

We are getting ever closer to v5.2 and this problem still persists.

Hi Jon,

Sorry it took me so long to see this. I've applied the revert and pushed it out to my linux-next branch. I'm planning to send it with some other bugfixes this week.

Anna

Quoted 4 lines

Thanks
Jon

author maintainer
#5 lore raw
Quoted 19 lines · Anna Schumaker
Quoted 17 lines · Jon Hunter

Trond, Anna,

Quoted 11 lines · Jon Hunter

On 05/06/2019 23:01, Trond Myklebust wrote:

...

Quoted 5 lines

I'd be OK with just reverting this patch if it is causing a performance
issue.

Anna?

Any update on this?

I have not seen any update on this. Do you plan to revert this?

Quoted 7 lines
Quoted 1 line

We are getting ever closer to v5.2 and this problem still persists.

Hi Jon,

Sorry it took me so long to see this. I've applied the revert and pushed it out to my linux-next branch. I'm planning to send it with some other bugfixes this week.

Thanks Anna!

Jon

Signature · 1 line
nvpublic