Hi,I have a SQL 2014 installed on Windows 2012 R2 Standard edition."Microsoft SQL Server 2014 - 12.0.2402.0 (X64) Aug 13 2014 11:36:34 Copyright (c) Microsoft Corporation Developer Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: ) (Hypervisor)"Its running on a VM (VM Ware), with 8 processors assigned to the VM and 16GB of memory.The account is set to Lock Pages in memory.SQL Configuration:[quote][b]cost threshold for parallelism[/b] 50[b]max degree of parallelism [/b] 4[b]min server memory (MB) [/b] 1024 [b]max server memory (MB) [/b] 12288 [b]affinity64 mask [/b] 0 [b]affinity I/O mask [/b] 0 [b]affinity64 I/O mask [/b] 0 [b]optimize for ad hoc workloads [/b] 0 [/quote]NOTE:I've changed the optimize for ad hoc workload this morning to see if it will make a difference or not.Also I've set the Max server memory to 10GB as well before, but changed it back to 12GB.The workload type is basically huge extracts that we need to run for the actuarial department. So not a OLTP environment. At this stage it's only one person using the server. Running single queries at a time.Output from DBCC MemoryStatus:[quote]Process/System Counts Value---------------------------------------- --------------------Available Physical Memory 10371735552Available Virtual Memory 140704786894848Available Paging File 53057978368Working Set 125255680Percent of Committed Memory in WS 100Page Faults 1758936System physical memory high 1System physical memory low 0Process physical memory low 0Process virtual memory low 0(10 row(s) affected)Memory Manager KB---------------------------------------- -----------VM Reserved 31497152VM Committed 153672Locked Pages Allocated 5027632Large Pages Allocated 83968Emergency Memory 1024Emergency Memory In Use 16Target Committed 12582912Current Committed 5181304Pages Allocated 2271056Pages Reserved 0Pages Free 2698144Pages In Use 319192Page Alloc Potential 11634576NUMA Growth Phase 0Last OOM Factor 1Last OS Error 0(16 row(s) affected)Memory node Id = 0 KB---------------------------------------- -----------VM Reserved 31497088VM Committed 153652Locked Pages Allocated 5027632Pages Allocated 2271056Pages Free 2698144Target Committed 12582888Current Committed 5181288Foreign Committed 0Away Committed 0Taken Away Committed 0(10 row(s) affected)Memory node Id = 64 KB---------------------------------------- -----------VM Reserved 0VM Committed 20Locked Pages Allocated 0(3 row(s) affected)MEMORYCLERK_SQLGENERAL (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 6912(6 row(s) affected)MEMORYCLERK_SQLBUFFERPOOL (node 0) KB---------------------------------------- -----------VM Reserved 12460608VM Committed 16384Locked Pages Allocated 52440SM Reserved 0SM Committed 0Pages Allocated 2164096(6 row(s) affected)MEMORYCLERK_SQLQUERYEXEC (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 88(6 row(s) affected)MEMORYCLERK_SQLOPTIMIZER (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 1008(6 row(s) affected)MEMORYCLERK_QUERYDISKSTORE (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 480(6 row(s) affected)MEMORYCLERK_SQLUTILITIES (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 128(6 row(s) affected)MEMORYCLERK_SQLSTORENG (node 0) KB---------------------------------------- -----------VM Reserved 1088VM Committed 0Locked Pages Allocated 1088SM Reserved 0SM Committed 0Pages Allocated 16392(6 row(s) affected)MEMORYCLERK_SQLCONNECTIONPOOL (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 1456(6 row(s) affected)MEMORYCLERK_SQLCLR (node 0) KB---------------------------------------- -----------VM Reserved 6300544VM Committed 6752Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 20728(6 row(s) affected)MEMORYCLERK_SQLSERVICEBROKER (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 528(6 row(s) affected)MEMORYCLERK_SQLHTTP (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 8(6 row(s) affected)MEMORYCLERK_SNI (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 64(6 row(s) affected)MEMORYCLERK_SNI (node 64) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 16(6 row(s) affected)MEMORYCLERK_SNI (Total) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 80(6 row(s) affected)MEMORYCLERK_FULLTEXT (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 296(6 row(s) affected)MEMORYCLERK_SQLXP (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 16(6 row(s) affected)MEMORYCLERK_BHF (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 176(6 row(s) affected)MEMORYCLERK_XE_BUFFER (node 0) KB---------------------------------------- -----------VM Reserved 21504VM Committed 21504Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 0(6 row(s) affected)MEMORYCLERK_XTP (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 1672(6 row(s) affected)MEMORYCLERK_HOST (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 16(6 row(s) affected)MEMORYCLERK_SOSNODE (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 32536(6 row(s) affected)MEMORYCLERK_SOSNODE (node 64) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 2488(6 row(s) affected)MEMORYCLERK_SOSNODE (Total) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 35024(6 row(s) affected)MEMORYCLERK_SOSOS (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 192(6 row(s) affected)MEMORYCLERK_SOSMEMMANAGER (node 0) KB---------------------------------------- -----------VM Reserved 44992VM Committed 39936Locked Pages Allocated 4904SM Reserved 0SM Committed 0Pages Allocated 0(6 row(s) affected)MEMORYCLERK_FULLTEXT_SHMEM (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 192SM Committed 192Pages Allocated 0(6 row(s) affected)MEMORYCLERK_SQLSERVICEBROKERTRANSPORT (node 0) KB---------------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 200(6 row(s) affected)MEMORYCLERK_FSAGENT (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 8(6 row(s) affected)MEMORYCLERK_FILETABLE (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 16(6 row(s) affected)MEMORYCLERK_XE (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 5376(6 row(s) affected)MEMORYCLERK_SQLLOGPOOL (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 2144(6 row(s) affected)MEMORYCLERK_LWC (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 64(6 row(s) affected)MEMORYCLERK_FSCHUNKER (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 48(6 row(s) affected)CACHESTORE_OBJCP (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 1344(6 row(s) affected)CACHESTORE_SQLCP (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 3240(6 row(s) affected)CACHESTORE_PHDR (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 1640(6 row(s) affected)CACHESTORE_XPROC (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 24(6 row(s) affected)CACHESTORE_TEMPTABLES (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 16(6 row(s) affected)CACHESTORE_NOTIF (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 16(6 row(s) affected)CACHESTORE_VIEWDEFINITIONS (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 16(6 row(s) affected)CACHESTORE_XMLDBTYPE (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 8(6 row(s) affected)CACHESTORE_XMLDBELEMENT (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 8(6 row(s) affected)CACHESTORE_XMLDBATTRIBUTE (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 8(6 row(s) affected)CACHESTORE_STACKFRAMES (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 8(6 row(s) affected)CACHESTORE_STACKFRAMES (node 64) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 8(6 row(s) affected)CACHESTORE_STACKFRAMES (Total) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 16(6 row(s) affected)CACHESTORE_BROKERTBLACS (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 40(6 row(s) affected)CACHESTORE_BROKERKEK (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 8(6 row(s) affected)CACHESTORE_BROKERDSH (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 8(6 row(s) affected)CACHESTORE_BROKERUSERCERTLOOKUP (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 8(6 row(s) affected)CACHESTORE_BROKERRSB (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 8(6 row(s) affected)CACHESTORE_BROKERREADONLY (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 32(6 row(s) affected)CACHESTORE_BROKERTO (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 8(6 row(s) affected)CACHESTORE_EVENTS (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 16(6 row(s) affected)CACHESTORE_SEHOBTCOLUMNATTRIBUTE (node 0) KB----------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 168(6 row(s) affected)CACHESTORE_SYSTEMROWSET (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 640(6 row(s) affected)CACHESTORE_CONVPRI (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 32(6 row(s) affected)CACHESTORE_FULLTEXTSTOPLIST (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 32(6 row(s) affected)CACHESTORE_SEARCHPROPERTYLIST (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 16(6 row(s) affected)CACHESTORE_COLUMNSTOREOBJECTPOOL (node 0) KB----------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 64(6 row(s) affected)CACHESTORE_XML_SELECTIVE_DG (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 8(6 row(s) affected)USERSTORE_SCHEMAMGR (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 4360(6 row(s) affected)USERSTORE_DBMETADATA (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 432(6 row(s) affected)USERSTORE_TOKENPERM (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 1472(6 row(s) affected)USERSTORE_OBJPERM (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 792(6 row(s) affected)USERSTORE_SXC (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 32(6 row(s) affected)USERSTORE_SXC (node 64) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 8(6 row(s) affected)USERSTORE_SXC (Total) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 40(6 row(s) affected)USERSTORE_QDSSTMT (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 128(6 row(s) affected)OBJECTSTORE_LBSS (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 224(6 row(s) affected)OBJECTSTORE_SNI_PACKET (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 952(6 row(s) affected)OBJECTSTORE_SNI_PACKET (node 64) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 56(6 row(s) affected)OBJECTSTORE_SNI_PACKET (Total) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 1008(6 row(s) affected)OBJECTSTORE_SERVICE_BROKER (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 544(6 row(s) affected)OBJECTSTORE_LOCK_MANAGER (node 0) KB---------------------------------------- -----------VM Reserved 32768VM Committed 32768Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 3584(6 row(s) affected)OBJECTSTORE_LOCK_MANAGER (node 64) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 24(6 row(s) affected)OBJECTSTORE_LOCK_MANAGER (Total) KB---------------------------------------- -----------VM Reserved 32768VM Committed 32768Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 3608(6 row(s) affected)OBJECTSTORE_SECAUDIT_EVENT_BUFFER (node 0) KB------------------------------------------ -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 16(6 row(s) affected)OBJECTSTORE_XACT_CACHE (node 0) KB---------------------------------------- -----------VM Reserved 0VM Committed 0Locked Pages Allocated 0SM Reserved 0SM Committed 0Pages Allocated 152(6 row(s) affected)Buffer Pool Value---------------------------------------- -----------Database 270488Simulated 18642Target 32751616Dirty 673In IO 0Latched 0Page Life Expectancy 48343(7 row(s) affected)Procedure Cache Value---------------------------------------- -----------TotalProcs 43TotalPages 781InUsePages 0(3 row(s) affected)Global Memory Objects Pages---------------------------------------- -----------Resource 410Locks 451XDES 65DirtyPageTracking 8SETLS 8SubpDesc Allocators 8SE SchemaManager 250SE Column Metadata Cache 294SE Column Metadata Cache Store 7SQLCache 213Replication 2ServerGlobal 52XP Global 2SortTables 3(14 row(s) affected)Query Memory Objects (internal) Value---------------------------------------- -----------Grants 0Waiting 0Available 1045252Current Max 1045252Future Max 1045252Physical Max 1126927Next Request 0Waiting For 0Cost 0Timeout 0Wait Time 0(11 row(s) affected)Small Query Memory Objects (internal) Value---------------------------------------- -----------Grants 0Waiting 0Available 55013Current Max 55013Future Max 55013(5 row(s) affected)Remote Query Memory Objects (internal) Value---------------------------------------- -----------Grants 0Waiting 0Available 563463Current Max 563463(4 row(s) affected)Query Memory Objects (default) Value---------------------------------------- -----------Grants 0Waiting 0Available 1122843Current Max 1122843Future Max 1122843Physical Max 1122843Next Request 0Waiting For 0Cost 0Timeout 0Wait Time 0(11 row(s) affected)Small Query Memory Objects (default) Value---------------------------------------- -----------Grants 0Waiting 0Available 59097Current Max 59097Future Max 59097(5 row(s) affected)Remote Query Memory Objects (default) Value---------------------------------------- -----------Grants 0Waiting 0Available 561421Current Max 561421(4 row(s) affected)Optimization Queue (internal) Value---------------------------------------- --------------------Overall Memory 10328047616Target Memory 9697820672Last Notification 1Timeout 6Early Termination Factor 5(5 row(s) affected)Small Gateway (internal) Value---------------------------------------- -----------Configured Units 32Available Units 32Acquires 0Waiters 0Threshold Factor 380000Threshold 380000(6 row(s) affected)Medium Gateway (internal) Value---------------------------------------- -----------Configured Units 8Available Units 8Acquires 0Waiters 0Threshold Factor 12Threshold -1(6 row(s) affected)Big Gateway (internal) Value---------------------------------------- -----------Configured Units 1Available Units 1Acquires 0Waiters 0Threshold Factor 8Threshold -1(6 row(s) affected)Optimization Queue (default) Value---------------------------------------- --------------------Overall Memory 10328047616Target Memory 9615556608Last Notification 1Timeout 6Early Termination Factor 5(5 row(s) affected)Small Gateway (default) Value---------------------------------------- -----------Configured Units 32Available Units 32Acquires 0Waiters 0Threshold Factor 380000Threshold 380000(6 row(s) affected)Medium Gateway (default) Value---------------------------------------- -----------Configured Units 8Available Units 8Acquires 0Waiters 0Threshold Factor 12Threshold -1(6 row(s) affected)Big Gateway (default) Value---------------------------------------- -----------Configured Units 1Available Units 1Acquires 0Waiters 0Threshold Factor 8Threshold -1(6 row(s) affected)Memory Pool Manager KB---------------------------------------- -----------Reserved Current 0Reserved Limit 11634688(2 row(s) affected)Memory Pool (internal) KB---------------------------------------- -----------Allocations 305368Predicted 305368Private Target 0Private Limit 0Total Target 11953760Total Limit 11953760OOM Count 0(7 row(s) affected)MEMORYBROKER_FOR_CACHE (internal) KB---------------------------------------- -----------Allocations 10072Rate 0Target Allocations 9399080Future Allocations 0Overall 10085984Last Notification 1(6 row(s) affected)MEMORYBROKER_FOR_STEAL (internal) KB---------------------------------------- -----------Allocations 81520Rate 0Target Allocations 9470528Future Allocations 0Overall 10085984Last Notification 1(6 row(s) affected)MEMORYBROKER_FOR_RESERVE (internal) KB---------------------------------------- -----------Allocations 0Rate 0Target Allocations 9389008Future Allocations 0Overall 10085984Last Notification 1(6 row(s) affected)MEMORYBROKER_FOR_COMMITTED (internal) KB---------------------------------------- -----------Allocations 212104Rate 0Target Allocations 9601112Future Allocations 0Overall 10085984Last Notification 1(6 row(s) affected)MEMORYBROKER_FOR_HASHED_DATA_PAGES (internal) KB--------------------------------------------- -----------Allocations 0Rate 0Target Allocations 9389008Future Allocations 0Overall 10085984Last Notification 1(6 row(s) affected)MEMORYBROKER_FOR_XTP (internal) KB---------------------------------------- -----------Allocations 1672Rate 0Target Allocations 9390680Future Allocations 0Overall 10085984Last Notification 1(6 row(s) affected)Memory Pool (default) KB---------------------------------------- -----------Allocations 13704Predicted 2259384Private Target 0Private Limit 0Total Target 11953760Total Limit 11953760OOM Count 0(7 row(s) affected)MEMORYBROKER_FOR_CACHE (default) KB---------------------------------------- -----------Allocations 12520Rate 0Target Allocations 9401528Future Allocations 0Overall 10085984Last Notification 1(6 row(s) affected)MEMORYBROKER_FOR_STEAL (default) KB---------------------------------------- -----------Allocations 1184Rate 0Target Allocations 9390192Future Allocations 0Overall 10085984Last Notification 1(6 row(s) affected)MEMORYBROKER_FOR_RESERVE (default) KB---------------------------------------- -----------Allocations 0Rate 0Target Allocations 10085984Future Allocations 2245680Overall 10085984Last Notification 1(6 row(s) affected)MEMORYBROKER_FOR_HASHED_DATA_PAGES (default) KB-------------------------------------------- -----------Allocations 0Rate 0Target Allocations 9389008Future Allocations 0Overall 10085984Last Notification 1(6 row(s) affected)MEMORYBROKER_FOR_XTP (default) KB---------------------------------------- -----------Allocations 0Rate 0Target Allocations 9389008Future Allocations 0Overall 10085984Last Notification 1(6 row(s) affected)Memory Broker Clerk (Buffer Pool) Pages---------------------------------------- ----------------------Total 270488Simulated 18642Simulation Benefit 0Internal Benefit 0External Benefit 0Value Of Memory 0Periodic Freed 0Internal Freed 0(8 row(s) affected)DBCC execution completed. If DBCC printed error messages, contact your system administrator.[/quote]Now the problems:The initial run on the extracts is running within reasonable time. But after that the server is crawling. Until the server is bounced - which was only done as a test. This is on different queries, so its not a single query that we can point out causing the issues.The second problem is we get the error:[quote]There is insufficient system memory in resource pool 'default' to run this query.[/quote]I even get the above error when I just try to get the Execution plan of a rather big query. The query will run for 1-2 hours trying to build the execution plan, then fail with the above error. - Note, I'm not running the query - simply trying to get the execution plan. This particular query will give me the execution plan within a second on the 2008 server.The third problem:When doing Selects on some queries is damn fast - until we do a SELECT INTO, then the query turns from a sub second query to multiple minute queries. (Result sets from 10k+)We want to move from SQL 2008 R2 on which these queries all run fine without any issues. (The SQL 2008 only have 5GB of memory assigned to SQL & 3 GB to windows).I know that without queries it's a bit difficult to trouble shoot, but because the problem is over multiple queries (most of the queries) it will be a bit difficult to build test cases for each one. And I think this is more an environment issue than a query issue.Ok what have tried:I know some of these are not best practice to do... :-(1. Reduced the max memory to at least 10GB. (now back to 12GB)2. I initially thought that the issues was with parallelism, as the wait stats was showing that CXPacket was quite high & the wait times on the queries was also showing 100% to CPU. so I've changed the default setting for [b]cost threshold for parallelism to 50[/b] and also the [b]max degree of parallelism to 4[/b]. This didn't really improved the performance much.3. Made sure that the Statistics are Updated.4. The database compatibility level of the DB = 120. (I've tried it as 100 & 110)5. Ran DBCC FREEPROCCACHE (which didn't help either) & DBCC FREESYSTEMCACHE ('all'). (Just to see if I can generate a new execution plan within a reasonable time).6. I've checked the % Pagefile usage - this is about 1% peaking at 1.5%.I've read the following articles trying to resolve this:http://sqlblog.com/blogs/jonathan_kehayias/archive/2009/07/07/understanding-the-vas-reservation-aka-memtoleave-in-sql-server.aspxhttp://voluntarydba.com/post/2013/03/19/Is-my-SQL-Servers-memory-over-committed.aspxAnd some other post that I don't have the links for anymore, but basically boils down to the same as these two.Any help to get this resolved this will be appreciated.
↧