An Acrobat Extension Wrote Hundreds of Gigabytes to One User's SSD

一个浏览器扩展,三天往硬盘里写了几百 GB

新闻资讯B2中级35.3
342 词 2 分钟 54 次阅读

Chrome looked idle but wrote about 100GB a day. The culprit was a service worker belonging to Adobe's PDF extension, filling its cache and emptying it again.

Browser extensions are known for using memory, and people install them anyway because they are small and take one click. A Windows 11 user has described a case where the cost was far larger than memory.

He noticed his SSD showing unusual read and write activity while the computer was idle. He used PowerShell to check cumulative writes per process. Chrome had written more than 300GB since the machine booted — about 100GB a day — with the browser barely used.

Sorting the numbers by write volume pointed him at the busiest extension. Then he looked inside Chrome's cache folders and saw something odd: the browser's whole disk cache was only about 3.5GB, while a ServiceWorker CacheStorage folder kept writing and deleting, over and over.

The source was Adobe's official Acrobat PDF extension. It registers a service worker on Adobe's site, and that worker kept filling its own cache quota even when no Chrome window was open — including at night.

There is a useful trap in the method, and he flagged it. Windows counts network transfers in its write figures. So a process showing heavy writes is not necessarily touching the disk. Switching to the disk tab of Resource Monitor, which separates real disk input and output, made the picture accurate.

The fix was to uninstall the extension, unregister its service worker, clear the site data and restart Chrome. The difference showed immediately: idle writes fell from about 730MB every five minutes to 135MB after the first restart, and continued falling.

His advice for anyone who suspects the same thing is straightforward. Open Resource Monitor and look at the disk tab; check installed extensions at chrome://extensions; and see what service workers are running at chrome://serviceworker-internals/.

One caution belongs with the story. This does not mean extensions in general quietly wear out drives, and the user himself said the behaviour may be specific to his machine. What it does show is that a worker sitting quietly in the background can still cost something real. On a solid-state drive, writes are the measure of wear.

中文翻译(全文)

浏览器扩展以占内存著称,但人们照装不误,因为它们体积小、一键就能装上。一位 Windows 11 用户描述了这样一个案例:代价远不止内存。

他注意到电脑闲置时固态硬盘出现异常的读写活动。他用 PowerShell 查看各进程的累计写入量。自开机以来Chrome 已写入超过 300GB——大约每天 100GB——而他几乎没怎么用浏览器。

按写入量排序,最忙的那个扩展就浮出来了。接着他查看 Chrome 的缓存文件夹,发现了怪现象:浏览器整体磁盘缓存只有约 3.5GB,而一个 ServiceWorker CacheStorage 文件夹却在反复写入、又反复删除。

源头是 Adobe 官方的 Acrobat PDF 扩展。它在 Adobe 的站点上注册了一个服务工作线程,即便没有打开 Chrome 窗口,这个线程也在不断填满自己的缓存配额——夜里也不停。

这套排查方法里有个值得注意的陷阱,他也点出来了。Windows 的写入统计会把网络传输算进去。所以一个显示大量写入的进程,未必真的在读写磁盘。切换到资源监视器的磁盘选项卡——它区分真实的磁盘读写——数据才准确。

解决办法是卸载扩展、注销对应的服务工作线程、清除站点数据,然后重启 Chrome。差别立刻显现:闲置状态下每五分钟的写入量从约 730MB 降到首次重启后的 135MB,之后还在继续下降。

他给怀疑同样问题的人的建议很直接:打开资源监视器看磁盘选项卡;在 chrome://extensions 检查已装扩展;在 chrome://serviceworker-internals/ 看看有哪些服务工作线程在跑。

这个故事还附一句提醒。这并不意味着扩展普遍在悄悄磨损硬盘,这位用户自己也说该现象可能只出现在他那套环境里。它说明的是:一个安静待在后台的线程,仍然可能带来真实的代价。在固态硬盘上,写入量就是磨损的度量。

重点词汇

  • extension/ɪkˈstenʃn/n.— an add-on that changes a browser扩展(插件)The extension wrote hundreds of GB.
  • SSD/ˌes es ˈdiː/n.— a drive with no moving parts固态硬盘The SSD showed odd activity.
  • idle/ˈaɪdl/adj.— not being used闲置的It happened while the PC was idle.
  • cache/kæʃ/n.— stored copies that speed things up缓存The cache folder kept growing.
  • service worker/ˈsɜːvɪs ˈwɜːkə/n.— a script that runs in the background服务工作线程A service worker kept filling its quota.
  • uninstall/ˌʌnɪnˈstɔːl/v.— to remove software卸载He uninstalled the extension.
  • monitor/ˈmɒnɪtə/n.— software that watches system activity监视器Resource Monitor shows real disk activity.
  • transfer/ˈtrænsfɜː/n.— moving data from one place to another传输Network transfers are counted too.
  • wear/weə/n.— damage from repeated use磨损Writes are the measure of wear.
  • quota/ˈkwəʊtə/n.— an allowed maximum配额It filled its cache quota.

阅读测验

共 5 道题目

5 题
1.[单选]

What did the user find?

2.[单选]

What turned out to be writing the data?

3.[判断]

Windows' write counters measure real disk activity accurately on their own.

4.[多选]

Which steps did the fix involve? (Select all that apply)

5.[填空]

After the fix, idle writes fell from about 730MB to 135MB every five ______.

(1)

评论

0 条讨论

按时间

登录后发表评论

立即登录

暂无评论

成为第一个分享想法的人吧!