SShortSingh.
Back to feed

isolcpus Blocks Scheduler Tasks but Leaves Hardware IRQs on Isolated CPUs

0
·1 views

The Linux kernel parameter isolcpus= is widely used to prevent the scheduler from assigning userspace tasks to specific CPU cores, but it does not stop hardware interrupts from firing on those same cores. Developers often verify isolation by checking CPU idle status in top, missing the fact that /proc/interrupts continues to tick on the supposedly isolated CPUs. For performance-critical use cases such as DPDK, user-space NICs, or cycle-accurate loops, scheduler isolation alone is insufficient and must be paired with IRQ affinity controls via /proc/irq/*/smp_affinity or the irqaffinity= kernel parameter. On newer kernels, the isolation story has split across multiple mechanisms including isolcpus=managed_irq, cpusets, and nohz_full=, though the IRQ caveat persists regardless of which interface is used. The isolcpus= parameter is also marked deprecated in some kernel trees in favor of cpusets, but the underlying hardware interrupt behavior remains unchanged.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Building reliable restock alerts is harder than a simple in-stock check

Developers building Restockd, a free app for tracking Pokemon and collectible restocks, found that real-time restock alerts involve far more complexity than a basic true/false inventory check. Retail product pages often display inaccurate availability, with cached data, regional differences, and checkout mismatches creating conflicting signals. The core challenge was determining when an observation was trustworthy enough to trigger a user notification, not just whether a page could be scraped. The team recommends separating raw inventory observations from alert decisions, and measuring false positives and late alerts as distinct failure types rather than lumping them together as bad data. They also highlight the need for alerts to have their own lifecycle, independent of the underlying stream of inventory events, to avoid bombarding users with duplicate or misleading notifications.

0
ProgrammingDEV Community ·

Four Core Skills That Still Require Years of Human Effort in the AI Era

A developer perspective argues that certain foundational skills remain distinctly human despite the rise of AI tools. The proposed core skill set includes understanding technology's possibilities and limits, critical thinking for strategic problem-solving, hands-on coding experience, and building strong mental models of systems. While these four areas may appear straightforward on the surface, each one demands years of dedicated practice to truly master. The argument suggests that AI cannot simply replace the depth of experience gained through real-world projects and deliberate learning.

0
ProgrammingDEV Community ·

Developer Builds MCP Memory Server That Uses Code, Not AI, to Validate Stored Facts

A developer has published an open-source MCP memory server designed to prevent AI hallucinations from corrupting long-term memory storage. Unlike conventional systems where the language model decides what to remember, this server requires the model to submit a claim alongside a verbatim evidence quote, which deterministic code then validates before anything is stored. If a claim asserts more than the evidence supports, a rule-based gate rejects it outright with no room for persuasion or prompt manipulation. Each admitted memory is bound to a precise byte-range receipt tied to a document hash, allowing stored facts to be re-verified against the original source at any time. The project addresses a widely overlooked flaw in AI memory libraries, where the same model prone to hallucination is also trusted to manage what gets recorded as fact.

0
ProgrammingDEV Community ·

Developer builds browser-based image toolbox that processes files locally without uploads

A developer has launched Imging, a free browser-based image processing tool designed to eliminate the need for multiple third-party upload sites. The tool handles format conversion across JPG, PNG, WebP, AVIF, and HEIC, along with compression, background removal, and animated image editing — all on the user's device. Background removal uses WebGPU acceleration with a WASM fallback, while animated images are processed through a frame pipeline that preserves timing and loop data. PDF compression works by rewriting document structure rather than converting pages to bitmaps. The tool is available without an account or watermark, though it acknowledges limitations such as tight mobile memory for large animations and inconsistent HEIC file support.