From d98556b8a1d178eb89ebdd2d6a76bee02eda1179 Mon Sep 17 00:00:00 2001 From: wxy Date: Thu, 16 Oct 2014 14:21:31 +0800 Subject: [PATCH] =?UTF-8?q?PUB:Sysstat=20=E2=80=93=20All-in-One=20System?= =?UTF-8?q?=20Performance=20and=20Usage=20Activity=20Monitoring=20Tool=20F?= =?UTF-8?q?or=20Linux=20&&=20=20Linux=20Performance=20Monitoring=20with=20?= =?UTF-8?q?Vmstat=20and=20Iostat=20Commands?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @cvsher --- ... Monitoring with Vmstat and Iostat Commands.md | 15 +++---- ... Usage Activity Monitoring Tool For Linux.md | 40 ++++++++++--------- 2 files changed, 29 insertions(+), 26 deletions(-) rename translated/tech/Linux Performance Monitoring with Vmstat and Iostat Commands 翻译完成.md => published/Linux Performance Monitoring with Vmstat and Iostat Commands.md (96%) rename {translated/tech => published}/Sysstat – All-in-One System Performance and Usage Activity Monitoring Tool For Linux.md (81%) diff --git a/translated/tech/Linux Performance Monitoring with Vmstat and Iostat Commands 翻译完成.md b/published/Linux Performance Monitoring with Vmstat and Iostat Commands.md similarity index 96% rename from translated/tech/Linux Performance Monitoring with Vmstat and Iostat Commands 翻译完成.md rename to published/Linux Performance Monitoring with Vmstat and Iostat Commands.md index 97325f964b..70e334e9d9 100644 --- a/translated/tech/Linux Performance Monitoring with Vmstat and Iostat Commands 翻译完成.md +++ b/published/Linux Performance Monitoring with Vmstat and Iostat Commands.md @@ -1,11 +1,12 @@ -使用Vmstat和Iostat命令进行Linux性能监控 +使用vmstat和iostat命令进行Linux性能监控 ================================================================ -这是我们正在进行的**Linux**命令和性能监控系列的一部分。**Vmstat**和**Iostat**两个命令都适用于所有主要的类**unix**系统(**Linux/unix/FreeBSD/Solaris**)。 -如果**vmstat**和**iostat**命令在你的系统中不可用,请安装**sysstat**软件包。**vmstat**,**sar**和**iostat**命令都包含在**sysstat**(系统监控工具)软件包中。iostat命令生成**CPU**和所有设备的统计信息。你可以从连接[sysstat][1]中下载源代码包编译安装sysstat,但是我们建议通过**YUM**命令进行安装。 +这是我们正在进行的**Linux**命令和性能监控系列的一部分。**vmstat**和**iostat**两个命令都适用于所有主要的类**unix**系统(**Linux/unix/FreeBSD/Solaris**)。 + +如果**vmstat**和**iostat**命令在你的系统中不可用,请安装**sysstat**软件包。**vmstat**,**sar**和**iostat**命令都包含在**sysstat**(系统监控工具)软件包中。iostat命令生成**CPU**和所有设备的统计信息。你可以从[这个连接][1]中下载源代码包编译安装sysstat,但是我们建议通过**YUM**命令进行安装。 ![使用Vmstat和Iostat命令进行Linux性能监控](http://www.tecmint.com/wp-content/uploads/2012/09/Linux-VmStat-Iostat-Commands.png) -使用Vmstat和Iostat命令进行Linux性能监控 +*使用Vmstat和Iostat命令进行Linux性能监控* ###在Linux系统中安装sysstat### @@ -18,7 +19,7 @@ ####1. 列出活动和非活动的内存#### -如下范例中输出6列。**vmstat**的man页面中解析的每一列的意义。最重要的是内存中的**free**属性和交换分区中是**si**和**so**属性。 +如下范例中输出6列。**vmstat**的man页面中解析的每一列的意义。最重要的是内存中的**free**属性和交换分区中的**si**和**so**属性。 [root@tecmint ~]# vmstat -a @@ -33,6 +34,7 @@ **注意**:如果你不带参数的执行**vmstat**命令,它会输出自系统启动以来的总结报告。 ####2. 每X秒执行vmstat,共执行N次#### + 下面命令将会每2秒中执行一次**vmstat**,执行6次后自动停止执行。 [root@tecmint ~]# vmstat 2 6 @@ -65,7 +67,6 @@ **vmstat**命令的**-s**参数,将输出各种事件计数器和内存的统计信息。 - [tecmint@tecmint ~]$ vmstat -s 1030800 total memory @@ -237,7 +238,7 @@ via: http://www.tecmint.com/linux-performance-monitoring-with-vmstat-and-iostat- 作者:[Ravi Saive][a] 译者:[cvsher](https://github.com/cvsher) -校对:[校对者ID](https://github.com/校对者ID) +校对:[wxy](https://github.com/wxy) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 diff --git a/translated/tech/Sysstat – All-in-One System Performance and Usage Activity Monitoring Tool For Linux.md b/published/Sysstat – All-in-One System Performance and Usage Activity Monitoring Tool For Linux.md similarity index 81% rename from translated/tech/Sysstat – All-in-One System Performance and Usage Activity Monitoring Tool For Linux.md rename to published/Sysstat – All-in-One System Performance and Usage Activity Monitoring Tool For Linux.md index 2c28c2c7d2..ae3e1fcd54 100644 --- a/translated/tech/Sysstat – All-in-One System Performance and Usage Activity Monitoring Tool For Linux.md +++ b/published/Sysstat – All-in-One System Performance and Usage Activity Monitoring Tool For Linux.md @@ -1,19 +1,17 @@ -集所有功能与一身的Linux系统性能和使用活动监控工具-Sysstat +全能冠军:Linux系统性能和使用活动监控工具 sysstat =========================================================================== **Sysstat**是一个非常方便的工具,它带有众多的系统资源监控工具,用于监控系统的性能和使用情况。我们在日常使用的工具中有相当一部分是来自sysstat工具包的。同时,它还提供了一种使用cron表达式来制定性能和活动数据的收集计划。 ![Install Sysstat in Linux](http://www.tecmint.com/wp-content/uploads/2014/08/sysstat.png) -在Linux系统中安装Sysstat - 下表是包含在sysstat包中的工具 -- [**isstat**][1]: 输出CPU的统计信息和所有I/O设备的输入输出(I/O)统计信息。 -- **mpstat**: 关于多有CPU的详细信息(单独输出或者分组输出)。 +- [**iostat**][1]: 输出CPU的统计信息和所有I/O设备的输入输出(I/O)统计信息。 +- **mpstat**: 关于CPU的详细信息(单独输出或者分组输出)。 - **pidstat**: 关于运行中的进程/任务、CPU、内存等的统计信息。 -- **sar**: 保存并输出不同系统资源(CPU、内存、IO、网络、内核、等。。。)的详细信息。 -- **sadc**: 系统活动数据收集器,用于手机sar工具的后端数据。 -- **sa1**: 系统手机并存储sadc数据文件的二进制数据,与sadc工具配合使用 +- **sar**: 保存并输出不同系统资源(CPU、内存、IO、网络、内核等。。。)的详细信息。 +- **sadc**: 系统活动数据收集器,用于收集sar工具的后端数据。 +- **sa1**: 系统收集并存储sadc数据文件的二进制数据,与sadc工具配合使用 - **sa2**: 配合sar工具使用,产生每日的摘要报告。 - **sadf**: 用于以不同的数据格式(CVS或者XML)来格式化sar工具的输出。 - **Sysstat**: sysstat工具的man帮助页面。 @@ -26,9 +24,9 @@ pidstat命令新增了一些新的选项:首先是“-R”选项,该选项 sar、sadc和sadf命令在数据文件方面同样带来了一些功能上的增强。与以往只能使用“**saDD**”来命名数据文件。现在使用**-D**选项可以用“**saYYYYMMDD**”来重命名数据文件,同样的,现在的数据文件不必放在“**var/log/sa**”目录中,我们可以使用“SA_DIR”变量来定义新的目录,该变量将应用与sa1和sa2命令。 -###在Linux系统中安装Sysstat#### +###在Linux系统中安装sysstat#### -在主要的linux发行版中,‘**Sysstat**’工具包可以在默认的程序库中安装。然而,在默认程序库中的版本通常有点旧,因此,我们将会下载源代码包,编译安装最新版本(**11.0.0**版本)。 +在主要的linux发行版中,‘**sysstat**’工具包可以在默认的程序库中安装。然而,在默认程序库中的版本通常有点旧,因此,我们将会下载源代码包,编译安装最新版本(**11.0.0**版本)。 首先,使用下面的连接下载最新版本的sysstat包,或者你可以使用**wget**命令直接在终端中下载。 @@ -38,7 +36,7 @@ sar、sadc和sadf命令在数据文件方面同样带来了一些功能上的增 ![Download Sysstat Package](http://www.tecmint.com/wp-content/uploads/2014/08/Download-Sysstat.png) -下载Sysstat包 +*下载sysstat包* 然后解压缩下载下来的包,进去该目录,开始编译安装 @@ -47,21 +45,25 @@ sar、sadc和sadf命令在数据文件方面同样带来了一些功能上的增 这里,你有两种编译安装的方法: -a).第一,你可以使用**iconfig**(这将会给予你很大的灵活性,你可以选择/输入每个参数的自定义值) +####a)#### + +第一,你可以使用**iconfig**(这将会给予你很大的灵活性,你可以选择/输入每个参数的自定义值) # ./iconfig ![Sysstat iconfig Command](http://www.tecmint.com/wp-content/uploads/2014/08/Sysstat-iconfig-Command.png) -Sysstat的iconfig命令 +*sysstat的iconfig命令* -b).第二,你可以使用标准的**configure**命令在当行中定义所有选项。你可以运行 **./configure –help 命令**来列出该命令所支持的所有限选项。 +####b)#### + +第二,你可以使用标准的**configure**,在命令行中定义所有选项。你可以运行 **./configure –help 命令**来列出该命令所支持的所有限选项。 # ./configure --help ![Sysstat Configure Help](http://www.tecmint.com/wp-content/uploads/2014/08/Configure-Help.png) -Stsstat的cofigure -help +*stsstat的cofigure -help* 在这里,我们使用标准的**./configure**命令来编译安装sysstat工具包。 @@ -71,7 +73,7 @@ Stsstat的cofigure -help ![Configure Sysstat in Linux](http://www.tecmint.com/wp-content/uploads/2014/08/Configure-Sysstat.png) -在Linux系统中配置sysstat +*在Linux系统中配置sysstat* 在编译完成后,我们将会看到一些类似于上图的输出。现在运行如下命令来查看sysstat的版本。 @@ -80,7 +82,7 @@ Stsstat的cofigure -help sysstat version 11.0.0 (C) Sebastien Godard (sysstat orange.fr) -###在Linux 系统中更新sysstat### +###更新Linux 系统中的sysstat### 默认的,sysstat使用“**/usr/local**”作为其目录前缀。因此,所有的二进制数据/工具都会安装在“**/usr/local/bin**”目录中。如果你的系统已经安装了sysstat 工具包,则上面提到的二进制数据/工具有可能在“**/usr/bin**”目录中。 @@ -112,11 +114,11 @@ via: http://www.tecmint.com/install-sysstat-in-linux/ 作者:[Kuldeep Sharma][a] 译者:[cvsher](https://github.com/cvsher) -校对:[校对者ID](https://github.com/校对者ID) +校对:[wxy](https://github.com/wxy) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 [a]:http://www.tecmint.com/author/kuldeepsharma47/ -[1]:http://www.tecmint.com/linux-performance-monitoring-with-vmstat-and-iostat-commands/ +[1]:http://linux.cn/article-4024-1.html [2]:http://sebastien.godard.pagesperso-orange.fr/download.html [3]:http://sebastien.godard.pagesperso-orange.fr/documentation.html