sql2000因服务器的cpu内核数过多导致的性能变慢

xeon Posted in Computer Technical
0

前几天遇到一个case,同样的应用在低端服务器上运行正常,一旦上到双socket的服务器上性能反而变慢。那天灵感闪过脑际,google了一下。

由于sql2000开发过早,对服务器多核支持有限,可以采取以下方法解决。

方法一:

运行以下语句:

sp_configure ‘show advanced options’, 1

go

reconfigure with override

go

sp_configure ‘max degree of parallelism’, 4

go

reconfigure with override

go

sql语句作用修改了在SQL Server中一个语句所使用的最多的CPU数(直接翻译就是最大并行度)。默认值是0,就是有几个空闲的CPU用几个CPU。设为4后,一个语句最多使用4个CPU。这样线程间通信的损耗就降下来了。降低最大并行度后,问题解决。

图形界面为:

  1. 停掉SQL所有服务
  2. 启动SQL Enterprise Manager
  3. 右键单击并选择”属性”在 <SQLSERVERNAME>
  4. 按一下”处理器”选项卡
  5. 找到部分”Parallelism”
  6. 部分下的”指定要使用的处理器数目的查询的并行执行”更改从缺省(“使用所有可用的处理器)来使用”
  7. 更改当前编号(例如, “8”)的处理器 2 (两个)
  8. 单击确定。
  9. 重新启动SQL Server
  10. 测试

方法二:

关掉CPU超线程,以降低CPU内核数。

 

建议使用方法一,毕竟不会影响其他应用和服务器的整个性能。举一反三,遇到老旧程序在新平台下运行缓慢都可采取这种方法来解决。

 

参考文献:

http://www.cnblogs.com/caiyuanzi/articles/1748400.html

http://www-01.ibm.com/support/docview.wss?uid=swg21371449

 

高性能运算中存储的选择

xeon Posted in Computer Technical,Tags: , , ,
0

http://zh.community.dell.com/techcenter/b/weblog/archive/2011/12/20/dell-hpc.aspx

这个文章中分析的是高性能机器中存储的选择。

架设存储采取直连拓扑,就会产生如下的问题:
1.每个节点连接设备的cost
2.交换机的cost和性能的衰减
3.Lun设备共享需要文件系统来控制,而商业文件系统需要cost

当节点超过100个,那么这三个问题越来越严重。

这里提到的第三个问题其实是一个很多人不太了解的概念,工作中会有很多用户理解为共享Lun设备即可以实现共享的效果,其实对单位时间来说,每个Lun设备都只能是一个独占设备,对于相互的共享和读取必须靠文件系统来实现。

对于直连,所有主机访问到的存储是块设备。而NAS,访问到的确是目录。一个是块级别的操作,一个是文件级的操作。对于高性能机器中存储的选择作者认为应该选择文件极的操作。

另外作者也对光纤存储和iscsi存储做出了阐释。

FC SAN存储的优势:

• 由于具有更高的性能和可靠性,通常情况下存储的性能表现最好

• 独立的光纤通道网络更安全,还有LUN zoning和LUN masking等访问控制机制

• 支持Boot from SAN (从存储启动系统),服务器本地不再需要硬盘

• 如果还有基于FC SAN的磁带系统,可以做到LAN Free的备份机制

• 扩展方便,只要留有足够的FC端口,主机与存储LUN之间的挂载可以很灵活

FC SAN存储的不足:

• 从零开始构建的话,部署成本会很高

• 需要特殊的、昂贵的配件,比如交换机、线缆和HBA卡

• 实施和管理也许更复杂,通常需要专职的存储管理员

• 可用的安全控制功能较少,实现认证和加密比较复杂

iSCSI存储的优势:

• iSCSI是光纤通道存储的低成本替代方案,它使用标准的以太网组件,iSCSI磁盘阵列的价格通常也低于光纤阵列

• 基于软件的initiator简单易用而且非常便宜,基于硬件的initiator则可以提供更好的性能

• 像光纤通道一样,iSCSI是基于block的块存储系统,在VMware vSphere环境下可以使用VMFS卷

• 升级到10 Gbps以太网之后,速度和性能将有大幅度提升

• 部署和管理iSCSI不需要特殊的培训和特殊技能

• 支持CHAP认证和加密等安全机制,也支持multi path多路径这样的可以增加带宽和可靠性的技术

• 部署起来比光纤通道更快,不需要专业的存储管理员

iSCSI存储的不足:

• 因为多数情况下iSCSI使用的都是软件initiator,因此它会增加服务器CPU的负担

• 性能通常不如FC SAN

• 通常无法扩展到像光纤通道存储系统那样大的规模

• 网络延迟和非iSCSI网络流量的干扰都会影响iSCSI的传输性能

 

Produkey

xeon Posted in Computer Technical
0

此软件可以保存所有微软产品的序列号,Mark一下。

http://www.onlinedown.net/soft/46740.htm

iscsi在linux上面的配置

xeon Posted in Computer Technical,Tags: ,
0

存储通讯协议中,从最早的scsi到普及至今的光纤,现在还流行ISCSI,简单的说就是将scsi协议走在TCP/IP上,随着以太网的迅猛发展,ISCSI也成为了许多业界看好的一个标准。

根据我的操作,ISCSI相对于光纤还是有许多缺点的,大概有以下几点:

1.配置复杂,一堆的IP,比较容易混淆,多路径,不同网段等等

2.如果无专门的HBA卡,使用软ISCSI,稍微占用CPU的资源

3.没有FC那么直观,交换机需要做调优

 

简单介绍一下ISCSI在linux的配置。

1.安装iscsi-initiator(使用软ISCSI)
2.安装多路径管理软件,根据不同的版本或安装系统的,或安装硬件厂商所配的。
3.设置IP,加入session

4.修改多路径,绑定UUID

5.格式化,并加入fstab引导选项。

 

以下是md3200i的大概配置方法:

 

-install iscsi-initiator
-#service iscsi start
-#chkconfig –list iscsi
-#chkconfig –add iscsi
-#chkconfig iscsi on
-also need do for multipath
-set network ip
-Discovery session   #iscsiadm -m discovery -t st -p <IP>:3260
-Log inon #iscsiadm -m node -l (logon all session )or #iscsiadm -m node -l T <Target Name> -l -p <IP>:3260
-check session status  #iscsiadm -m session -i
-# service iscsi restart (confirm iscsi connect)
-注释掉multipath.conf, start multipath
-#service multipathd restart
-#multipath -v2
-found UUID, config multipath.conf
-#mke2fs -j -v /dev/mapper/**
-config /etc/fstab     add “_netdev,defaults” for defaults

web访问ESX console黑屏

xeon Posted in Computer Technical,Tags: , ,
0

现象:昨天做实验遇到一个问题,IE访问ESX的labmanger console界面是黑屏,无法正常显示,必须全屏才能显示。

故障判断:

1.IE出现问题黑屏,firefox 8.0提示要下载插件,但下载失败。

2.手动加载IE插件会提示:Bad Handle 0xab8, the handle is invalid 和 this executable should not be invoked directly.

3.将labmanger url加入信任列表,无效

4.用管理员权限运行,无效。

 

解决方法:

google了好久,终于找到这个链接比较全的Q&A :http://support.theenterprisecloud.com/kb/default.asp?id=459

1.Firefox需要使用3.6的版本,下载插件成功,没有用网址上给的插件

2.IE重新将信任网站中的有关的active X,全部启用。

3.如果是原来正常后来出问题的,删除IE的加载的VMware console插件,重新安装。

附上Firefox的兼容列表(win7),其他系统的在Q&A中都有

 

PCI slot

xeon Posted in Computer Technical,Tags:
0

现在服务器上很少有PCI slot了,PCI是有分3.3V和5V的,在金手指上对应的缺口不一样。如果两个缺口都有就是兼容两种电压的PCI插槽。

同样slot上也有相同的配置。这里引用维基百科的一张图,看图就明白了。

 

另外附上各种老式的slot图片:

网络共享服务

xeon Posted in Computer Technical,Tags: , , ,
0

问题:同一个工作组下的其他用户无法访问此计算机的windows共享文件夹。

查询得知:网络共享是由三个服务组成的。

server
workstation
computer browser

发现此问题是由于computer browser服务自动关闭引起,找到问题所在手动启动解决问题。

MD3600I部署笔记

xeon Posted in Computer Technical,Tags: , ,
0

仔细研究了一下官方的部署手册,发现很多平常不懂的东西其实手册上都讲得很清楚了。还是要多看文档。

最近要搞一个case,所以记录了for linux的,windows的就略过。

If you are using DHCP (root users only):
1.Edit the /etc/sysconfig/network file:
NETWORKING=yes HOSTNAME=mymachine.mycompany.com
2.Edit the configuration file for the connection you want to configure, either
/etc/sysconfig/network-scripts/ifcfg-ethX (for Red Hat Enterprise Linux)
or /etc/sysconfig/network/ifcfg-eth-id-XX:XX:XX:XX:XX (for SUSE
Enterprise Linux).
BOOTPROTO=dhcp
Also, verify that an IP address and netmask are not defined.
3.Restart network services using the following command:
/etc/init.d/network  restart

