LWN: Comments on "kmemcheck" https://lwn.net/Articles/260068/ This is a special feed containing comments posted to the individual LWN article titled "kmemcheck". en-us Tue, 11 Nov 2025 05:39:14 +0000 Tue, 11 Nov 2025 05:39:14 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net kmemcheck https://lwn.net/Articles/260453/ https://lwn.net/Articles/260453/ vomlehn <div class="FormattedComment"><pre> I would say that this idea pretty much rocks. Yes, it will slow the kernel way down and that will make it unusable for production use, but the ability to do these checks on debugging kernels is an excellent idea and the implementation makes a lot of sense for a first cut. </pre></div> Fri, 30 Nov 2007 02:18:05 +0000 kmemcheck https://lwn.net/Articles/260402/ https://lwn.net/Articles/260402/ nix <div class="FormattedComment"><pre> Also the extra memory accesses will tend to blow the cache more if you use more memory to track the uninit state. </pre></div> Thu, 29 Nov 2007 19:06:18 +0000 kmemcheck https://lwn.net/Articles/260398/ https://lwn.net/Articles/260398/ felixfix <div class="FormattedComment"><pre> Well, hmmmm, I guess I was thinking just enough to stick my foot in my mouth :-) </pre></div> Thu, 29 Nov 2007 18:52:21 +0000 kmemcheck https://lwn.net/Articles/260392/ https://lwn.net/Articles/260392/ lysse <div class="FormattedComment"><pre> When there's already a page fault happening on every memory access, I have some doubts of the significance of such additional overhead. </pre></div> Thu, 29 Nov 2007 18:41:38 +0000 kmemcheck https://lwn.net/Articles/260389/ https://lwn.net/Articles/260389/ felixfix <div class="FormattedComment"><pre> The code to map bits would be slower; maybe he did not like the tradeoff. </pre></div> Thu, 29 Nov 2007 18:16:17 +0000 kmemcheck https://lwn.net/Articles/260335/ https://lwn.net/Articles/260335/ jreiser <div class="FormattedComment"><pre> On a 32-bit machine it is tempting to use 8 bits (an entire byte) to track access to 32 bits (one word) of memory. This gives speed while still saving some space. </pre></div> Thu, 29 Nov 2007 15:20:52 +0000 kmemcheck https://lwn.net/Articles/260326/ https://lwn.net/Articles/260326/ nix <div class="FormattedComment"><pre> A bitmap definitely can be used instead. (This is how valgrind's memcheck tool implements uninitialized checks, although using JIT simulation rather than page faulting to detect accesses.) </pre></div> Thu, 29 Nov 2007 14:44:04 +0000 kmemcheck https://lwn.net/Articles/260309/ https://lwn.net/Articles/260309/ dw <div class="FormattedComment"><pre> Doubling the size of every allocation seems pretty wasteful, couldn't a bitmap be used instead, with byte or even word-level granularity? new_size = (size + (size/8)) </pre></div> Thu, 29 Nov 2007 13:19:58 +0000