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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Prefaulting Memory Mapped Arrays in Julia

3 点作者 delhanty将近 4 年前

2 条评论

delhanty将近 4 年前
I&#x27;m interested in learning more about the performance possibilities of mmap for the case read-only X 64-bit-only and found this interesting article by Justin Willmert [0] from 2020-11-05 on using the Linux-specific MAP_POPULATE flag to prefault memory on a single-thread to increase performance.<p>Surprisingly, the article didn&#x27;t appear to have been submitted previously when I searched for its URL.<p>And seeing as there are lots of HN folks who know a lot more about it than me, I submitted it to see what I could learn from the comments.<p>Edit 0: also found that it wasn&#x27;t on archive.org so I submitted it there [1].<p>Edit 1: and just to make sure that this nice article is saved for posterity, I submitted it to archive.is too [2].<p>[0] <a href="https:&#x2F;&#x2F;justinwillmert.com&#x2F;about&#x2F;" rel="nofollow">https:&#x2F;&#x2F;justinwillmert.com&#x2F;about&#x2F;</a> &quot;an experimental physicist with an affinity for modeling and analysis. I am particularly interested in melding computational physics and software engineering to solve novel problems.&quot;<p>[1] <a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20210810021537&#x2F;https:&#x2F;&#x2F;justinwillmert.com&#x2F;articles&#x2F;2020&#x2F;prefaulting-memory-mapped-arrays-in-julia&#x2F;" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20210810021537&#x2F;https:&#x2F;&#x2F;justinwil...</a><p>[2] <a href="https:&#x2F;&#x2F;archive.is&#x2F;VjtSh" rel="nofollow">https:&#x2F;&#x2F;archive.is&#x2F;VjtSh</a>
snicker7将近 4 年前
I looked at the source code for UnixMaps.jl. It seems to call :jl_mmap (exported by Julia&#x27;s underlying C++ source code). I wonder why this style might be preferred to, say, calling libc directly?