# Optimizing the number of Unicorns and buffer size

**URL:** <https://meta.discourse.org/t/optimizing-the-number-of-unicorns-and-buffer-size/51514>\
**Category:** Self-hosting\
**Tags:** server-resources\
**Created:** [2016 年 10 月 13 日午後 7:17 UTC](https://meta.discourse.org/t/optimizing-the-number-of-unicorns-and-buffer-size/51514 "2016-10-13T19:17:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2016 年 10 月 13 日午後 10:11 UTC](https://meta.discourse.org/t/optimizing-the-number-of-unicorns-and-buffer-size/51514/2 "2016-10-13T22:11:04Z")

</div>

The usual, which is

- DB gets 1/4 of memory
- Up to two unicorns per “real” CPU core (I’d limit to 8 for now though)

---

_[View the full topic](https://meta.discourse.org/t/optimizing-the-number-of-unicorns-and-buffer-size/51514)._
