Timer slack for slacker developers
Timer slack for slacker developers
Posted Oct 18, 2011 17:49 UTC (Tue) by dlang (guest, #313)In reply to: Timer slack for slacker developers by dgm
Parent article: Timer slack for slacker developers
in all cases you can cause an application being limited to behave in ways different from what the application programmer expected.
Posted Oct 18, 2011 21:40 UTC (Tue)
by cmccabe (guest, #60281)
[Link] (5 responses)
nice and ulimit are also things specified by POSIX and implemented by many other operating systems. Like Linus said, Linux-specific interfaces tend not to get very much use, even when they're much better than the standard interfaces they're replacing. In this case, you're talking about adding a platform specific interface that is not better than what it's replacing, just different. It's also an interface that application developers have no easy way to opt-out of. IMHO, not a win at all.
Posted Oct 18, 2011 22:23 UTC (Tue)
by dgm (subscriber, #49227)
[Link] (2 responses)
Posted Oct 18, 2011 22:37 UTC (Tue)
by dlang (guest, #313)
[Link] (1 responses)
normally this further amount is relatively short, but if the system is under high load it could be a significant amount of time (if the system is swapping badly, it could be seconds after the timer is scheduled to fire before the application executes)
this is just changing things to that some other suitably privileged task in the system can increase the maximum lag that the application sees.
it's not something that can't happen today.
Posted Oct 19, 2011 13:39 UTC (Wed)
by dgm (subscriber, #49227)
[Link]
Posted Oct 18, 2011 22:33 UTC (Tue)
by dlang (guest, #313)
[Link] (1 responses)
as I see it there is no knob that you (as an administrator) can twist for this today.
there's also no knob that you as a application programmer can twist that will change the slack for you and your running children, instead you would have to have each child invoke the change independently.
Posted Oct 19, 2011 2:08 UTC (Wed)
by cmccabe (guest, #60281)
[Link]
The one use case that is intriguing is synchronizing application timers so that a lot of them fire at once, in order to save on wakeups. I honestly can't think of any good way to do this with the existing timeout APIs-- maybe someone else can.
All these comments about "slack" are making me think of this guy:
Timer slack for slacker developers
Timer slack for slacker developers
Timer slack for slacker developers
Timer slack for slacker developers
Timer slack for slacker developers
Timer slack for slacker developers
http://en.wikipedia.org/wiki/File:Bobdobbs.png