# How much is Discourse affected by a faster CPU?

**URL:** https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407
**Category:** Self-hosting
**Tags:** hosting
**Created:** [March 5, 2017, 11:11am UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407 "2017-03-05T11:11:37Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![mitchellk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mitchellk/32/120419_2.png) [@mitchellk](https://meta.discourse.org/u/mitchellk)
#### Post date: [March 20, 2017, 4:11pm UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/23 "2017-03-20T16:11:30Z")

</div>

So I guess these are pretty good then 😀

 ![](https://global.discourse-cdn.com/meta/original/3X/a/6/a6196953eab26422abcc19cdc5af937bde54df72.png)

 ![](https://global.discourse-cdn.com/meta/original/3X/d/4/d4e5204c4f340fd5cca3f3decf425deae52f7c3e.png)

 ![](https://global.discourse-cdn.com/meta/original/3X/0/b/0b080f795db104777d8751d1b89a1614d81f0543.png)

---

<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: [April 22, 2017, 10:39am UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/24 "2017-04-22T10:39:24Z")

</div>

> [@Steve\_Pavlina](#):
>
> Are there any rules of thumb for what defines a small vs. medium community?

A good starting point is the `/about` page; you can also refer to the memory stats I quoted in [my earlier reply](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/3).

---

<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: [August 24, 2017, 9:27pm UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/25 "2017-08-24T21:27:18Z")

</div>

I tried on a [High CPU Digital Ocean droplet](https://www.digitalocean.com/products/compute/high-cpu/):

`sysbench --test=cpu --cpu-max-prime=20000 run`  
`sysbench --test=cpu --cpu-max-prime=40000 --num-threads=8 run`

| Ali Express mini-pc | High CPU droplet |
| --- | --- |
| 21.3s | 24.4s |
| 15.7s | 31.6s |

(in case it wasn’t obvious, lower numbers are better = faster here)

That’s.. quite a bit worse than I expected. You are getting a small slice of a 16 core CPU (and it’s only Broadwell, not even Skylake!) which by definition means very low clock speeds, pushing it down to the i7-7500u levels of ~ 2.6 GHz base and 3.6 Ghz turbo.

[https://ark.intel.com/compare/95451,91768](https://ark.intel.com/compare/95451,91768)

Factoring in Kaby Lake’s generational improvements.. it loses by a fair bit. Per the page, they also offer Skylake Xeons at 2.7 Ghz and I think at best that would put it on par (maybe)?

---

<div class="post-metadata">

### Author: ![ksec](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ksec/32/306831_2.png) [@ksec](https://meta.discourse.org/u/ksec)
#### Post date: [May 30, 2018, 10:59am UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/26 "2018-05-30T10:59:50Z")

</div>

> [@codinghorror](#):
>
> The “name brands” such as Linode and AWS and Azure and Digital Ocean are mostly pretty close in CPU perf. The weirder new providers can be faster – or a whole lot slower.

That is not entirely true. I have no experience on Azure, but I have heard lots of good thing about it in terms of Perf. It is the best out of the three, Google, AWS and Azure. However it is still much more expensive then other cloud VPS provider like DO and Linode, mostly on bandwidth. Amazon lightsail is extremely slow so don’t even bother with it.

Linode has always offered much better CPU Perf, SSD Speed, and Better Network bandwidth. DO has manage to catch up in Network and SSD, but as far as I can tell Linode still wins on CPU performance, on most of the price plans.

It still doesn’t compare well do a dedicated box though.

---

<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: [December 30, 2018, 7:16am UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/27 "2018-12-30T07:16:45Z")

</div>

> [@codinghorror](#):
>
> - [i7-7500u](https://ark.intel.com/products/95451/Intel-Core-i7-7500U-Processor-4M-Cache-up-to-3_50-GHz-) (Kaby Lake 2.7 - 3.5, 2 core / 4 thread) — $400 on Ali Express
> - 16 GB RAM — Crucial 16GB DDR3
> - 500 GB disk — Samsung 850 Evo SSD, $170

For 2019 I am upgrading my mini colocated host to

- [i7-8750h](https://ark.intel.com/products/134906/Intel-Core-i7-8750H-Processor-9M-Cache-up-to-4-10-GHz-) (Coffee lake, 2.2 - 4.1, 6 core / 12 thread) - $460 on Ali Express
- 32GB RAM – DDR4 (16GB × 2, $220)
- 500 GB disk – NVMe PCI Samsung 970 Pro ($200)

[CPU comparison here](https://ark.intel.com/compare/95451,134906) – it’s a big jump in TDP, 2 cores to ⚠ 6 cores. Increase from 16GB to 32GB of faster DDR4 RAM. Plus a real M.2 NVMe drive, which is considerably faster than the old SATA interface style.

 ![board1](https://global.discourse-cdn.com/meta/original/4X/2/0/2/202c0c5ffaee94051e499ad5338a1f0cab840da2.jpeg)  
 ![board2](https://global.discourse-cdn.com/meta/original/4X/0/9/2/09291b1ebcf2cbad5b8a364e88e0d044d6e33b8c.jpeg)  
 ![box](https://global.discourse-cdn.com/meta/original/4X/a/5/5/a55ad135a3a8ab627bd0d91d25a73932b41c595e.jpeg)

> **Full specs**
>
> **Model Number:** [Partaker B18](https://www.amazon.com/Partaker-Coffee-Intel-8750H-Graphics/dp/B07L4KJXWL)  
> **Color:** Black  
> **CPU:** Intel Core i7-8750H Processor (9M Cache, up to 4.10 GHz)  
> **Platform:** Coffee Lake, 8th Generation Intel Core i7 Processors  
> **Threads:** 6 Core 12 Threads  
> **Graphic:** Intel UHD Graphics 630  
> **RAM:** DDR4 2133/2400/2666 260pin，2 SO-DIMM Slots, support up to 32GB  
> **Storage:** M.2 Nvme 22x80 SSD + M.2 NGFF/Nvme 22x80 SSD + 2.5’ 'HD
> 
> **WiFi:** 2.4G/5G Wifi B/G/N/AC+bluetooth  
> **Operating System System:** Windows Or Linux  
> **Network Card:** 10/100/1000 BaseT LAN  
> **I/O Port:** 1xHDMI + 1 Mini DP + 1 Gigabit LAN port + 4 USB 3.0 + 1 Type-C USB port + 1 Audio Port  
> **Power in:** 5.5mm plug in  
> **HDMI Output:** HDMI Support 4K 24HZ  
> **DP Output:** DP Support 4K 60HZ  
> **VGA Output:** VGA Support 1080P  
> **Power:** In: DC100-240V AC/50-60Hz Out: DC 19V/3.42A, 90W  
> **Operating Temperature:** 0°C~80°C (32°F~140°F)  
> **Storage Temperature:** -20°C~80°C (-68°F~176°F)  
> **Relative Humidity:** 10%~90% (non-condensing)  
> **Thermal Design:** Low Noise Fan  
> **Size:** 197 x 197 x 40mm  
> **Weight:** 1.5kgs  
> **Package Content:** Partaker B18 Mini PC, Power adapter, Power Cable, VESA Bracket, Screws

@pfaffman once these are swapped out I’ll mail you my old boxes, which are still trucking along just fine.

---

<div class="post-metadata">

### Author: ![deltamotion](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@deltamotion](https://meta.discourse.org/u/deltamotion)
#### Post date: [January 4, 2019, 12:57am UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/28 "2019-01-04T00:57:14Z")

</div>

I hope you left the stubby WiFi antennae on, they are so cute! 😍

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/5/75ce9d7958574ffd656e44599b7269477a7c99e9.jpeg)

---

<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: [January 4, 2019, 12:57am UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/29 "2019-01-04T00:57:39Z")

</div>

LOL no, I strip those out. These are going in a datacenter where WiFi would only be a negative.

---

<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: [January 15, 2019, 12:41pm UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/30 "2019-01-15T12:41:18Z")

</div>

I got these boxes and they are nifty designs, a great step up in every way. Burning in overnight now.

This is a really nice, extremely compact layout! One thing that confused me is that the DIMMs are split: one goes on top half, the other goes on the bottom half.

### Bottom

 ![IMG_7518](https://global.discourse-cdn.com/meta/original/3X/b/1/b15c089be28d9eb5cd6f3f2226e03666843ee461.jpeg)

 ![IMG_7519](https://global.discourse-cdn.com/meta/original/3X/d/4/d46d913091e80eb1154b43f419cc5e5456209264.jpeg)

### Top

 ![IMG_7520](https://global.discourse-cdn.com/meta/original/3X/e/c/ec0cba33c91d281dc357416bb97a4f68e4cd7fb5.jpeg)

 ![IMG_7521](https://global.discourse-cdn.com/meta/original/3X/f/e/fe0f123816e283b4a06eb8e75e5839960e5e3948.jpeg)

You may notice in the second pic in each series, I removed stuff as well as installing memory and SSD. I pulled out the WiFi module and antennas, as well as the SATA bottom mount, since I don’t need it. It looks like there’s another full length NVMe port on the top side as well, which is amazing!

### CPU benchmarks

> ⚠ this newer version of sysbench produces different numbers, it is not comparable to old versions!

`sysbench cpu --cpu-max-prime=20000 run`

| | events |
| --- | --- |
| DO droplet | 2988 |
| 2017 scooter | 4800 |
| 2019 scooter | 5671 |

`sysbench cpu --cpu-max-prime=40000 --num-threads=8 run`

| | events |
| --- | --- |
| DO droplet | 2200 |
| 2017 scooter | 5588 |
| 2019 scooter | 14604 |

### Disk benchmarks

`ioping -RD -w 10 .`

| | iops | MiB/sec |
| --- | --- | --- |
| DO droplet | 13.7k | 53.4 |
| 2017 scooter | 13.6k | 53.2 |
| 2019 scooter | 14.9k | 58.0 |

`dd bs=1M count=512 if=/dev/zero of=test conv=fdatasync`  
`hdparm -Tt /dev/sda`

| | sequential | cached reads | buffered reads |
| --- | --- | --- | --- |
| DO droplet | 701 MB/sec | 8818 MB/sec | 471 MB/sec |
| 2017 scooter | 444 MB/sec | 12564 MB/sec | 505 MB/sec |
| 2019 scooter | 1.2 GB/sec | 17919 MB/sec | 3115 MB/sec |

### Discourse rebuild times

`time ./launcher rebuild app`

| | real | user | sys |
| --- | --- | --- | --- |
| DO droplet | 6:59 | 1.4s | 0.89s |
| 2017 scooter | 3:41 | 1.3s | 0.85s |
| 2019 scooter | 3:24 | 1.7s | 1.2s |

Thanks for the tip on the timing command @pfaffman!

---

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [January 16, 2019, 4:29am UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/31 "2019-01-16T04:29:19Z")

</div>

This looks like a fun topic!

Are these any good?

```
ioping -RD -w 10 .

474.9 MiB read, 12.6 k iops, 49.3 MiB/s

```

* * *

```
dd bs=1M count=512 if=/dev/zero of=test conv=fdatasync

537 MB copied, 9.0306 s, 59.5 MB/s

```

* * *

```
sysbench cpu --cpu-max-prime=20000 run

General statistics:
    total time: 10.0015s
    total number of events: 5289

sysbench cpu --cpu-max-prime=40000 --num-threads=8 run`

General statistics:
    total time: 10.0044s
    total number of events: 13978

```

* * *

`time ./launcher rebuild app`

> | real | 3m37.140s |
> | --- | --- |
> | user | 0m2.268s |
> | sys | 0m0.740s |

---

<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: [January 16, 2019, 4:49am UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/32 "2019-01-16T04:49:50Z")

</div>

No need to post a bunch of details, **anything in the ballpark of the mini-PC numbers shown here is very good**. As you can see from my 2019 update, you get to a point where even sizable increases in disk and cpu perf produce diminishing returns.

---

<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: [January 18, 2019, 4:33am UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/33 "2019-01-18T04:33:46Z")

</div>

Checking CPU scaling of the new box with `i7z` and `stress`. Reminder this is [the i7-8750H](https://ark.intel.com/products/134906/Intel-Core-i7-8750H-Processor-9M-Cache-up-to-4-10-GHz-) with 6 cores, 12 threads, 45W TDP.

Here’s one task hogging CPU with `stress --cpu 1`, we definitely see 4100 Mhz as promised:

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/2/82a01fee23d895e59d63817bd5f5fe04a877ab09.png)

Starting with ~10w power consumption with `i7z` running but nothing else. Let’s exercise us some cores!

| | typical clock | watts |
| --- | --- | --- |
| `stress --cpu 1` | 4.1 Ghz | 30w |
| `stress --cpu 2` | 4.1 Ghz | 42w |
| `stress --cpu 3` | 4.0 Ghz | 53w |
| `stress --cpu 4` | 3.9 Ghz | 65w\* |
| `stress --cpu 5` | 3.7 Ghz | 65w\* |
| `stress --cpu 6` | 3.5 Ghz | 65w\* |
| `stress --cpu 12` | 3.3 Ghz | 65w\* |

\* It is likely more, you can really see the CPU speed limiters kick in because the watt meter will peak at 75w and then quickly dials it back down to _exactly_ 65w.

Running current-ish versions of `mprime` jacks this up to 75w though, and overall clock scales down to 3.1 Ghz .. those AVX2 extensions are 🔥

Power consumption seems to be about 8w totally idle at the Ubuntu login prompt. Not bad at all!

---

<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: [January 30, 2019, 9:29am UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/34 "2019-01-30T09:29:42Z")

</div>

Finally got this deployed so `discourse.codinghorror.com` is live and running on the above hardware:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/1/b15d7a52aa493fabfba9814c89861127100da753.png)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [January 30, 2019, 11:52am UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/35 "2019-01-30T11:52:05Z")

</div>

How are the usual timings on the mini profiler for the latest and a topic page on the new cpu?

---

<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: [January 30, 2019, 12:05pm UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/36 "2019-01-30T12:05:13Z")

</div>

Not exactly apples to apples since I did not measure for the old box.. but comparing the _old_ numbers from 2017..

 ![](https://global.discourse-cdn.com/meta/original/3X/9/4/94457914b3cb89a565bbfd62338a54d42b14fe41.png)

topic back button, 113ms avg (prev 206ms)  
topic refresh, 179ms avg (prev 127ms)  
latest refresh, 131ms avg (prev 140ms)

This is also unfortunately comparing 2017 Discourse with 2019 Discourse.. it does look like we regressed a bit on topic refresh perf since then maybe?

---

<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: [May 8, 2019, 10:37pm UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/37 "2019-05-08T22:37:14Z")

</div>

> [@codinghorror](#):
>
> | | real | user | sys |
> | --- | --- | --- | --- |
> | 2019 scooter | 3:24 | 1.7s | 1.2s |

@pmusaraj recently improved our build yesterday to skip unused locale compression, here’s what I get with

`time ./launcher rebuild app`

now on the very same machine:

| | real | user | sys |
| --- | --- | --- | --- |
| 2019 scooter | 2:40 | 0.2s | 0.1s |

Amazing! 🙌🙌🙌🙌🙌🙌🙌🙌🙌🙌 that is a 25% improvement!

(I rebuilt twice, because the timing of the first run is affected by the image download time which isn’t technically rebuild time.)

---

<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: [September 3, 2019, 6:30am UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/40 "2019-09-03T06:30:56Z")

</div>

@falco just made a new base image so I initiated a rebuild and tested build time again. Before:

| | real | user | sys |
| --- | --- | --- | --- |
| 2019 scooter | 2:40 | 0.2s | 0.1s |

After

| | real | user | sys |
| --- | --- | --- | --- |
| 2019 scooter | 2:34 | 0.2s | 0.1s |

👍

---

<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: [December 17, 2019, 12:16am UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/41 "2019-12-17T00:16:34Z")

</div>

I think we have a massive regression in rebuild times currently @falco? I’m seeing 5+ minute rebuilds now where it used to be under 3, on these same machines?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [December 17, 2019, 1:17am UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/42 "2019-12-17T01:17:08Z")

</div>

Oh since dependabot was enabled we are doing quite a bit of gem upgrades. I’d say a new images should be created in a few days after we finish the bulk of those updates. Just a nokogiri gem update can take so long.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [December 19, 2019, 11:28pm UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/44 "2019-12-19T23:28:06Z")

</div>

Just rebuild an instance using a new base image and it went from 5′6″ to to 3′11″.

New image will be tested on Meta over the weekend and released next week for everyone.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 23, 2019, 11:08am UTC](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407/45 "2019-12-23T11:08:20Z")

</div>



[Previous page](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407.md?page=1)

[Next page](https://meta.discourse.org/t/how-much-is-discourse-affected-by-a-faster-cpu/58407.md?page=3)
