I started benchmarking Postgres using NFS and in TrueNas jail and results are baffling me!
results show everything using NFS.
I then created the TrueNas jail as you advised and the results are not even 50% and shows 32 cores being hammered 100% during benchmarking.
storage from stripped mirror with 4 x SSD's and then moved it to 4 x spindles stopped mirror just like
but the results are just appalling.
I am using phoronix benchmarking.
Code:
PostgreSQL pgbench 14.0:
pts/pgbench-1.11.0 [Scaling Factor: 1 - Clients: 50 - Mode: Read Only]
Test 1 of 16
Estimated Trial Run Count: 3
Estimated Test Run-Time: 18 Minutes
Estimated Time To Completion: 4 Hours, 43 Minutes [03:48 UTC Jan 10]
Started Run 1 @ 23:05:47
Started Run 2 @ 23:08:06
Started Run 3 @ 23:10:24
Scaling Factor: 1 - Clients: 50 - Mode: Read Only:
53732.387014
53456.242004
52870.585255
Average: 53353 TPS
Deviation: 0.82%
TPS > Higher Is Better
HDD Fast10 with zil, truenas jail ............................... 53353 |=================================================
HDD Fast10 with zil, 24G RAM, Sync Enabled, Atime off ........... 95592 |========================================================================================
HDD Fast10 with zil, 8G RAM, Sync Enabled, Atime off ............ 99523 |============================================================================================
SSD Fast10, 24G RAM, Sync Enabled, Atime off .................... 105429 |=================================================================================================
HDD Fast10 with zil, 8G RAM, Sync Enabled, Atime off, 16K block . 108053 |===================================================================================================
SSD Fast10, 8G RAM, Sync Enabled, Atime off, 16K block .......... 108653 |====================================================================================================
Scaling Factor: 1 - Clients: 50 - Mode: Read Only - Average Latency:
0.931
0.935
0.946
Average: 0.937 ms
Deviation: 0.83%
ms < Lower Is Better
HDD Fast10 with zil, truenas jail ............................... 0.937 |=====================================================================================================
HDD Fast10 with zil, 24G RAM, Sync Enabled, Atime off ........... 0.523 |========================================================
HDD Fast10 with zil, 8G RAM, Sync Enabled, Atime off ............ 0.502 |======================================================
SSD Fast10, 24G RAM, Sync Enabled, Atime off .................... 0.474 |===================================================
HDD Fast10 with zil, 8G RAM, Sync Enabled, Atime off, 16K block . 0.463 |==================================================
SSD Fast10, 8G RAM, Sync Enabled, Atime off, 16K block .......... 0.460 |==================================================
PostgreSQL pgbench 14.0:
pts/pgbench-1.11.0 [Scaling Factor: 1 - Clients: 100 - Mode: Read Only]
Test 3 of 16
Estimated Trial Run Count: 3
Estimated Test Run-Time: 7 Minutes
Estimated Time To Completion: 1 Hour, 34 Minutes [00:46 UTC Jan 10]
Started Run 1 @ 23:12:48
Started Run 2 @ 23:15:06
Started Run 3 @ 23:17:24
Scaling Factor: 1 - Clients: 100 - Mode: Read Only:
54879.777409
53789.915171
53090.815527
Average: 53920 TPS
Deviation: 1.67%
TPS > Higher Is Better
HDD Fast10 with zil, truenas jail ............................... 53920 |=================================================
HDD Fast10 with zil, 24G RAM, Sync Enabled, Atime off ........... 102739 |=============================================================================================
HDD Fast10 with zil, 8G RAM, Sync Enabled, Atime off ............ 105109 |===============================================================================================
SSD Fast10, 24G RAM, Sync Enabled, Atime off .................... 109128 |==================================================================================================
HDD Fast10 with zil, 8G RAM, Sync Enabled, Atime off, 16K block . 110486 |====================================================================================================
SSD Fast10, 8G RAM, Sync Enabled, Atime off, 16K block .......... 110865 |====================================================================================================
Scaling Factor: 1 - Clients: 100 - Mode: Read Only - Average Latency:
1.822
1.859
1.884
Average: 1.855 ms
Deviation: 1.68%
ms < Lower Is Better
HDD Fast10 with zil, truenas jail ............................... 1.855 |=====================================================================================================
HDD Fast10 with zil, 24G RAM, Sync Enabled, Atime off ........... 0.975 |=====================================================
HDD Fast10 with zil, 8G RAM, Sync Enabled, Atime off ............ 0.952 |====================================================
SSD Fast10, 24G RAM, Sync Enabled, Atime off .................... 0.918 |==================================================
HDD Fast10 with zil, 8G RAM, Sync Enabled, Atime off, 16K block . 0.906 |=================================================
SSD Fast10, 8G RAM, Sync Enabled, Atime off, 16K block .......... 0.905 |=================================================
is the local jail. All the other results are using