寻觅生命中的那一片浅草......

每月存档 六月, 2010

如何找出当前占用磁盘IO最多的进程

linux系统上可以使用(centos 2.6.18-144开始支持),dstat版本至少是:dstat-0.6.7-1.rf.noarch.rpm

安装

wget -c http://linux.web.psi.ch/dist/scientific/5/gfa/all/dstat-0.6.7-1.rf.noarch.rpm

rpm -Uvh dstat-0.6.7-1.rf.noarch.rpm

使用

# dstat -M topio -d -M topbio

—-most-expensive—- -dsk/total- —-most-expensive—-

i/o process      | read  writ|  block i/o process

owl_agent  9642B: 439B|  38k   42k|init       8317B:  41B

nginx         0 :2005B|   0    26k|

gmond         0 :  16k|   0    17k|

gmond         0 : 444B|   0     0 |

其他

低于这个kernel版本的可以参考这个方法:http://www.xaprb.com/blog/2009/08/23/how-to-find-per-process-io-statistics-on-linux/

最后多谢光哥和W总~

转载自:http://www.ourlinux.net/operating-system/how-to-find-per-process-io-statistics-on-linux-2/

telnet on Cygwin

Telnet remote server gives no response on Cygwin

Windows’s telnet doesn’t work on cygwin.We can install inetutils which contains some useful command,such as telnet ftp and so on

inetutils is in Net category.

一个简单的 OpenSolaris 2008.05 VNC 服务器和 GDM 配置示例

我的要求是能够将我的 VNC 客户端连接到一个运行 OpenSolaris 2008.05 的系统,并且能够以超级用户的身份进行登录。我现在已经在一个运行原始 OpenSolaris 2008.05 二进制分发版的系统上成功实现此目标,运行了一个到 snv_91 的完全映像更新之后,在一个运行 OpenSolaris 2008.05 的系统上也实现了此目标。

1. 检查是否安装了 VNC 服务器

VNC 服务器应该已经安装,因为它是 2008.05 二进制分发版的一部分,但我仍然进行了检查。

# pkg info SUNWxvnc
Name: SUNWxvnc
Summary: X11/VNC server
State: Installed
Authority: opensolaris.org (preferred)
Version: 4.1.2
Build Release: 5.11
Branch: 0.91
Packaging Date: Fri Jun 13 17:49:25 2008
Size: 6.3 MB
FMRI: pkg:/SUNWxvnc@4.1.2,5.11-0.91:20080613T174925Z

2. 将此行代码添加到 /etc/services

vnc-server 5900/tcp # Xvnc

3. 按照以下方法编辑 /etc/X11/gdm/custom.conf

[xdmcp]
Enable=true
[security]
DisallowTCP=false
AllowRoot=true
AllowRemoteRoot=true

4. 启用这些服务

# svcadm enable xvnc-inetd
# svcs xvnc-inetd
STATE STIME FMRI
online 16:22:30 svc:/application/x11/xvnc-inetd:default
# svcadm enable gdm
# svcs gdm
STATE STIME FMRI
online 14:43:13 svc:/application/graphical-login/gdm:default

5. 使用 VNC 客户端连接到显示器

您现在应该能够连接到 <hostname>:5900,而且您应该会看到 gdm 登录屏幕。

如果您不能够进行连接,尝试停止并启动这些服务:

# svcadm disable xvnc-inetd gdm
# svcadm enable xvnc-inetd gdm

有一点使我不太满意:当我关闭 VNC 客户端时,与显示器相关联的登录会话似乎退出了。我使用 Solaris 10 和 Solaris Express 时都没有遇到这种现象,它们使用的是 dtlogin,而不是 gdm。如果我找到此问题的解决方案,我会将其添加到本文中。

参考资料:1、2

http://blogs.sun.com/timthomas/entry/a_simple_vnc_server_zh

2010年六月
« 5月   7月 »
 123456
78910111213
14151617181920
21222324252627
282930