FW: [linux-pm] select with timeout across S3

Previous thread: PATCH: Kbuild: mkspec has to include /lib/firmware contents by Luiz Fernando N. Capitulino on Thursday, August 28, 2008 - 1:07 pm. (2 messages)

Next thread: [PATCHSET] FUSE: extend FUSE to support more operations by Tejun Heo on Thursday, August 28, 2008 - 1:40 pm. (81 messages)
To: <linux-kernel@...>
Cc: <linux-pm@...>
Date: Thursday, August 28, 2008 - 1:32 pm

The behavior of linux (in both 2.4.x and 2.6.x) is when the processor
sleeps, timeouts on select don't take into account the sleep time,
only the run time.

For example, this program should pause for 10 minutes -- however
if we go into S3 in the middle its pausing for (10 minutes + time in
S3)

I saw this on both 2.6.20 and 2.6.22...

marty

-----Original Message-----
From: linux-pm-bounces@lists.linux-foundation.org
[mailto:linux-pm-bounces@lists.linux-foundation.org] On Behalf Of Pavel
Machek
Sent: Thursday, August 28, 2008 10:30 AM
To: Leisner, Martin
Cc: linux-pm@lists.linux-foundation.org
Subject: Re: [linux-pm] select with timeout across S3

That sounds like a bug. Can you write small demo program and post it
to lkml?

--=20
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures)
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
_______________________________________________
linux-pm mailing list
linux-pm@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

To: Leisner, Martin <Martin.Leisner@...>
Cc: <linux-kernel@...>, <linux-pm@...>
Date: Monday, September 1, 2008 - 2:25 am

Can you test this on 2.6.27-rc? We did have some fixes in that
area....

Pavel

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--

To: Leisner, Martin <Martin.Leisner@...>, <linux-kernel@...>
Cc: <linux-pm@...>
Date: Thursday, August 28, 2008 - 4:57 pm

Hi,

dito.

This also happened to me a couple (4?) months ago, likely on 2.6.24 or
2.6.25.
And for me it had the "very nice" effect of not obeying DHCP lease time,
with a red-faced IT guy appearing in my door the next morning thusly... ;)

From examining it more closely, it was rather obvious that select timeout
happened maybe 10 hours later than it should have (with 12h lease time),
due to hitting nightly S2R about two hours into the lease time.
Annoying, to say the least.

I think I then privately asked some timer guy about it, but I didn't get
a reply.

The DHCP client to hit this was pump, IIRC (can re-check).

Andreas Mohr
--

Previous thread: PATCH: Kbuild: mkspec has to include /lib/firmware contents by Luiz Fernando N. Capitulino on Thursday, August 28, 2008 - 1:07 pm. (2 messages)

Next thread: [PATCHSET] FUSE: extend FUSE to support more operations by Tejun Heo on Thursday, August 28, 2008 - 1:40 pm. (81 messages)