# What is the disadvantage of using pin\_memory?

**URL:** <https://discuss.pytorch.org/t/what-is-the-disadvantage-of-using-pin-memory/1702>\
**Category:** Uncategorized\
**Created:** [April 6, 2017, 6:28pm UTC](https://discuss.pytorch.org/t/what-is-the-disadvantage-of-using-pin-memory/1702 "2017-04-06T18:28:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![smth](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/smth/32/13_2.png) [@smth](https://discuss.pytorch.org/u/smth)\
**Post date:** [April 6, 2017, 7:08pm UTC](https://discuss.pytorch.org/t/what-is-the-disadvantage-of-using-pin-memory/1702/2 "2017-04-06T19:08:35Z")

</div>

pinned memory is page-locked memory. It is easy for users to shoot themselves in the foot if they enable page-locked memory for everything, because it cant be pre-empted. That is why we did not make it default `True`

---

_[View the full topic](https://discuss.pytorch.org/t/what-is-the-disadvantage-of-using-pin-memory/1702)._
