Does dbcache=2000 apply separately to mainnet and testnet?
Short answer
If two independent bitcoind processes each load that global setting, each process can allocate its own cache budget.
Operational detail
Measure both processes together before increasing cache on a shared host.
Full procedure
Planning dbcache and RAM for Two Bitcoin Core Processes
https://thamer.org/docs/bitcoin-engine-ops-bitcoin-core-memory-budget
