# How do we use swap in QualityBox

**URL:** <https://discourse.equality-tech.com/t/how-do-we-use-swap-in-qualitybox/114>\
**Category:** Optimization\
**Created:** [October 20, 2017, 1:03pm UTC](https://discourse.equality-tech.com/t/how-do-we-use-swap-in-qualitybox/114 "2017-10-20T13:03:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eqt](https://discourse.equality-tech.com/user_avatar/discourse.equality-tech.com/eqt/32/16_2.png) [@eqt](https://discourse.equality-tech.com/u/eqt)\
**Post date:** [October 20, 2017, 1:03pm UTC](https://discourse.equality-tech.com/t/how-do-we-use-swap-in-qualitybox/114/1 "2017-10-20T13:03:51Z")

</div>

Notes from when I initially added swap to QualityBox  
[https://freephile.org/wiki/Swap](https://freephile.org/wiki/Swap)

The play:

> <https://github.com/freephile/qb/blob/579d97e10c9ab944743d450a58bb094ec3912dac/tasks/swap.yml>

The play should definitely be reviewed and updated. (It looks like it’s not idempotent in the fstab step)

---

<div class="post-metadata">

**Author:** ![eqt](https://discourse.equality-tech.com/user_avatar/discourse.equality-tech.com/eqt/32/16_2.png) [@eqt](https://discourse.equality-tech.com/u/eqt)\
**Post date:** [October 20, 2017, 1:08pm UTC](https://discourse.equality-tech.com/t/how-do-we-use-swap-in-qualitybox/114/2 "2017-10-20T13:08:06Z")

</div>

Can we dynamically determine the appropriate size for swap? Swap in QB is currently defaulted at 4GB which wouldn’t work at all on a 2GB RAM small-footprint system.
