Live data from Hacker News

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

blog.wpkg.org

41–45 of 45 posts

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

#42

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

It's probably that Java heavily utilizes the multi-thread support and the kernel bug is showing up as a Java bug. It just means Java really exercises the system's concurrent support.

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

#43
post #35
post #4

I would love to see what's really causing this bug. We read so many times over the weekend to either reboot or just run that date command - but nobody is telling us what's causing the problem. Also, seeing that other threaded applications had similar problems, I doubt this is a java issue - more likely a pthread, glibc or even kernel issue

This seems like the best explanation I've found so far: https://lkml.org/lkml/2012/7/1/203

Agreed. Also it clearly accounts for the futex related load issues and it even gives nice and readable C code to see the problem happening.

This explains it for me. Thanks a lot for the pointer.

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

#44
post #4

I would love to see what's really causing this bug. We read so many times over the weekend to either reboot or just run that date command - but nobody is telling us what's causing the problem. Also, seeing that other threaded applications had similar problems, I doubt this is a java issue - more likely a pthread, glibc or even kernel issue

A good explanation from Reddit: http://www.reddit.com/r/programming/comments/vxmf7/time_arit...

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

#45
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.

The solution is not to change UTC, but just to rotate the time zones of each country every now and then. DST has proven that a country is able to change time zones twice a year. This would happen far less often.
Post reply on HN