If you are using a static IP address (root users only):
1.Edit the /etc/sysconfig/network file as follows:
NETWORKING=yes HOSTNAME=mymachine.mycompany.com
GATEWAY=255.255.255.0
2.Edit the configuration file for the connection you want to configure, either
/etc/sysconfig/network-scripts/ifcfg-ethX (for Red Hat Enterprise Linux)
or /etc/sysconfig/network/ifcfg-eth-id-XX:XX:XX:XX:XX (for SUSE
Enterprise Linux).
BOOTPROTO=static BROADCAST=192.168.1.255 IPADDR=
192.168.1.100 NETMASK=255.255.255.0 NETWORK=
192.168.1.0 ONBOOT=yes TYPE=Ethernet
HWADDR=XX:XX:XX:XX:XX:XX GATEWAY=192.168.1.1
3.Restart network services using the following command:
/etc/init.d/network restart

Linux—Two options are available:
– To perform these tasks using the command line, refer to the
Configuration: Device Mapper Multipath for Linux chapter in the
Owner’s Manual.
– To utilize a graphical interface solution, Dell has created the Device
Mapper Utility (DMU), which provides the ability to discover and
manage the configuration of Linux Device Mapper devices for Dell
Modular Disk series storage arrays. This utility helps you set up and
manage partitions on the virtual disks of storage arrays mapped to a
Linux server. Go to http://support.dell.com/support/downloads/, and
search for DMU. Download and run the utility. For more details on
the use of DMU, refer to the online help files within the utility.

Config iscsi in linux
1 Make a copy of the default /etc/iscsi/iscsid.conf file by saving it to another
directory of your choice.

2 Edit the following entries in the /etc/iscsi/iscsid.conf file:
a.Edit or verify that the node.startup = manual line is disabled.
b.Edit or verify that the node.startup = automatic line is
enabled. This enables automatic startup of the service at boot time.
c.Verify that the following time-out value is set to 30:
node.session.timeo.replacement_timeout = 30
d.Save and close the /etc/iscsi/iscsid.conf file.

3 From the console, restart the iSCSI service with the following command:
service iscsi start

4 Verify that the iSCSI service is running during boot using the following
command from the console:
chkconfig  iscsi  on

5 To display the available iSCSI targets at the specified IP address, use the
following command:
iscsiadm –m discovery –t st -p
<IP_address_of_iSCSI_port>

6 After target discovery, use the following command to manually log in:
iscsiadm -m node –l
This login is performed automatically at startup if automatic startup is
enabled.

7 Manually log out of the session using the following command:
iscsiadm -m node -T <initiator_username> -p
<target_ip> -u

To shut down iSCSI services:
1 Stop all I/O.
2 Unmount all correlated file systems. Stop iSCSI services by running the
following command:
/etc/init.d/open-iscsi stop

 

参考文档:

http://support.dell.com/support/edocs/SYSTEMS/md3600i/en/DG/PDF/DG_en.pdf(英文)

http://support.dell.com/support/edocs/SYSTEMS/md3600i/cs/DG/PDF/DG_cs.pdf(中文)

Process Monitor

xeon Posted in Computer Technical,Tags:
0

看到这里用Process Monitor解决了个IE的问题。

看起来这东西还不错。记录一下,下次遇到真实的案例试试这个软件。

http://technet.microsoft.com/en-us/sysinternals/bb896645

Vmware的物理机迁移

xeon Posted in Computer Technical,Tags: , ,
0

现在虚拟化很流行啊,上次培训鼓弄了一下,感觉原来可以这样玩。

昨天想到一个问题,如果原来运行的机器需要迁移到VM上,究竟需要怎么做?

VM推出了两个软件:vmware vcenter converter standalone,vmware vcenter converter(module of vmware vcenter)

具体区别见:http://www.vmware.com/files/pdf/VMware-vCenter-Converter-DS-EN.pdf

接着还找到了它们两个的user guide:

http://www.vmware.com/pdf/vsp_vcc_421_admin_guide.pdf

http://www.vmware.com/pdf/convsa_43_guide.pdf

 

另外还有从虚拟机迁移到物理机,这个就涉及到硬件驱动的问题了。

VMware也有相关文档:http://www.vmware.com/support/v2p/doc/V2P_TechNote.pdf

 

总之,迁移来迁移去都是一门学问啊。暂时也没机器做实验,只能先记录一下。