Dec 08 2008

Intel集成显卡 AGP纹理加速不可用

Category: 技术ssmax @ 10:08:38

公司的机器,集成的X3100显卡,dxdiag报AGP纹理加速不可用,我记得以前如果真的不可用,那么玩游戏会慢很多的,更新了驱动和directx都没有解决,然后上网查了一下,在intel和微软的网站看到的标准答案

微软的说明:

即使 Dxdiag.exe 不能检测 AGP 纹理加速,AGP 纹理加速仍有可用。 某些视频适配器驱动程序实现 AGP 纹理加速和管理他们自己的 AGP 堆内存,以及执行不将其报告给 Microsoft DirectX 运行库。 Dxdiag.exe 使用 GetAvailDriverMemory 函数来查询显示驱动程序。 但是,某些视频适配器驱动程序不响应对此查询。 对于视频适配器驱动程序管理 AGP 纹理加速独立于 DirectX,游戏不受 Dxdiag.exe 失败报告 AGP 纹理加速状态。

Intel的说明:

大致的意思就是旧版(13.x)驱动回报告显卡的非本地内存,而最新的(14.x)xp下面的驱动不会报告,所以就是不可用,而vista下面的最新驱动(15.x)又可以报告了,摆明就是歧视xp用户了。

 

Graphics
AGP Texture Acceleration shows as “Not Available”
 
Symptom(s):

  • The game or application reports AGP is off or disabled.
  • Microsoft DirectX* Diagnostic Tool (dxdiag.exe) shows AGP Texture Acceleration is “Not Available” on the “Display” tab.

 

Cause:

If the graphics driver reports all of the video memory is local, the DirectX AGP Texture Acceleration setting shows “Not Available”. If some or all of the video memory reported is non-local, the AGP Texture Acceleration setting shows “Available.”

Older Intel graphics drivers (Production Versions 13.x) report all of the video memory as non-local video memory (AGP memory). Therefore, the AGP Texture Acceleration setting shows “Available.”

Newer Intel® graphics drivers (Production Versions 14.x) do not report non-local video memory. Instead all of the video memory is reported as local video memory. It is normal and expected behavior that the AGP Texture Acceleration setting shows “Not Available” on computers using newer Intel graphics drivers because non-local video memory is not being reported by the driver.

Note: With the Intel graphics drivers (Production Versions 15.x) on the Windows Vista* operating system, AGP Texture Acceleration shows as “Available.” While the Intel graphics driver still reports only local memory, Windows Vista controls the memory management and interprets the Intel graphics aperture as non-local memory. To further clarify, the graphics aperture is a contiguous virtual memory space where the Intel graphics driver initiates access to the graphics memory.

 

Solution:

Having the AGP Texture Acceleration setting as “Not Available” is a normal and expected behavior for the Intel graphics drivers (Production Versions 14.x). This setting does not need to be made available, enabled, or activated and does not affect the performance of games or 3D applications.

If you have a game or application checking for AGP or AGP Texture Acceleration, it is looking for non-local memory. In general, local video memory is usually faster than non-local. Therefore, Intel recommends contacting the game or application vendor if they have a setting or update that allows the game or application to check for local video memory first.

 

Operating System:

Windows* 2000, Windows* XP Professional, Windows* XP Home Edition, Windows* XP Tablet PC Edition, Windows* XP Media Center Edition


Dec 05 2008

rhel5 转到 centos5

Category: 技术ssmax @ 13:04:57

rhel5的yum source 不好找,还是直接用centos的方便,转换一下就好了

 

It is not hard to switch to CenOS5, just install a couple of rpm packages and your done, but you really do not have to switch. It is possible to add the CentOS repos to your yum configuration. Sample /etc/yum.repos.d/ CentOS5.repo (sample name) file below;

[CentOS5 base]
name=CentOS-5-Base
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=0
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

[CentOS5 updates]
name=CentOS-5-Updates
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=updates
gpgcheck=0
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

[CentOS5plus]
name=CentOS-5-Plus
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=centosplus
gpgcheck=0
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

