sar

手机 是个问题

蓝咒 提交于 2019-12-28 02:05:08
5月31日,世界卫生组织下辖的 国际癌症研究机构 (IARC)宣布,在对关于使用手机与脑癌的科学文献做了历时一周的集中梳理之后,他们决定将手机使用中产生的射频电磁场划分为“可能致癌”级别。(报告在 此 ) 许多媒体报道指出,该报告将手机使用与铅和氯仿(的使用)同归于2B级(山寨吐槽1:悲催的级别啊有木有……)。但,铅的危害是由于它会导致儿童大脑发育障碍,而氯仿本身就是剧毒的,这些危害性都与癌症无关 。而在和谐战线这一方 , CTIA(美国移动通信行业协会) 则拿出咖啡和泡菜 两种同样归在2B级中,不过听起来不那么恐怖的东西来说明问题。(山寨吐槽2:太不给周立波面子了……) 看来无论是想要撩起正面的还是负面的反响,你都能从这个2B级别里面挑到合适的例子以供利用。那么事实真相究竟如何呢?这次归类的真正意义是什么,以及作为一个业界协会,我们应该如何回应? 为了得到解答,我采访了Kenneth Foster,宾夕法尼亚大学的一位生物工程学家,他自1971年以来就一直致力于研究射频能量对健康的影响。作为一位IEEE会员,在设置射频信号安全辐射剂量的标准委员会中工作,他向我透露了关于IARC如何做出这一决定的内情,并且解释了这一决定对于辐射标准的影响,以及对消费者的意义何在。 有没有已知的手机致癌的机理? A: 整个问题都与(电磁)场有关。对于X射线之类的电离辐射来说,致癌机理非常明确

CentOS系统性能工具 sar 示例!

拟墨画扇 提交于 2019-12-16 04:51:08
安装配置 Sysstat 安装 Sysstat 包 ### Ubuntu sudo apt-get install sysstat ### CentOS yum install sysstat ### CentOS rpm -ivh sysstat-10.0.0-1.i586.rpm 源码安装 Sysstat 从 sysstat 下载页下载最新版本 wget http://pagesperso-orange.fr/sebastien.godard/sysstat-10.0.0.tar.bz2 tar xvfj sysstat-10.0.0.tar.bz2 cd sysstat-10.0.0 ./configure --enable-install-cron 注意:请编译的时候确保使用 --enable-install-cron 选项,因为它会自动帮你做以下事情,如果没有使用这个选项,需要你手工处理以下事情 创建 /etc/rc.d/init.d/sysstat 从 /etc/rc.d/rc*.d/ 目录创建软连接到 /etc/rc.d/init.d/sysstat 以便 linux 启动的时候自动启动 sysstat 比如,/etc/rc.d/rc3.d/S01sysstat 被自动链接到 /etc/rc.d/init.d/sysstat 然后在执行 ./configure 后

sar命令使用详解(转载)

五迷三道 提交于 2019-12-14 22:44:35
一:命令介绍:参考资料:http://linux.die.net/man/1/sar sar(System ActivityReporter系统活动情况报告)是目前Linux上最为全面的系统性能分析工具之一,可以从多方面对系统的活动进行报告,包括:文件的读写情况、系统调用的使用情况、磁盘I/O、CPU效率、内存使用状况、进程活动及IPC有关的活动等,sar命令有sysstat安装包安装,本文主要以CentOS 6系列x64系统为例,介绍sar命令。 1.1:sar命令常用格式: 用法: sar [ 选项 ] [ <时间间隔> [ <次数> ] ] 选项: [ -A ] [ -B ] [ -b ] [ -C ] [ -d ] [ -H ] [ -h ] [ -p ] [ -q ] [ -R ] [ -r ] [ -S ] [ -t ] [ -u [ ALL ] ] [ -V ] [ -v ] [ -W ] [ -w ] [ -y ] [ -I { <中断> [,…] | SUM | ALL | XALL } ] [ -P { [,…] | ALL } ] [ -m { <关键词> [,…] | ALL } ] [ -n { <关键词> [,…] | ALL } ] [ -j { ID | LABEL | PATH | UUID | … } ] [ -f [ <文件名> ] | -o

deploy jboss sar at jboss as 7 error

旧时模样 提交于 2019-12-11 12:04:11
问题 Hello i try to deploy jboss sar file on jboss as. My problem is he can recognize end jboss-sar. <plugin> <groupId>org.jboss.as.plugins</groupId> <artifactId>jboss-as-maven-plugin</artifactId> <version>7.0.2.Final</version> <executions> <execution> <phase>install</phase> <goals> <goal>deploy</goal> </goals> </execution> </executions> </plugin> With this deploy plugin i get this error [INFO] Could not execute goal deploy on dts.jboss-sar. Reason: D:\Workspace Liferay\DTS_TRUNK\code\dts\dts-sar

3 网卡实时流量分析

