3 ms·
For comparison's sake, I ran exactly the test described in the blog post on my house server, which is an AMD FX4130 with 32 GB RAM. The database was stored on S
by dsr_ 8y ago
For comparison's sake, I ran exactly the test described in the blog post on my house server, which is an AMD FX4130 with 32 GB RAM. The database was stored on SATA SSDs managed by ZFS. Lots of other things were going on at the same time.
pgbench -c 10 -j 2 -T 600 -P 60 bench_test
starting vacuum...end.
progress: 60.0 s, 5373.1 tps, lat 1.860 ms stddev 0.709
progress: 120.0 s, 5277.3 tps, lat 1.894 ms stddev 1.383
progress: 180.0 s, 5323.4 tps, lat 1.878 ms stddev 0.733
progress: 240.0 s, 4606.6 tps, lat 2.170 ms stddev 1.508
progress: 300.0 s, 4122.0 tps, lat 2.425 ms stddev 1.517
progress: 360.0 s, 4062.0 tps, lat 2.461 ms stddev 1.532
progress: 420.0 s, 3957.3 tps, lat 2.526 ms stddev 1.598
progress: 480.0 s, 3939.6 tps, lat 2.537 ms stddev 1.599
progress: 540.0 s, 3906.5 tps, lat 2.559 ms stddev 1.627
progress: 600.0 s, 3808.6 tps, lat 2.624 ms stddev 1.747
transaction type: <builtin: TPC-B (sort of)>
scaling factor: 10
query mode: simple
number of clients: 10
number of threads: 2
duration: 600 s
number of transactions actually processed: 2662601
latency average = 2.252 ms
latency stddev = 1.435 ms
tps = 4437.570722 (including connections establishing)
tps = 4437.599312 (excluding connections establishing)
So you get roughly an 11x performance improvement by running on a 7 year old desktop processor and rather cheap SSDs. On the other hand, if we say that the Pi setup cost $50 and we estimate the current value of my server at $500, performance/price is basically linear.
- bloopernova 8y agoDo you know roughly how much power your server draws? Like you said, the cost/performance may be linear but I wonder what happens when you add in power to that equation. Idle speculation, to be sure, but it would be fascinating to see what amount of solar panels plus wind power plus batteries would be needed to power each system.
- dsr_ 8y agoOh, loads of power. The CPU is spec'd for 125W and would be completely outclassed by a 65W Ryzen 5 1600 (150% cores, 300% threads, each thread probably 2x performance) and the rest of the system likely draws another 100W or so. It's irritatingly reliable and my house server needs really don't encompass a lot of CPU power, so replacing it hasn't been a priority.
- bloopernova 8y ago> irritatingly reliable This made me laugh. I have an AMD Sempron 3850 cpu+gpu sitting in a small case under the TV that has been chugging along for 5 years now. The somewhat recent addition of a cheap SSD has increased its usability even more. As much as I'd like to replace it with something more up to date, I can't justify it while it's still working fine. It's funny to think of what is "good enough" for a lot of needs.
- asdf21 8y ago>irritatingly reliable I feel the exact same way about my old Camry.