2012年5月28日 星期一
安裝 wxPython
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
yum install wxPython.x86_64 wxPython-devel.x86_64
Dependencies Resolved
==================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================
Installing:
wxPython x86_64 2.8.9.1-1.el5.rf dag 22 M
wxPython-devel x86_64 2.8.9.1-1.el5.rf dag 479 k
Installing for dependencies:
wxGTK x86_64 2.8.10-1.el5.rf dag 27 M
wxGTK-devel x86_64 2.8.10-1.el5.rf dag 1.1 M
2012年3月29日 星期四
Identify the speed of memory
dmidecode is a tool for dumping a computer’s DMI (some say SMBIOS) table contents in a human-readable format.
dmidecode
# dmidecode 2.11
SMBIOS 2.5 present.
30 structures occupying 1372 bytes.
Table at 0x0009D800.
2012年3月5日 星期一
vm.swappiness
vm.swappiness is a tunable kernel parameter that controls how much the kernel favors swap over RAM. At the source code level, it’s also defined as the tendency to steal mapped memory. A high swappiness value means that the kernel will be more apt to unmap mapped pages. A low swappiness value means the opposite, the kernel will be less apt to unmap mapped pages. In other words, the higher the vm.swappiness value, the more the system will swap.
The default value I’ve seen on both enterprise level Red Hat and SLES servers is 60.
step of modify:
sysctl -w vm.swappiness=0 (default: 60)
swapoff -a
swapon -a
ADD vm.swappiness=0 to /etc/sysctl.conf
References:
What Is the Linux Kernel Parameter vm.swappiness?
http://overinfinityresearch.blogspot.com/2008/09/ubuntu804.html
2012年2月17日 星期五
2011年12月1日 星期四
Usage of nvidia-smi
## show GPU short messages
nvidia-smi -L
## Display GPU detail info
nvidia-smi -q
## Disable GPU ECC memory
nvidia-smi --ecc-config=0
Reboot required.
## Set MODE for compute applications
## 0/DEFAULT
## 1/EXCLUSIVE_THREAD
## 2/PROHIBITED
## 3/EXCLUSIVE_PROCESS
nvidia-smi --compute-mode=3
nvidia-smi -L
## Display GPU detail info
nvidia-smi -q
## Disable GPU ECC memory
nvidia-smi --ecc-config=0
Reboot required.
## Set MODE for compute applications
## 0/DEFAULT
## 1/EXCLUSIVE_THREAD
## 2/PROHIBITED
## 3/EXCLUSIVE_PROCESS
nvidia-smi --compute-mode=3
訂閱:
文章 (Atom)