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

**URL:** <https://meta.discourse.org/t/should-i-increase-the-swap-file-from-2gb/391808>\
**Category:** Self-hosting\
**Created:** [2025 年12 月 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:** 12

<div class="post-metadata">

作者： ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
发布日期： [2025 年12 月 21 日 11:20 UTC](https://meta.discourse.org/t/should-i-increase-the-swap-file-from-2gb/391808/12 "2025-12-21T11:20:35Z")

</div>

是的。但请注意，这不是一个精细的工具。很明显，这里 2GB 已经足够了，但如果你想更准确地了解交换空间（swap）的使用峰值，你可以研究一下 `sysstat` 和日志记录。我把这项研究留给你。

---

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