Preallocate space for all tempdb files by setting the file size to a value large enough to accommodate the typical workload in the environment. This prevents tempdb from expanding too frequently, which can affect performance. The tempdb database should be set to autogrow, but this should be used to increase disk space for unplanned exceptions.  Create as many files as needed to maximize disk bandwidth. Using multiple files reduces tempdb storage contention and yields significantly better scalability. However, do not create too many files because this can reduce performance and increase management overhead. As a general guideline, create one data file for each CPU on the server (accounting for any affinity mask settings) and then adjust the number of files up or down as necessary. Note that a dual-core CPU is considered to be two CPUs.  Make each data file the same size; this allows for optimal proportional-fill performance.  Put the tempdb database on a fast I/O subsystem. Use disk striping if there are many directly attached disks.  Put the tempdb database on disks that differ from those that are used by user databases.
7. Figure out the number of logical processor cores you have (e.g. two CPUS, with 4 physical cores each, plus hyperthreading enabled = 2 (cpus) x 4 (cores) x 2 (hyperthreading) = 16 logical cores
https://docs.microsoft.com/en-us/sql/relational-databases/databases/tempdb-database?view=sql-server-ver15

Optimizing tempdb Performance

https://docs.microsoft.com/en-us/previous-versions/sql/sql-server-2008-r2/ms175527(v=sql.105)?redirectedfrom=MSDN

A SQL Server DBA myth a day: (12/30) tempdb should always have one data file per processor core
https://www.sqlskills.com/blogs/paul/a-sql-server-dba-myth-a-day-1230-tempdb-should-always-have-one-data-file-per-processor-core/
Использование PITR в распределенных cистемах на базе PostgreSQL | Eren Basak
В Postgres есть возможность восстановления данных на момент времени (PITR), которая позволяет нам "отправляться" в прошлое.
https://www.youtube.com/watch?v=ZLzzKWcVjIo

Глава 24. Резервное копирование и восстановление
24.3. Непрерывное архивирование и восстановление на момент времени (Point-in-Time Recovery, PITR)
https://postgrespro.ru/docs/postgrespro/10/continuous-archiving

И про ошибки:
postgres corruption: ERROR: invalid page in block
http://postgresdesk.blogspot.com/2018/11/postgres-corruption-error-invalid-page.html
Oracle Real Application Testing (RAT)
https://www.oracle.com/manageability/enterprise-manager/technologies/real-application-testing.html

HammerDb
https://hammerdb.com/

TPC-E
TPC Benchmark™ E (TPC-E) is a new On-Line Transaction Processing (OLTP) workload developed by the TPC. The TPC-E benchmark uses a database to model a brokerage firm with customers who generate transactions related to trades, account inquiries, and market research. The brokerage firm in turn interacts with financial markets to execute orders on behalf of the customers and updates relevant account information.
http://www.tpc.org/information/benchmarks5.asp

Вынос из переписки:
Есть имплементации TPC-C like для sysbench (https://github.com/Percona-Lab/sysbench-tpcc)

TPC-E есть для mysql (https://github.com/Percona-Lab/tpce-mysql)

Вот прикольная презентация на эту тему: https://pgday.ru/presentation/205/596498dfae38a.pdf
и запись доклада: https://www.ibs.ru/media/media/dbms-benchmarks-in-a-nutshell-vsye-ob-etalonnom-testirovanii-postgresql/

Profile

robopet3

May 2023

S M T W T F S
 12 3456
78910111213
14151617181920
21222324252627
28293031   

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 4th, 2025 01:52 am
Powered by Dreamwidth Studios