简体   繁体   English

SQL Server虚拟内存使用情况和性能

[英]SQL server virtual memory usage and performance

I have a very large DB used mostly for analytics. 我有一个非常大的数据库,主要用于分析。 The performance overall is very sluggish. 整体表现非常缓慢。 I just noticed that when running the query below, the amount of virtual memory used greatly exceeds the amount of physical memory available. 我只是注意到,当运行下面的查询时,使用的虚拟内存量大大超过了可用的物理内存量。 Currently, physical memory is 10GB (10238k bytes) whereas the virtual memory returns significantly more - 8388607k bytes. 当前,物理内存为10GB(10238k字节),而虚拟内存返回的更多得多-8388607k字节。 That seems really wrong, but I'm at a bit of a loss on how to proceed. 这似乎确实是错误的,但是我对如何进行感到有点茫然。

USE [master];
GO
select 
    cpu_count
,    hyperthread_ratio
,    physical_memory_in_bytes / 1048576 as 'mem_MB'
,    virtual_memory_in_bytes / 1048576 as 'virtual_mem_MB'
,    max_workers_count
,    os_error_mode
,    os_priority_class
from 
    sys.dm_os_sys_info 

Are you having general problems on this box or problems with a specific query? 您在此框上遇到一般性问题还是特定查询存在问题? In most cases, query optimization is best asked here, but everything else about general SQL Server performance profiles belongs on serverfault.com, especially OS/Server/hardware configuration. 在大多数情况下,最好在这里询问查询优化,但是有关常规SQL Server性能配置文件的所有其他信息都属于serverfault.com,尤其是OS / Server /硬件配置。

I have a very large DB used mostly for analytics. 我有一个非常大的数据库,主要用于分析。

OLAP: Memory and CPU intensive. OLAP:占用大量内存和CPU。

Currently, physical memory is 10GB 当前,物理内存为10GB

Small server: Does not compute. 小型服务器:不计算。

That seems really wrong, but I'm at a bit of a loss on how to proceed 这似乎确实是错误的,但是我在如何进行上有点茫然

Upgrade server. 升级服务器。 A Very large dDatabase is 100+Gigabyte - likely these days 1000+ Gigabyte. 很大的dDatabase是100 + Gigabyte-目前可能是1000 + Gigabyte。 10Gb RAM for that uner analytical circumstance: joke, not server. 在这种分析环境下需要10 Gb RAM:开玩笑,而不是服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM