HackerURLs

一次又一次被重新发现的经典。

同一个链接,相隔一年以上,一次又一次被人重新发现、再次冲上 Hacker News 首页。能经受住这种时间检验的,大多是值得一读再读的文章。每篇附中文标题,讨论最热的那些再加上中文导读和高赞评论翻译。

从名人堂开始
  • 4,700+篇经过时间检验的经典

Hall of fame

名人堂

在经典库里看全部精选

上首页次数最多、而且有中文导读的 30 篇。时间轴上每个黑点是一次上首页,空心点是一次没冲上去的投稿。

  1. 正在载入经典…

Archive

经典库

按第一次上首页的年份分布,点柱子筛选。

排序

    About

    这些经典是怎么挑出来的

    1. 01

      合并同一个链接

      读取 Hacker News 自 2006 年以来的全部链接投稿,把 http/https、www、跟踪参数等写法不同的同一篇文章合并成一条。

    2. 02

      只留经得起时间的

      同一链接至少两次拿到 50 分以上(约等于上首页),而且两次相隔一年以上;再由 AI 剔除状态页、产品首页和新闻事件。

    3. 03

      写导读、译评论

      上首页次数最多的 2,000 篇配上中文导读、"为什么经久不衰",并精选翻译 HN 高赞评论。导读由 AI 生成,可能有误。

    系统与基础设施kcall.co.uk

    我所知道的关于 SSD 的一切

    Everything I Know About SSDs

    2次上首页
    4年跨度
    559累计得分
    235条评论

    2020 — 2024,它一次次回到首页

    黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。

    导读

    这是一篇关于 SSD(固态硬盘)工作原理的科普长文,涵盖 NAND 闪存特性、磨损、TRIM、文件系统与 SSD 的交互等知识。文章多次登上 Hacker News 首页,被视为 SSD 入门的经典参考资料。

    为什么经久不衰:SSD 的底层机制(闪存写入方式、TRIM、磨损均衡)至今仍是许多开发者容易误解的领域,这篇系统性的讲解历经多年仍被反复推荐。

    关键词 SSDNAND闪存TRIM存储

    HN 评论精选

    指出原文关于文件系统和 HDD 扇区的两处技术性错误

    文中关于文件系统的部分略有不准。'文件系统的处理方式与 NAND 闪存的工作机制不兼容'——这对大多数传统文件系统成立,但日志结构文件系统对闪存友好得多,这也是它们重新受到关注的原因,典型的闪存转换层(FTL)就与日志结构文件系统惊人地相似。此外还有闪存专用文件系统。'对 HDD 来说所有扇区都一样'也不对,因为有坏块重映射机制;而且让磁盘知道哪些块未使用也很有用,可以不实际读介质就返回全零。TRIM/discard 在涉及 RAID 和虚拟块设备时会相当复杂。

    notacoward查看英文原文

    The part about filesystems is slightly incorrect. > The way the file system handles this is incompatible with the workings of NAND flash. That's true of most conventional filesystems, but log-structured filesystems are much more flash-friendly. That's why there has been a resurgence of interest in them, and also why a typical flash translation layer bears a striking resemblance to a log-structured FS. There are also flash-specific filesystems. > to an HDD all sectors are the same. This is not true because of bad blocks. Every disk has a reserve of blocks that can be remapped in place of a detected bad block, transparently, much like flash blocks are remapped. Beyond that, it's also useful for a disk to know which blocks are not in use so it can return all zeroes without actually hitting the media. There are special flags to force media access and commands to physically zero a block, for the cases where those are needed, but often they're not. Trim/discard actually gets pretty complicated, especially when things like RAID and virtual block devices are involved.

    来自运维一线的 SSD 实战经验:固件风险、厂商差异与使用建议

    我在 prgmr 使用 SSD 学到的:SSD 固件比硬盘复杂得多,更可能直接彻底变砖而非优雅降级,厂商还可能有恶劣的固件 bug(如 HPE SSD 在使用 32768 小时后失效的 bug)。建议在 RAID 中混用不同寿命和不同厂商的 SSD。各厂商在负载下跑 SMART 测试的行为差异很大;不同 SSD 对电源波动的容忍度也不同;无法使用 TRIM 时手动超额配置很有帮助;secure-erase-enhanced 的具体行为各盘也不一样。

    sn查看英文原文

    Things I've learned from using SSDs at prgmr: Since the firmware is more complicated than hard drives, they are way more likely to brick themselves completely instead of a graceful degradation. Manufacturers can also have nasty firmware bugs like https://www.techpowerup.com/261560/hp-enterprise-ssd-firmware-bug-causes-them-to-fail-at-32-768-hours-of-use-fix-released . I'd recommend using a mix of SSDs at different lifetimes, and/or different manufacturers, in a RAID configuration. How different manufacturers deal with running SMART tests under load drastically varies. Samsung tests always take the same amount of time. The length of Intel tests vary depending on load. Micron SMART tests get stuck if they are under constant load. Seagate SMART tests appear to report being at 90% done or complete, but the tests do actually run. Different SSDs also are more or less tolerant to power changes. Micron SSDs are prone to resetting when a hard disk is inserted in the same backplane power domain, and we have to isolate them accordingly. Manual overprovisioning is helpful when you aren't able to use TRIM. What a drive does with secure-erase-enhanced can be different too. Some drives only change the encryption key and then return garbage on read. Some additionally wipe the block mappings so that reads return 0.

    提供原文存档镜像

    镜像链接:http://archive.is/K9SFI

    StavrosK查看英文原文

    Mirror: http://archive.is/K9SFI

    历次讨论

    同类还值得读

    1. TTY 揭秘(2008)

      The TTY demystified (2008)

      经典文章深入剖析了 Unix/Linux 中 TTY 子系统的工作原理,包括线路规程、终端驱动、信号与控制字符等机制。

      系统与基础设施上首页 11 次 · 2009–2025linusakesson.net编辑精选
    2. 为什么 GNU grep 这么快

      Why GNU grep is Fast

      FreeBSD 邮件列表上一篇广为流传的帖子,解释 GNU grep 为什么快:核心在于 Boyer-Moore 字符串搜索算法配合精心优化的内部循环和 I/O,让程序在搜索时“…

      系统与基础设施上首页 9 次 · 2010–2022lists.freebsd.org
    3. Xplain:为普通人讲解 X11

      Xplain – Explaining X11 for the rest of us

      《Xplain》是作者(HN 用户 Jasper_)写的一系列 X11 长文,用他在浏览器中重建的 X11 绘图模型做交互演示,讲解 X11 的绘图模型与窗口系统设计。

      系统与基础设施上首页 6 次 · 2013–2020magcius.github.io编辑精选
    4. 旋风教程:为 Linux 创建极小 ELF 可执行文件(1999)

      A Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux (1999)

      breadbox 写于 1999 年的经典教程,主题是如何为 Linux 手工构造并裁剪出体积极小的 ELF 可执行文件。

      系统与基础设施上首页 6 次 · 2007–2025muppetlabs.com
    5. PostgreSQL 内部原理

      The internals of PostgreSQL

      《The Internals of PostgreSQL》是一本免费在线书籍,系统讲解 PostgreSQL 的内部实现,包括查询处理、并发控制、WAL、缓冲区管理等核心机制。

      系统与基础设施上首页 5 次 · 2017–2025interdb.jp编辑精选

    打赏支持

    打赏二维码

    觉得有用,请作者喝杯咖啡。

    WeChat

    关注向阳乔木

    微信公众号「向阳乔木推荐看」

    微信公众号「向阳乔木推荐看」二维码

    微信扫一扫;在微信里打开本页时,长按二维码识别。