# 是否应该将我的交换文件从 2GB 增加？

**URL:** <https://meta.discourse.org/t/should-i-increase-the-swap-file-from-2gb/391808>\
**Category:** Self-hosting\
**Created:** [2025年十二月20日 16:34 UTC](https://meta.discourse.org/t/should-i-increase-the-swap-file-from-2gb/391808 "2025-12-20T16:34:07Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)\
**Post date:** [2025年十二月21日 17:55 UTC](https://meta.discourse.org/t/should-i-increase-the-swap-file-from-2gb/391808/14 "2025-12-21T17:55:07Z")

</div>

对我个人而言，我不会使用 htop，而是使用 `vmstat 5`，因为它会留下一个清晰的文本日志记录它所看到的情况（每 5 秒一次）。这很方便，因为你可以向上滚动，或者搜索最糟糕的时刻。最糟糕的时刻才是真正重要的，特别是如果它导致了故障。平均情况（在重建期间）没有参考价值。使用像 htop 这样的工具，你很容易错过峰值，一旦过去就无法回顾。

我以前也发过关于 vmstat 的帖子，并解释了如何解释输出。

---

_[View the full topic](https://meta.discourse.org/t/should-i-increase-the-swap-file-from-2gb/391808)._
