November 30, 2021 at 4:35 pm
Hi All,
Need you suggestion, our current system is 4 socket - 2 core = 8 CPU, I have read that express will have limited to lesser of 1 socket or 4 cores.
How can we utilize 4 cores. Can we go with 2 socket with 4 cores?
November 30, 2021 at 5:13 pm
I assume your description was of a physical server rather than a VM? 4-socket/2-core: Old Xeons or Opterons?
I believe you'll only get to use 2 cores -- SQL Server Express will ignore the other three CPU sockets. And the memory limitations for Express edition should be considered too. A four-socket server would generally have a lot of memory. Express will only use a fraction of that -- ~ 1 GB .
If SQL Server Express really is sufficient and you don't plan to upgrade anytime soon, you might want to run SQL Server Express in a VM to present only one socket w/ four cores. That way, you could still use the excess CPU & memory for other applications so the server resources aren't wasted. Or you might want to just use a single-socket server for SQL Server Express, and use the 4-socket server where the scalability is better suited.
December 1, 2021 at 4:03 am
Hi,
Thanks for your response. It is a VM runs on windows 2019 with SQL 2019, I believe it is IaaS in the could.
It is a small application and both DB and app are in same host. As of now we are good to run in express, due to license cost.
December 1, 2021 at 7:37 am
If you can only run express due to the cost then you can only run what express can support, sorry but that is the license terms you agreed to when you installed express.
If you want to use the full potential of the server your going to have to put your hand in your pocket and purchase Standard.
So you are limited to 2 cores as the 1 socket takes precedence and 1410MB of RAM.
You need more compute power you need to pay or switch the way the vCPUs are presented to the OS and SQL.
December 1, 2021 at 9:59 am
Hi,
Understood. If I go with CPU to 1 socket with 4 cores, will the SQL use 4 CPUs?
December 1, 2021 at 1:36 pm
Express
Limited to lesser of 1 socket or 4 cores
It should use 4 cores if you present them as 1 socket, 4 cores.
If you would present is as 2 socket with each 2 cores, it will use only 2 ( because the one socket limit )
December 1, 2021 at 6:27 pm
No sql will go for 4 cores.
The lesser of so you can have 1 socket with 4 cores max for express. No more.
December 1, 2021 at 6:36 pm
CPU isn’t going to be your bottleneck soon it’s going to be Max database size and RAM.
1410MB which express will use for the cache is nothing these days and the 10GB per database limit is ok when starting out but a few months go by you’ll be wanting more space.
December 1, 2021 at 7:26 pm
note that limit is per database - nothing preventing the developer to have 20 databases - and the big tables each on their own databases, and a master/driver database with synonyms on it to do all required sql joins in a single db. (there is at least 1 major software house I know of that does this to circumvent the db size for their clients)
cache is what will be the bottleneck depending on the type of queries issued.
December 2, 2021 at 4:13 am
No sql will go for 4 cores.
The lesser of so you can have 1 socket with 4 cores max for express. No more.
Thank you, Client would go with 8 CPU, since it was pervious configuration. We just build new server to migrate, Now I have suggest to go with 1 socket with 4 cores from 2*4.
I will ask them to go with 1*8. So that SQL will use 4 cores and other 4 will be used for OS applications. Correct me if i am wrong.
December 2, 2021 at 7:37 am
If your following any cyber security rules it’s 1 server for 1 purpose.
So you never mix database and application on the same machine.
December 2, 2021 at 7:45 am
If your following any cyber security rules it’s 1 server for 1 purpose.
So you never mix database and application on the same machine.
Ya, it was deigned like that. I cannot separate now. Can you answer the following.
I will ask them to go with 1*8. So that SQL will use 4 cores and other 4 will be used for OS applications. Correct me if i am wrong.
December 2, 2021 at 8:19 am
No the application can use all 8 cores unless you can set some form of affinity in the application.
so if the app maxes out cpu0 then that’s 1 less cpu sql is able to use.
December 2, 2021 at 9:57 am
Thank you, if then I can limit 4 cores to SQL by affinity and 4 cores to applications.
Viewing 15 posts - 1 through 15 (of 16 total)
You must be logged in to reply to this topic. Login to reply