I use 64-bit OS with two CPUs (each of them makes 7 logical processors) and with total number of logical processors equal to 14.
When I run this code I get 2048
SELECT max_workers_count FROM sys.dm_os_sys_info
On the other way, when I use the formula below I get totally different number which is 672
For a 64-bit operating system: Total available logical CPUs <= 4 Max Worker Threads = 512 Total available logical CPUs > 4 Max Worker Threads = 512 + ((logical CPUs - 4)*16)
Can you explain to me why I get different numbers? I tested it on another server and got exact same numbers for both cases.
P.S Thanks to Dan Guzman for his suggestions to check server settings for max worker threads. That is what EXEC sp_configure 'max worker threads' returns: