TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Malloc Geiger Counter

238 点作者 mkeeter将近 5 年前

14 条评论

chroem-将近 5 年前
Here I was hoping this was something about repurposing RAM as an actual geiger counter by measuring radiation-induced bit flips.
评论 #24316255 未加载
评论 #24315137 未加载
评论 #24314354 未加载
评论 #24316950 未加载
评论 #24317469 未加载
评论 #24314104 未加载
modeless将近 5 年前
Sometimes I miss being able to hear the hard disk read heads moving around. It was a surprisingly accurate way to tell what your computer was up to. Someone must have made a simulation of this, right?
评论 #24314275 未加载
评论 #24314427 未加载
评论 #24314382 未加载
评论 #24314569 未加载
评论 #24314939 未加载
评论 #24316422 未加载
评论 #24314150 未加载
评论 #24314755 未加载
评论 #24314366 未加载
phonethrowaway将近 5 年前
Here&#x27;s a similar thing I did once...<p><a href="https:&#x2F;&#x2F;github.com&#x2F;gordol&#x2F;ld_preload-sounds" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gordol&#x2F;ld_preload-sounds</a><p>Generates WAV output by hooking malloc() and read().<p>You can totally hear the standard libraries loading in, I started this thing on a whim of silliness...<p>It started out as just 38 lines of code.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;gordol&#x2F;ld_preload-sounds&#x2F;commit&#x2F;2d51b3e7bf857fdc5b594ea61f3b90f087fe7ef5" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gordol&#x2F;ld_preload-sounds&#x2F;commit&#x2F;2d51b3e7b...</a>
aeturnum将近 5 年前
I think projects like this, which try to give normally invisible qualities of software some corporeal existence, are really important. Obviously this is too course-grained for diagnosing specific problems, but in environments like our phones or our full desktop environments, being able to turn on feedback about what is taking resources and how has the potential to help us build general feelings about particular ecosystems.
usr1106将近 5 年前
I have been Linux only for 10 years, so I cannot try.<p>I have used similar tricks with gdb to play a sound when some high-level function is called, can be really useful. However, for malloc I would expect it to be called so often that a human cannot hear the difference. Or the program needs to measure the rate and select the tone according to the rate. Of course it depends on the program, but at least if there is enough allocation to be worried.
评论 #24314429 未加载
euske将近 5 年前
This is actually a brilliant idea.<p>If you change the pitch by the allocated chunk size (maybe in log scale) or use different sound for free(), someone could be actually detecting memory leaks just by listening to the app.
评论 #24315344 未加载
YesThatTom2将近 5 年前
People did this with network utilization decades ago: <a href="https:&#x2F;&#x2F;www.usenix.org&#x2F;techsessionssummary&#x2F;peep-network-auralizer-monitoring-your-network-sound" rel="nofollow">https:&#x2F;&#x2F;www.usenix.org&#x2F;techsessionssummary&#x2F;peep-network-aura...</a>
评论 #24321140 未加载
评论 #24315621 未加载
andi999将近 5 年前
While some say here that they are disappointed that this isnt abour radioactivity, for me it was the opposite. Wheb reading the headline I thought, oh no not another one of those, wondering though how you can get malloc in.<p>Read it, and I think this is actually a great new idea.
bregma将近 5 年前
Back in the day sysadmins would just hooks up the least-significant address line to a speaker. That way they could monitor the mainframe aurally while reading and drinking coffee instead of watching the bank of flashing lights.
nemo1618将近 5 年前
Here&#x27;s a version for Go: <a href="https:&#x2F;&#x2F;github.com&#x2F;lukechampine&#x2F;geiger" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lukechampine&#x2F;geiger</a>
peter_d_sherman将近 5 年前
What a strange, but interesting, idea!<p>The broader idea here is that there are probably an infinite number of creative ways -- to measure different aspects of what software does, and to instrument that output in different creative ways that can be experienced via human senses (in this case, via sound).
fizixer将近 5 年前
Thanks goodness this is not a renaming&#x2F;rediscovery&#x2F;attribution-hijacking of a well-known and old concept (reference count, allocation count, etc.), something every other person these days seems be engaged in.
lucasvr_br将近 5 年前
This is really cool! It just occurred to me that the same approach would work to identify non-sequential reads from applications that access data from disk&#x2F;tape. Thanks a lot for sharing this project with us :-)
olliej将近 5 年前
well I&#x27;m sure as hell not using this on any Haskell* code (imagine we apply the malloc sound effect to generic allocation)<p>* Any GC&#x27;d language really, JS, Java w&#x2F;generics etc
评论 #24314197 未加载
评论 #24315412 未加载