HiveBrain v1.2.0
Get Started
← Back to all entries
patternsqlMinor

Does SQL Server 2008R2 Express actually enforce the memory and CPU limit?

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
enforceexpressthesqllimitand2008r2actuallydoesmemory

Problem

I've been testing SQL Server 2008R2 Express to see if it is limited to 1GB of RAM and 1 CPU.

It certainly seems to be using more than one CPU, as I see spikes on all 4 CPUs in Task Manager when I run a big query. I've selected * from all the tables in the database I have, and it got it to use 1.4GB RAM when looking at the Total Server Memory in perfmon (I gather this is the correct stat to look at). This is showing as 1.5GB Mem Usage on Task Manager (which I gather isn't reliable).

However, it does not seem to want to go any further than 1,441,792KB. This seems odd, so I am not convinced either way.

Anyone have any knowledge of why this might happen and whether the limits are actually enforced?

Solution

SQL Server Express does enforce the limits, but the limits are not what you expect:

  • CPU: SQL Express enforces one socket, not one CPU. Multi-core and hyper-threaded machines will leverage multiple cores on one socket and SQL Express will use 2 or 4 cores on that socket. See Maximum Number of Processors Supported by the Editions of SQL Server:





SQL Server supports the specified number of processor sockets multiplied by the number of logical CPUs in each socket. For example, the following is considered a single processor for purposes of this table:



  • A single-core, hyper-threaded processor with 2 logical CPUs per socket.



  • A dual-core processor with 2 logical CPUs.



  • A quad-core processor with 4 logical CPUs.





  • Memory: Express restricts the max size of the buffer pool to only 1GB. The buffer pool accounts only for some of the overall process memory.



See Thread and Task Architecture and Memory Management Architecture

Context

StackExchange Database Administrators Q#12690, answer score: 9

Revisions (0)

No revisions yet.