Notice the CentOS5 repos are by default disabled. This is a good idea, one can enable the repos at anytime using the yum –enablerepo switch. It might be a good idea to import the CentOS5 key (see the example repo file above) and enable the gpgcheck;

rpm –import http://isoredirect.centos.org/centos/5/os/i386/RPM-GPG-KEY-CentOS-5

If you really want to switch to CentOS then download and install the;

For 64-bit based system:

http://isoredirect.centos.org/centos/5/os/x86_64/CentOS/centos-release-5-0.0.el5.centos.2.x86_64.rpm
http://isoredirect.centos.org/centos/5/os/x86_64/CentOS/centos-release-notes-5.0.0-2.x86_64.rpm

For 32-bit based system:

http://isoredirect.centos.org/centos/5/os/i386/CentOS/centos-release-5-2.el5.centos.i386.rpm
http://isoredirect.centos.org/centos/5/os/i386/CentOS/centos-release-notes-5.2-2.i386.rpm

上面的地址会经常变的,升级版本就会变,所以直接到 http://isoredirect.centos.org/centos/5/os/
里面找

A couple of additional packages might be needed but these should get you started nicely. Test install them to find out if you need to add any packages first, example;

rpm -Uvh centos-release*.rpm –test

You might want to remove the Red Hat release packages first, or you may have to use the force or replace packages switch to really install, for example;

rpm -Uvh centos-release*.rpm –force [–replacepkgs]

Of course the example repo file above would not be needed if you really switch. It would be an excellent idea to first unregister any systems from RHN before switching, this way you can re-register other systems on RHN if desired.


Dec 05 2008

ipvs debian内核

Category: 技术ssmax @ 10:51:40

最好把

CONFIG_IP_VS_TAB_BITS=12

调整成

CONFIG_IP_VS_TAB_BITS=20

这样hash表有100多w,可以顶得住大流量的情况了,哎。

如果是同版本的source,直接把/boot/config-xxx 拷贝到源代码目录下面的.config,然后修改就可以了 ,省下了下面make menuconfig的一步。

 

首先要介绍一下,通常其它操作系统的内核编译是比较繁琐的。然而,由于Debian强大的dpkg软件包管理系统,使得内核的升级、编译也变得容易很多。这篇文章将会一步一步教你如何编译自己的,带有grsecurity的Linux 2.6内核。Grsecurity是一个Linux的内核补丁,针对Linux内核的某些安全漏洞进行修补以及安全性的增强。
首先用 apg-get 自动下载并安装一些必要的软件包,包括编译内核需要的kernel-package和ncurses-dev等。如果在内核编译、制作过程中,遇到错误提示说某个软件包不存在的话,请同样使用 apt-get install 命令进行下载安装。

apt-get install build-essential kernel-package ncurses-dev fakeroot wget bzip2 make patch

cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.11.7.tar.bz2
tar -xjf linux-2.611.7.tar.bz2

请到 http://www.kernel.org 查看最新的内核版本。

之后,下载grsecurity。请注意,务必选择与内核版本相应的grsecurity版本。(grsecurity网站)

wget http://www.grsecurity.org/grsecurity-2.1.5-2.6.11.7-200504111924.patch.gz
gunzip grsecurity-2.1.5-2.6.11.7-200504111924.patch.gz

执行以下命令将新内核打上grsecurity补丁

patch -p0 < ./grsecurity-2.1.5-2.6.11.7-200504111924.patch

OK,切换到新内核的目录

cd linux-2.6.11.7

为了节省时间,请执行以下命令从现有内核中获得配置

make oldconfig

执行完此条命令后,会根据新老内核的差异情况,询问你一些问题,如果不确定的话请都是用默认(直接按回车)。

以上步骤完成后,执行内核配置程序

make menuconfig

如果你的Debian有X的话,也可以使用 make xconfig 来进行内核的配置。请自行根据实际情况进行配置,不确定的话请保持默认。

在 Security Options 中,选择 Grsecurity 并将其设置到 medium。然后根据grsecurity的官方推荐,请在 Security Options -> PaX -> PaX Control 中,将 MAC system integration 设置为 [None] 。

至此,内核的配置就算完成了。请按 ESC 多次后退出内核配置页面(在系统询问是否要保存新内核的配置时,当然要选择yes)。

执行以下命令进行新内核的生成!

make-kpkg clean
fakeroot make-kpkg –initrd –append-to-version=noobu –revision=1.0 kernel_image

fakeroot 的作用是在内核的生成过程中暂时性获取root权限。如果你直接是用root帐号操作的话,可以省略fakeroot。–append-to-version定义的是内核的软件包名字,类似 kernel-image-2.6.11.7-noobu 这样。而 –revision定义的是软件包的版本。

现在系统会开始进行新内核的生成,屏幕上会有许多文字闪过。请注意,如果生成过程中出现错误,请执行 make clean 后,用 make menuconfig 重新配置内核。一般都是仔细看错误信息,找到出错的模块,然后将其去除。

内核顺利生成完毕后,会在/usr/src目录下产生一个 deb 包。例如 kernel-image-2.6.11.7-noobu_1.0_i386.deb

 

如果用

fakeroot make-kpkg –initrd –append-to-version=noobu –revision=1.0 binary

就会生成 headers、image、manual、doc、src 所有的包。

 

执行以下命令安装新内核!^_^

dpkg -i kernel-image-2.6.11.7-noobu_1.0_i386.deb

接着Debian会安装新内核并更新Grub的配置文件。重新启动(shutdown -r now)后将会boot到新内核。

用 uname -a 看一下,是不是看到新内核的名字啦?

怎么样,在Debian上重新编译内核是不是很简单很高效呢?
(http://www.fanqiang.com)


Dec 04 2008

旅游

Category: 乱up当秘笈ssmax @ 16:59:12

进来公司之后第一次所谓的部门旅游,每个人自己定行程。。。有个性得不得了,汗啊汗。。。如果自己一个人去还有啥意思?。。。。一团人都是不认识的。。。


Dec 03 2008

鼠标的微动

Category: 乱up当秘笈ssmax @ 21:14:36

记得很久以前找天空买了5个微动欧姆龙,那个时候准备修自己的那只罗技的,买了两百多块的鼠标,玩cs玩得太多,左键就废掉了,可惜到最后都没有回学校拿,都不知道去哪里了。。

这次在淘宝上面买了几只,终于可以修啦,哈哈,烙铁已经差不多不会用了,嘿嘿。


Dec 02 2008

nginx可以支持多少并发连接呢

Category: 乱up当秘笈ssmax @ 16:51:27

现在126的首页已经上了那个flash,nginx连接数一下子上到2k6左右,还是很轻松,每5分钟大概6w多连接,分析ip生成结果要40秒,还是处理得过来,再多的话就不清楚了,嘿嘿。

126的首页果然比科技频道多很多人访问啊,原来才10个连接,哈哈。


Dec 01 2008

linux shell 获取毫秒数 计时

Category: 技术ssmax @ 18:28:39

man date


       %m     month (01..12)

       %M     minute (00..59)

       %n     a newline

       %N     nanoseconds (000000000..999999999)

       %p     locale’s equivalent of either AM or PM; blank if not known

       %P     like %p, but lower case

       %r     locale’s 12-hour clock time (e.g., 11:11:04 PM)

       %R     24-hour hour and minute; same as %H:%M

       %s     seconds since 1970-01-01 00:00:00 UTC

       %S     second (00..60)

%n就是纳秒数,%s是1970以来的秒数,如果只是想要毫秒就自己cut一下就ok了。

1秒s = 1000 毫秒ms

1毫秒ms = 1000 微秒us

1微秒us = 1000 纳秒ns

1纳秒ns = 1000 皮秒ps

1毫秒 就等于 1000 * 1000 纳秒

下面这个我是懒得cut了,直接除以以一百万就是了。

cat count.sh

START=`date +%s%N`;
sleep 3;
END=`date +%s%N`;
echo `expr \( $END – $START \) / 1000000`


« Previous Page