* Re: [RFC/RFT patch 0/7] timekeeping: Unify clock MONOTONIC and clock BOOTTIME
[not found] ` <alpine.DEB.2.21.1804241007410.5261@nanos.tec.linutronix.de>
@ 2018-04-25 8:52 ` Rafael J. Wysocki
2018-04-25 9:49 ` Rafael J. Wysocki
0 siblings, 1 reply; 8+ messages in thread
From: Rafael J. Wysocki @ 2018-04-25 8:52 UTC (permalink / raw)
To: Thomas Gleixner, John Stultz
Cc: Genki Sky, David Herrmann, lkml, Sergey Senozhatsky,
Linus Torvalds, Peter Zijlstra, Pavel Machek, linux-pm
On Tuesday, April 24, 2018 10:09:28 AM CEST Thomas Gleixner wrote:
> On Mon, 23 Apr 2018, John Stultz wrote:
>
> > On Mon, Apr 23, 2018 at 7:45 PM, Genki Sky <sky@genki.is> wrote:
> > > Quoting Genki Sky (2018/04/23 20:40:36 -0400)
> > >> I came across this thread for same reason as [0]: Daemons getting
> > >> killed by systemd on resume (after >WatchdogSec seconds of
> > >> suspending). I'm using master branch of systemd and the kernel. As
> > >> mentioned, systemd uses CLOCK_MONOTONIC, originally expecting it to
> > >> not include suspend time.
> > >>
> > >> Correct me if I'm mistaken, but I don't see the ambiguity of whether
> > >> this patch series breaks systemd. If it's implemented correctly, you'd
> > >> hope it *would* break it!
> > >
> > > This sounded a little weak on re-reading, sorry. So, I just confirmed
> > > that after booting a "git revert -m 1 680014d6d1da", the issue no
> > > longer appears. (I.e., a suspend for >WatchDog sec doesn't result in
> > > any daemon getting killed).
> > >
> > > Let me know if I can help in any way.
> >
> > Yea, this is the sort of thing I was worried about.
> >
> > Thomas: I think reverting this change is needed.
>
> Sigh. I hoped that something like this would be catched before I sent the
> pull request by those who were actually interested in this change...
The "git revert -m 1 680014d6d1da" makes resume issues on my Aspire S5
go away (cf. https://marc.info/?l=linux-kernel&m=152460804018920&w=2).
I'll try with just the "monotonic" vs "boottime" clock changes reverted.
> I'll try to distangle it.
Cool.
Please let me know if you need any help.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC/RFT patch 0/7] timekeeping: Unify clock MONOTONIC and clock BOOTTIME
2018-04-25 8:52 ` [RFC/RFT patch 0/7] timekeeping: Unify clock MONOTONIC and clock BOOTTIME Rafael J. Wysocki
@ 2018-04-25 9:49 ` Rafael J. Wysocki
2018-04-25 13:03 ` Thomas Gleixner
0 siblings, 1 reply; 8+ messages in thread
From: Rafael J. Wysocki @ 2018-04-25 9:49 UTC (permalink / raw)
To: Thomas Gleixner, John Stultz
Cc: Genki Sky, David Herrmann, lkml, Sergey Senozhatsky,
Linus Torvalds, Peter Zijlstra, Pavel Machek, linux-pm
On Wednesday, April 25, 2018 10:52:18 AM CEST Rafael J. Wysocki wrote:
> On Tuesday, April 24, 2018 10:09:28 AM CEST Thomas Gleixner wrote:
> > On Mon, 23 Apr 2018, John Stultz wrote:
> >
> > > On Mon, Apr 23, 2018 at 7:45 PM, Genki Sky <sky@genki.is> wrote:
> > > > Quoting Genki Sky (2018/04/23 20:40:36 -0400)
> > > >> I came across this thread for same reason as [0]: Daemons getting
> > > >> killed by systemd on resume (after >WatchdogSec seconds of
> > > >> suspending). I'm using master branch of systemd and the kernel. As
> > > >> mentioned, systemd uses CLOCK_MONOTONIC, originally expecting it to
> > > >> not include suspend time.
> > > >>
> > > >> Correct me if I'm mistaken, but I don't see the ambiguity of whether
> > > >> this patch series breaks systemd. If it's implemented correctly, you'd
> > > >> hope it *would* break it!
> > > >
> > > > This sounded a little weak on re-reading, sorry. So, I just confirmed
> > > > that after booting a "git revert -m 1 680014d6d1da", the issue no
> > > > longer appears. (I.e., a suspend for >WatchDog sec doesn't result in
> > > > any daemon getting killed).
> > > >
> > > > Let me know if I can help in any way.
> > >
> > > Yea, this is the sort of thing I was worried about.
> > >
> > > Thomas: I think reverting this change is needed.
> >
> > Sigh. I hoped that something like this would be catched before I sent the
> > pull request by those who were actually interested in this change...
>
> The "git revert -m 1 680014d6d1da" makes resume issues on my Aspire S5
> go away (cf. https://marc.info/?l=linux-kernel&m=152460804018920&w=2).
>
> I'll try with just the "monotonic" vs "boottime" clock changes reverted.
FWICS (so far) system resume still works here with the commits between
d6ed449afdb3 (timekeeping: Make the MONOTONIC clock behave like the BOOTTIME
clock) and 127bfa5f4342 (hrtimer: Unify MONOTONIC and BOOTTIME clock behavior)
inclusive reverted on top of 4.17-rc2. [I probably should revert commit
92af4dcb4e1c (tracing: Unify the "boot" and "mono" tracing clocks) too, but
it doesn't revert cleanly and it doesn't apprear to affect things here too.]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC/RFT patch 0/7] timekeeping: Unify clock MONOTONIC and clock BOOTTIME
2018-04-25 9:49 ` Rafael J. Wysocki
@ 2018-04-25 13:03 ` Thomas Gleixner
2018-04-26 7:03 ` Mike Galbraith
0 siblings, 1 reply; 8+ messages in thread
From: Thomas Gleixner @ 2018-04-25 13:03 UTC (permalink / raw)
To: Rafael J. Wysocki
Cc: John Stultz, Genki Sky, David Herrmann, lkml, Sergey Senozhatsky,
Linus Torvalds, Peter Zijlstra, Pavel Machek, linux-pm
On Wed, 25 Apr 2018, Rafael J. Wysocki wrote:
> On Wednesday, April 25, 2018 10:52:18 AM CEST Rafael J. Wysocki wrote:
> > On Tuesday, April 24, 2018 10:09:28 AM CEST Thomas Gleixner wrote:
> > > On Mon, 23 Apr 2018, John Stultz wrote:
> > >
> > > > On Mon, Apr 23, 2018 at 7:45 PM, Genki Sky <sky@genki.is> wrote:
> > > > > Quoting Genki Sky (2018/04/23 20:40:36 -0400)
> > > > >> I came across this thread for same reason as [0]: Daemons getting
> > > > >> killed by systemd on resume (after >WatchdogSec seconds of
> > > > >> suspending). I'm using master branch of systemd and the kernel. As
> > > > >> mentioned, systemd uses CLOCK_MONOTONIC, originally expecting it to
> > > > >> not include suspend time.
> > > > >>
> > > > >> Correct me if I'm mistaken, but I don't see the ambiguity of whether
> > > > >> this patch series breaks systemd. If it's implemented correctly, you'd
> > > > >> hope it *would* break it!
> > > > >
> > > > > This sounded a little weak on re-reading, sorry. So, I just confirmed
> > > > > that after booting a "git revert -m 1 680014d6d1da", the issue no
> > > > > longer appears. (I.e., a suspend for >WatchDog sec doesn't result in
> > > > > any daemon getting killed).
> > > > >
> > > > > Let me know if I can help in any way.
> > > >
> > > > Yea, this is the sort of thing I was worried about.
> > > >
> > > > Thomas: I think reverting this change is needed.
> > >
> > > Sigh. I hoped that something like this would be catched before I sent the
> > > pull request by those who were actually interested in this change...
> >
> > The "git revert -m 1 680014d6d1da" makes resume issues on my Aspire S5
> > go away (cf. https://marc.info/?l=linux-kernel&m=152460804018920&w=2).
> >
> > I'll try with just the "monotonic" vs "boottime" clock changes reverted.
>
> FWICS (so far) system resume still works here with the commits between
> d6ed449afdb3 (timekeeping: Make the MONOTONIC clock behave like the BOOTTIME
> clock) and 127bfa5f4342 (hrtimer: Unify MONOTONIC and BOOTTIME clock behavior)
> inclusive reverted on top of 4.17-rc2. [I probably should revert commit
> 92af4dcb4e1c (tracing: Unify the "boot" and "mono" tracing clocks) too, but
> it doesn't revert cleanly and it doesn't apprear to affect things here too.]
Right, it does not matter. The real interesting one is d6ed449afdb3.
Thanks,
tglx
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC/RFT patch 0/7] timekeeping: Unify clock MONOTONIC and clock BOOTTIME
2018-04-25 13:03 ` Thomas Gleixner
@ 2018-04-26 7:03 ` Mike Galbraith
2018-04-26 7:42 ` Thomas Gleixner
0 siblings, 1 reply; 8+ messages in thread
From: Mike Galbraith @ 2018-04-26 7:03 UTC (permalink / raw)
To: Thomas Gleixner, Rafael J. Wysocki
Cc: John Stultz, Genki Sky, David Herrmann, lkml, Sergey Senozhatsky,
Linus Torvalds, Peter Zijlstra, Pavel Machek, linux-pm
On Wed, 2018-04-25 at 15:03 +0200, Thomas Gleixner wrote:
> Right, it does not matter. The real interesting one is d6ed449afdb3.
FWIW, three boxen here suspend/resume fine, but repeatably exhibit the
below after a very few minute suspend, and a short bisect fingered your
suspect. Distro is opensuse 42.3.
[ 211.113902] Restarting tasks ... done.
[ 211.114817] PM: suspend exit
[ 212.312993] systemd-journald[7266]: File /var/log/journal/016627c3c4784cd4812d4b7e96a34226/system.journal corrupted or uncleanly shut down, renaming and replacing.
[ 212.313363] systemd-coredump[7264]: Detected coredump of the journal daemon itself, diverted to /var/lib/systemd/coredump/core.systemd-journal.0.0aa39276decf4f1ab6fda3464e31f9dd.582.1524720954000000.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC/RFT patch 0/7] timekeeping: Unify clock MONOTONIC and clock BOOTTIME
2018-04-26 7:03 ` Mike Galbraith
@ 2018-04-26 7:42 ` Thomas Gleixner
2018-04-26 8:36 ` Rafael J. Wysocki
0 siblings, 1 reply; 8+ messages in thread
From: Thomas Gleixner @ 2018-04-26 7:42 UTC (permalink / raw)
To: Mike Galbraith
Cc: Rafael J. Wysocki, John Stultz, Genki Sky, David Herrmann, lkml,
Sergey Senozhatsky, Linus Torvalds, Peter Zijlstra, Pavel Machek,
linux-pm
On Thu, 26 Apr 2018, Mike Galbraith wrote:
> On Wed, 2018-04-25 at 15:03 +0200, Thomas Gleixner wrote:
> > Right, it does not matter. The real interesting one is d6ed449afdb3.
>
> FWIW, three boxen here suspend/resume fine, but repeatably exhibit the
> below after a very few minute suspend, and a short bisect fingered your
> suspect. Distro is opensuse 42.3.
>
> [ 211.113902] Restarting tasks ... done.
> [ 211.114817] PM: suspend exit
> [ 212.312993] systemd-journald[7266]: File /var/log/journal/016627c3c4784cd4812d4b7e96a34226/system.journal corrupted or uncleanly shut down, renaming and replacing.
> [ 212.313363] systemd-coredump[7264]: Detected coredump of the journal daemon itself, diverted to /var/lib/systemd/coredump/core.systemd-journal.0.0aa39276decf4f1ab6fda3464e31f9dd.582.1524720954000000.
>
Huch, that rather looks like a genuine application bug.
Thanks,
tglx
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC/RFT patch 0/7] timekeeping: Unify clock MONOTONIC and clock BOOTTIME
2018-04-26 7:42 ` Thomas Gleixner
@ 2018-04-26 8:36 ` Rafael J. Wysocki
2018-04-26 8:51 ` Thomas Gleixner
0 siblings, 1 reply; 8+ messages in thread
From: Rafael J. Wysocki @ 2018-04-26 8:36 UTC (permalink / raw)
To: Thomas Gleixner
Cc: Mike Galbraith, Rafael J. Wysocki, John Stultz, Genki Sky,
David Herrmann, lkml, Sergey Senozhatsky, Linus Torvalds,
Peter Zijlstra, Pavel Machek, Linux PM
On Thu, Apr 26, 2018 at 9:42 AM, Thomas Gleixner <tglx@linutronix.de> wrote:
> On Thu, 26 Apr 2018, Mike Galbraith wrote:
>> On Wed, 2018-04-25 at 15:03 +0200, Thomas Gleixner wrote:
>> > Right, it does not matter. The real interesting one is d6ed449afdb3.
>>
>> FWIW, three boxen here suspend/resume fine, but repeatably exhibit the
>> below after a very few minute suspend, and a short bisect fingered your
>> suspect. Distro is opensuse 42.3.
>>
>> [ 211.113902] Restarting tasks ... done.
>> [ 211.114817] PM: suspend exit
>> [ 212.312993] systemd-journald[7266]: File /var/log/journal/016627c3c4784cd4812d4b7e96a34226/system.journal corrupted or uncleanly shut down, renaming and replacing.
>> [ 212.313363] systemd-coredump[7264]: Detected coredump of the journal daemon itself, diverted to /var/lib/systemd/coredump/core.systemd-journal.0.0aa39276decf4f1ab6fda3464e31f9dd.582.1524720954000000.
>>
>
> Huch, that rather looks like a genuine application bug.
Well, say you set a timer to wake you up in X seconds. When you wake
up, you look at a clock and see that Y seconds have passed and Y is
much greater than X. I guess you'd think that something's wrong. :-)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC/RFT patch 0/7] timekeeping: Unify clock MONOTONIC and clock BOOTTIME
2018-04-26 8:36 ` Rafael J. Wysocki
@ 2018-04-26 8:51 ` Thomas Gleixner
2018-04-26 9:03 ` Rafael J. Wysocki
0 siblings, 1 reply; 8+ messages in thread
From: Thomas Gleixner @ 2018-04-26 8:51 UTC (permalink / raw)
To: Rafael J. Wysocki
Cc: Mike Galbraith, Rafael J. Wysocki, John Stultz, Genki Sky,
David Herrmann, lkml, Sergey Senozhatsky, Linus Torvalds,
Peter Zijlstra, Pavel Machek, Linux PM
On Thu, 26 Apr 2018, Rafael J. Wysocki wrote:
> On Thu, Apr 26, 2018 at 9:42 AM, Thomas Gleixner <tglx@linutronix.de> wrote:
> > On Thu, 26 Apr 2018, Mike Galbraith wrote:
> >> On Wed, 2018-04-25 at 15:03 +0200, Thomas Gleixner wrote:
> >> > Right, it does not matter. The real interesting one is d6ed449afdb3.
> >>
> >> FWIW, three boxen here suspend/resume fine, but repeatably exhibit the
> >> below after a very few minute suspend, and a short bisect fingered your
> >> suspect. Distro is opensuse 42.3.
> >>
> >> [ 211.113902] Restarting tasks ... done.
> >> [ 211.114817] PM: suspend exit
> >> [ 212.312993] systemd-journald[7266]: File /var/log/journal/016627c3c4784cd4812d4b7e96a34226/system.journal corrupted or uncleanly shut down, renaming and replacing.
> >> [ 212.313363] systemd-coredump[7264]: Detected coredump of the journal daemon itself, diverted to /var/lib/systemd/coredump/core.systemd-journal.0.0aa39276decf4f1ab6fda3464e31f9dd.582.1524720954000000.
> >>
> >
> > Huch, that rather looks like a genuine application bug.
>
> Well, say you set a timer to wake you up in X seconds. When you wake
> up, you look at a clock and see that Y seconds have passed and Y is
> much greater than X. I guess you'd think that something's wrong. :-)
And that makes you coredump, right? Brilliant choice.
Thanks,
tglx
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFC/RFT patch 0/7] timekeeping: Unify clock MONOTONIC and clock BOOTTIME
2018-04-26 8:51 ` Thomas Gleixner
@ 2018-04-26 9:03 ` Rafael J. Wysocki
0 siblings, 0 replies; 8+ messages in thread
From: Rafael J. Wysocki @ 2018-04-26 9:03 UTC (permalink / raw)
To: Thomas Gleixner
Cc: Rafael J. Wysocki, Mike Galbraith, Rafael J. Wysocki, John Stultz,
Genki Sky, David Herrmann, lkml, Sergey Senozhatsky,
Linus Torvalds, Peter Zijlstra, Pavel Machek, Linux PM
On Thu, Apr 26, 2018 at 10:51 AM, Thomas Gleixner <tglx@linutronix.de> wrote:
> On Thu, 26 Apr 2018, Rafael J. Wysocki wrote:
>
>> On Thu, Apr 26, 2018 at 9:42 AM, Thomas Gleixner <tglx@linutronix.de> wrote:
>> > On Thu, 26 Apr 2018, Mike Galbraith wrote:
>> >> On Wed, 2018-04-25 at 15:03 +0200, Thomas Gleixner wrote:
>> >> > Right, it does not matter. The real interesting one is d6ed449afdb3.
>> >>
>> >> FWIW, three boxen here suspend/resume fine, but repeatably exhibit the
>> >> below after a very few minute suspend, and a short bisect fingered your
>> >> suspect. Distro is opensuse 42.3.
>> >>
>> >> [ 211.113902] Restarting tasks ... done.
>> >> [ 211.114817] PM: suspend exit
>> >> [ 212.312993] systemd-journald[7266]: File /var/log/journal/016627c3c4784cd4812d4b7e96a34226/system.journal corrupted or uncleanly shut down, renaming and replacing.
>> >> [ 212.313363] systemd-coredump[7264]: Detected coredump of the journal daemon itself, diverted to /var/lib/systemd/coredump/core.systemd-journal.0.0aa39276decf4f1ab6fda3464e31f9dd.582.1524720954000000.
>> >>
>> >
>> > Huch, that rather looks like a genuine application bug.
>>
>> Well, say you set a timer to wake you up in X seconds. When you wake
>> up, you look at a clock and see that Y seconds have passed and Y is
>> much greater than X. I guess you'd think that something's wrong. :-)
>
> And that makes you coredump, right? Brilliant choice.
That wouldn't be my choice, but some people do make choices like that
even in their personal lives ...
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2018-04-26 9:03 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CANq1E4QppGAaU5PYbGpuC00S6wGQcAt70Z7CntZHiLC6748z2A@mail.gmail.com>
[not found] ` <CALAqxLWmcmiOgbH1Ri+Ki-OGFvgzRzRDzX3FZdUhcqu1OoCWiA@mail.gmail.com>
[not found] ` <alpine.DEB.2.21.1804241007410.5261@nanos.tec.linutronix.de>
2018-04-25 8:52 ` [RFC/RFT patch 0/7] timekeeping: Unify clock MONOTONIC and clock BOOTTIME Rafael J. Wysocki
2018-04-25 9:49 ` Rafael J. Wysocki
2018-04-25 13:03 ` Thomas Gleixner
2018-04-26 7:03 ` Mike Galbraith
2018-04-26 7:42 ` Thomas Gleixner
2018-04-26 8:36 ` Rafael J. Wysocki
2018-04-26 8:51 ` Thomas Gleixner
2018-04-26 9:03 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox