Live data from Hacker News

Critical Linux bug that leads 100% CPU (leap second)

blog.wpkg.org

21–30 of 45 posts

Re: Critical Linux bug that leads 100% CPU (leap second)

#21

Hard to call this a Java bug when many other, non-Java things are affected. It's a critical Linux bug that causes futex to timeout, and anything that uses it to behave incorrectly. https://lkml.org/lkml/2012/7/1/11

ecopoesis, you are not the only one saying that it's a linux bug instead of a java bug even though the link title says "Critical Linux bug that leads 100% CPU (leap second)".

Did the link title change from a Java title, like the article, to a Linux title to match the actual root cause?

Re: Critical Linux bug that leads 100% CPU (leap second)

#23
post #21

Hard to call this a Java bug when many other, non-Java things are affected. It's a critical Linux bug that causes futex to timeout, and anything that uses it to behave incorrectly. https://lkml.org/lkml/2012/7/1/11

ecopoesis, you are not the only one saying that it's a linux bug instead of a java bug even though the link title says "Critical Linux bug that leads 100% CPU (leap second)". Did the link title change from a Java title, like the article, to a Linux title to match the actual root cause?

> Did the link title change from a Java title, like the article, to a Linux title to match the actual root cause?

Yes, it did.

Re: Critical Linux bug that leads 100% CPU (leap second)

#25
post #20

Earlier quoted context omitted.

If you come up with a way of predicting when leap seconds will be needed (hint: it's not a constant regular time interval), let us all know. Until then, there will need to be adjustments.

Leap seconds aren't needed at all. I'd rather let them accumulate until there's a leap hour that can be rolled into DST (although DST may not exist that far in the future).

DST doesn't exist in UTC, so that's irrelevant. A one-hour UTC shift would totally, utterly, screw stuff up. But, at the current rate, a one-hour "leap" would happen in thousands of years, so maybe it's not such a bad idea after all. But I think the reason for leap seconds has to do with keeping UTC in sync with other clock systems, and that probably overrides any inconvenience to software.

Re: Critical Linux bug that leads 100% CPU (leap second)

#27
post #20

Earlier quoted context omitted.

Leap seconds aren't needed at all. I'd rather let them accumulate until there's a leap hour that can be rolled into DST (although DST may not exist that far in the future).

DST doesn't exist in UTC, so that's irrelevant. A one-hour UTC shift would totally, utterly, screw stuff up. But, at the current rate, a one-hour "leap" would happen in thousands of years, so maybe it's not such a bad idea after all. But I think the reason for leap seconds has to do with keeping UTC in sync with other clock systems, and that probably overrides any inconvenience to software.

I wonder why they don't implement the google solution on pool.ntp.org.

I.e. gradually slow/accelerate time over the course of a day, rather than stepping it hard at once.

I'd say this approach would be vastly preferable for about 100% of the systems relying on pool.ntp.org.

The remaining 0%, e.g. scientific applications that absolutely need the leap second to appear at exactly the right moment, most likely don't use pool.ntp.org anyways.

And for those who do they could create a second pool with the old behavior. Maybe call it science.ntp.org.

Re: Critical Linux bug that leads 100% CPU (leap second)

#28
post #20

Earlier quoted context omitted.

If you come up with a way of predicting when leap seconds will be needed (hint: it's not a constant regular time interval), let us all know. Until then, there will need to be adjustments.

Leap seconds aren't needed at all. I'd rather let them accumulate until there's a leap hour that can be rolled into DST (although DST may not exist that far in the future).

[deleted]

Re: Critical Linux bug that leads 100% CPU (leap second)

#29
post #20

Earlier quoted context omitted.

If you come up with a way of predicting when leap seconds will be needed (hint: it's not a constant regular time interval), let us all know. Until then, there will need to be adjustments.

Leap seconds aren't needed at all. I'd rather let them accumulate until there's a leap hour that can be rolled into DST (although DST may not exist that far in the future).

If you want something that looks like UTC minus the leap second trouble, then there is TAI. Right now TAI and UTC differ by about 30 seconds.

Re: Critical Linux bug that leads 100% CPU (leap second)

#30

well, our hadoop cluster went bonkers because of this bug....luckily it was on stage...not production!

Yeah, I ended up rebooting our production hadoop cluster, it all came back up fine, and we don't have too many people using it yet.
Post reply on HN