▼魔方 西西 提交于 2019-12-11 11:55:27
1 安装软件包 #yum -y install sysstat sar命令 目录 1.查看CPU使用情况 sar -u 2.将统计结果保存到文件 sar -o & sar -f 3.查看平均负载 sar -q 4.查看内存使用情况 sar -r 5.查看系统swap分区统计情况 sar -W 6.查看IO和传递速率 sar -b 7.查看磁盘使用情况 sar -d 统计网络信息 sar -n 8.1 网络接口信息 sar -n DEV 8.2 网络设备通信失败信息 sar -n EDVE 8.3统计socket连接信息 sar -n SOCK 8.4 TCP连接的统计 sar -n TCP 使用总结 语法格式 sar [ 选项 ] [ [ ] ] sar -h 显示: -A:所有报告的总和 -b:显示I/O和传递速率的统计信息 -B:显示换页状态 -d:输出每一块磁盘的使用信息 -e:设置显示报告的结束时间 -f:从制定的文件读取报告 -i:设置状态信息刷新的间隔时间 -P:报告每个CPU的状态 -R:显示内存状态 –u:输出cpu使用情况和统计信息 –v:显示索引节点、文件和其他内核表的状态 -w:显示交换分区的状态 -x:显示给定进程的装 -r:报告内存利用率的统计信息 1.查看CPU使用情况 sar -u sar 1 3 或 sar -u 1 3 %user

How to generate JBoss jboss-deployment-structure from maven dependencies

笑着哭i 提交于 2019-12-11 02:27:56
问题 We have project are built using maven. There are a lot of dependencies that is successfully resolved by good designed pom files. We need to generate sar module that we are planning to deploy on JBoss7AS. We have to describe all dependencies (including our modules) manually in file META-INF/jboss-deployment-structure.xml <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0"> <deployment> <resources> <resource-root path="lib/activemq-camel-5.6.0.jar"/> <resource-root path="lib

Why does the compiler generate a right-shift by 31 bits when dividing by 2?

﹥>﹥吖頭↗ 提交于 2019-12-07 09:33:41
问题 I have disassembled code produced by the compiler, and I see that it has produced the following sequence of instructions: mov eax, edx shr eax, 1Fh add eax, edx sar eax, 1 What is the purpose of this code? I know that sar eax, 1 divides by 2, but what does shr eax, 1Fh do? Does this mean that EAX will be either 0 or 1 if the left bit was either 0 or 1? This looks strange to me! Can someone explain it? 回答1: The quick answer to your question—what is shr eax, 1Fh —is that it serves to isolate

Linux 如何查看系统负载

爷,独闯天下 提交于 2019-12-06 14:13:52
Linux 如何查看系统负载 3 1 0 博客 / Linux / 4个月前 / 534 / 0 操作系统的负载状态,反映了应用程序的资源使用情况,从中能找出应用程序优化的瓶颈所在。 系统平均负载,是指处于运行或不可打扰状态的进程的平均数。\ 处于运行,表示运行态,占用 CPU,或就绪态,等待 CPU 调度。\ 不可打扰,表示阻塞,正在等待 I/O 在 Linux 系统中,要查看负载情况一般使用 uptime 命令(w 命令和 top 命令也行)* 一、uptime 命令 $ uptime\ 16:33:56 up 69 days, 5:10, 1 user, load average: 0.14, 0.24, 0.29 以上信息的解析如下: 16:33:56 : 当前时间 up 69 days, 5:10 : 系统运行了 69 天 5 小时 10 分 1 user : 当前有 1 个用户登录了系统 load average: 0.14, 0.24, 0.29 : 系统在过去 1 分钟内,5 分钟内,15 分钟内的平均负载 load average: 0.14, 0.24, 0.29 : 系统在过去 1 分钟内,5 分钟内,15 分钟内的平均负载 平均负载解析 查看逻辑 CPU 核心数: $ grep 'model name' /proc/cpuinfo | wc -l\ 1\

Why does the compiler generate a right-shift by 31 bits when dividing by 2?

て烟熏妆下的殇ゞ 提交于 2019-12-05 18:01:48
I have disassembled code produced by the compiler, and I see that it has produced the following sequence of instructions: mov eax, edx shr eax, 1Fh add eax, edx sar eax, 1 What is the purpose of this code? I know that sar eax, 1 divides by 2, but what does shr eax, 1Fh do? Does this mean that EAX will be either 0 or 1 if the left bit was either 0 or 1? This looks strange to me! Can someone explain it? The quick answer to your question—what is shr eax, 1Fh —is that it serves to isolate the uppermost bit of eax . It might be easier to understand if you convert the hexadecimal 1Fh to decimal 31 .

Output sar command results to a csv file

北城以北 提交于 2019-12-04 22:50:26
问题 I'm relatively new to shell programming and would like to know if there is a simple way to output the results of the sar command to a csv file. Using sar > file1.csv does the job, but it is not properly formatted. All the data is present in one column. I tried this, but it was worse sar -d -u -w 1 1 | grep -v Average | grep -v Linux | tr -s ' ' ',' | tr -d '\n' > file1.csv Can anyone give me the right script to store the output of the sar command in a csv file. Help will be appreciated. 回答1: