TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Uptime related server crashes (2011)

32 pointsby luuover 1 year ago

4 comments

withzombiesover 1 year ago
&gt; <i>sds.total_pwr is the sum of the power of all CPUs in the scheduling domain. This sum ends up being zero and that’s what causing the crash – division by zero.</i><p>&gt; <i>The “CPU power” is used to take into account how much calculating capabilities a CPU has compared to the other CPUs and the main factors for calculating it are:</i><p>&gt; <i>1. Whether the CPU is shared, for example by using multithreading.</i><p>&gt; <i>2. How many real-time tasks the CPU is processing.</i><p>&gt; <i>3. In newer kernels, how much time the CPU had spent processing IRQs.</i><p>&gt; <i>The current suggested fix for this bug is relying on the theory that while taking into account the real-time tasks (#2 above), scale_rt_power() could return negative value, and thus the sum of all CPU powers may end up being zero.</i><p>The author doesn&#x27;t really describe how this panic is related to uptime. Do long running kernels collect a lot of real-time tasks, is it a leak of some kind?<p>The suggested fix link doesn&#x27;t provide any extra context as to why its uptime related either.
评论 #38655328 未加载
kralljaover 1 year ago
Uptime-related crashes seem fairly common. Here’s one of my stories, from Thanksgiving 2012: <a href="https:&#x2F;&#x2F;jacob.jkrall.net&#x2F;turkey-day-down-time" rel="nofollow noreferrer">https:&#x2F;&#x2F;jacob.jkrall.net&#x2F;turkey-day-down-time</a> I’ve seen a couple others since, but they had the same general shape so didn’t bother writing the same story again.
评论 #38655936 未加载
keep_readingover 1 year ago
I know of a FreeBSD 6.0 server with 13+ years uptime, what the heck was Linux doing back then????
forbiddenlakeover 1 year ago
(2011)
评论 #38654435 未加载
评论 #38654655 未加载