linux 检查兼容性命令,1111111111111 Linux 性能检查命令总结

*******性能监测

mpstat类似vmstat,但能详细到某个cpu

http://blog.csdn.net/joeyon1985/article/details/46682939

http://www.xitongzhijia.net/xtjc/20141203/31828_2.html

内存瓶颈:

free,vmstat(进程,内存,虚拟内存情况)

cpu瓶颈:

top -H (按cpu消耗排序)

ps -Lp pid cu (按某进程对菜谱消耗排序)

网络瓶颈:

根据CPU中的%iowait来判断

磁盘瓶颈:

iostat(磁盘整体TPS,IO读写情况), iotop定位到进程

应用瓶颈

https://mp.weixin.qq.com/s/97ZHAF-IStTqs_4vB7ltAA

vmstat:虚拟内存统计

比较合理的数值:

CPU 利用率,如果 CPU 有 100% 利用率,那么应该到达这样一个平衡:65%-70% User Time,30%-35% System Time,0%-5% Idle Time;

•   上下文切换,上下文切换应该和 CPU 利用率联系起来看,如果能保持上面的 CPU 利用率平衡,大量的上下文切换是可以接受的;

•    可运行队列,每个可运行队列不应该有超过1-3个线程(每处理器),比如:双处理器系统的可运行队列里不应该超过6个线程。

Procs

r:等待运行的进程数。如果等待运行的进程数越多,意味着CPU非常繁忙。

b:处在非中断睡眠状态的进程数。意味着进程被阻塞 如等待IO资源。

Memory

swpd:已使用的虚拟内存大小。如果虚拟内存使用较多,可能系统的物理内存比较吃紧

Swap

si,so:从磁盘交换到内存/从内存交换到磁盘的交换页数量

内存够用的时候,这2个值都是0,如果这2个值长期大于0时,系统性能会受到影响,磁盘IO和CPU资源都会被消耗。

IO

System

CPU

https://www.cnblogs.com/kerrycode/p/6208257.html

iostat主要用于监控系统设备的IO负载情况,

可以得到 磁盘每秒传输次数,每秒磁盘读取/写入量。

常见用法

iostat -d -k 1 10 #查看TPS和吞吐量信息(磁盘读写速度单位为KB)

iostat -d -m 2 #查看TPS和吞吐量信息(磁盘读写速度单位为MB)

iostat -d -x -k 1 10 #查看设备使用率(%util)、响应时间(await)

iostat -c 1 10 #查看cpu状态

https://www.cnblogs.com/xiuluo--angel/p/7086637.html

iotop命令是一个用来监视磁盘I/O使用状况的top类工具。

http://man.linuxde.net/iotop

netstat命令是一个监控TCP/IP网络的非常有用的工具,它可以显示路由表、实际的网络连接以及每一个网络接口设备的状态信息。

列出所有端口情况

[root@xiesshavip002 ~]# netstat -a # 列出所有端口

[root@xiesshavip002 ~]# netstat -at # 列出所有TCP端口

[root@xiesshavip002 ~]# netstat -au # 列出所有UDP端口

列出所有处于监听状态的 Sockets

[root@xiesshavip002 ~]# netstat -l # 只显示监听端口

[root@xiesshavip002 ~]# netstat -lt # 显示监听TCP端口

[root@xiesshavip002 ~]# netstat -lu # 显示监听UDP端口

[root@xiesshavip002 ~]# netstat -lx # 显示监听UNIX端口

显示每个协议的统计信息

[root@xiesshavip002 ~]# netstat -s # 显示所有端口的统计信息

[root@xiesshavip002 ~]# netstat -st # 显示所有TCP的统计信息

[root@xiesshavip002 ~]# netstat -su # 显示所有UDP的统计信息

显示 PID 和进程名称

[root@xiesshavip002 ~]# netstat -p

显示核心路由信息

[root@xiesshavip002 ~]# netstat -r

查看端口和服务

[root@xiesshavip002 ~]# netstat -antp | grep ssh

[root@xiesshavip002 ~]# netstat -antp | grep 22

https://www.cnblogs.com/xieshengsen/p/6618993.html

查看实时网卡流量的几种方式

https://www.jianshu.com/p/b9e942f3682c

查看tcp各种状态:

netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'

TIME_WAIT 1634

CLOSE_WAIT 237

ESTABLISHED 2081

LAST_ACK 200

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Linux Hardware Compatibility Lists Debian GNU/Linux device driver check page - This database verifies the PCI devices at this time (X drivers, ISA, USB, IEEE1394 or any other devices are out of its focus). Paste your result of 'lspci -n' taken from GNU/Linux OS (such as Debian, Knoppix, RedHat, and so on) to the box, then push 'Check' button. openSUSE Hardware Compatibility List - The following pages are used by the openSUSE community to record the compatibility of various hardware and full systems with SUSE Linux. Please share your experience by adding your hardware, especially if you had some issue that you overcame. Mandriva Hardware Database - This hardware database allows you to check the compatibility of your hardware with the Mandriva Linux OS. The certified hardware has the highest level of compatibility. Red Hat Hardware Catalog - Database containing certified hardware for Red Hat products. UbuntuUsers Hardwaredatenbank - Auf dieser Seite soll eine Hardwaredatenbank fuer Ubuntu Linux entstehen. Sie koennen hier unter Ubuntu Linux verwendete (neuere) Hardware hinzufuegen, welche gut laeuft. LinuxQuestions.org HCL - This is the Linux Hardware Compatibility List from LinuxQuestions.org. Linux Hardware Compatibility HOWTO - This document attempts to list most of the hardware known to be either supported or unsupported under Linux. Linux Hardware Components - The manufacturers and distributors listed on this site sell hardware and peripherals that are Linux-friendly. If you're looking for drivers or need to know if your hardware is supported, this is a good place to find out. LinuxCompatible.org Compatibility List - This is a user submitted compatibility database for hardware running under GNU/Linux. Phoronix Linux Compatible Hardware - is designed to be a community-driven indexing system for computer hardware under GNU/Linux. This system allows you to post GNU/Linux information on hardware as well as sharing your own personal experiences when it comes to GNU/Linux compatibility. You are also able to browse and search the database for other hardware as well. FSF Hardware Database - Free Software Foundation's listing of hardware that supports free software. Linux-Hardware.org - Die Linux Hardware Datenbank soll Usern einen Ueberblick verschaffen, welche Hardware von welcher Distribution unterstuezt wird. Sie ist so angelegt, dass sie problemlos fuer alle Distributionen genutzt und von Usern ergaenzt werden kann. Linux Support for HP PC's - This page provides an overview of Linux support for HP PC's and peripeherals. Don't base purchasing decisions on the information provided here. This site's main goal is to provide information for people already owning an HP PC. Tuxhardware.de - (TU)X-beliebige Hardware. Tuxhardware.de ist ein Online- Shop in Deutschland der Produkte mit LINUX- Eignung anbietet. Hier finden Sie u.a. auch Installationsanleitungen, Tipps & Tricks und Links zu Treibern. Unix printer compatiblity database listing - The LinuxPrinting.org printer database contains a wealth of information about specific printers, along with extensive driver information, basic specifications, and an associated set of configuration tools. You can just go straight to a particular printer, or you can list all printers from a given manufacturer. Looking for a printer to buy? Take a look at: "Suggested Printers for Free Software Users". Gutenprint Supported Printers - Gutenprint, formerly called Gimp-Print, offers high quality drivers for Canon, Epson, Lexmark, Sony, Olympus, and PCL printers for use with Ghostscript, CUPS, Foomatic, and the Gimp. TurboPrint Supported Printers - This is the list of TurboPrint Supported Printers. It includes almost every Canon, Epson & HP and many Brother printers. TurboPrint makes it possible to use the latest color printers with Linux. It is designed to produce maximum quality photo prints as well as high-speed text documents. Printer set-up and configuration is as simple as on Windows or MacOS. TurboPrint is a high-quality printer driver system for Linux built on existing standards (lpr or CUPS printer spooler, ghostscript interpreter for Postscript) thus achieving easy integration and maximum compatibility with existing applications. Von TurboPrint unterstuetzte Drucker - TurboPrint ermoeglicht den Einsatz moderner Farbdrucker unter Linux. Mit TurboPrint erzielen Sie sowohl die bestmoegliche Druckqualitaet bei fotorealistischen Ausdrucken, als auch eine schnelle Ausgabe von Text-Dokumenten. Drucker-Einrichtung und Konfiguration sind durch grafische Menues genauso einfach wie in MS Windows. TurboPrint unterstuetzt fast alle Canon, Epson & HP und viele Brother Drucker. ESP Print Pro Supported Printers - ESP Print Pro supports thousands of printers - search for yours. ESP Print Pro is a complete (commercial) UNIX cross- platform printing software package, containing thousands of high quality printer drivers for AIX, Digital UNIX, HP-UX, IRIX, Linux and Solaris (Intel and SPARC). A free 21-day demo license is available for first-time users. SANE: Supported Devices - shows if your scanner is supported and if yes, by which backend. If it's not supported, it may at least point to documentation or test programs. The search engine contains information from the latest stable SANE release, the development ("CVS") version of SANE and from external backends. The database is updated once per day. VueScan: Supported Scanners - is a continuously upgraded list of VueScan supported scanners. VueScan supports more than 500 different scanners, and these are organized by vendor name. VueScan is a scanning utility that works with most high- quality flatbed and film scanners to produce scans that have excellent color fidelity and color balance. A free trial version is available. Digital Camera Support for UNIX, Linux and BSD - trys to explain how to find out if your camera may work or not under a UNIX system. This site includes a table summarize for digital cameras, how they are supported under UNIX operating systems. Supported Cameras in gPhoto - On this page, you find a list of the supported camera models of the current release of gPhoto (=digital camera software applications for Unix-like systems. gPhoto2 is a free, redistributable, ready to use set of digital camera software applications for Unix-like systems). Support for additional cameras may be in the current libgphoto2 SVN trunk code. They will be added to the next release. If your camera is neither supported in the current release nor in current SVN trunk, it is possible that it is an old camera for which the original gPhoto driver has not been ported yet (mostly due to lack of demand) or it is a new camera for which there is no support at all. Working Webcams with PWC - This is a web-based collaboration area for the next generation Philips Web Camera Linux Kernel Module. On this page, you find a list of the supported Webcams. ALSA Soundcard Matrix - ALSA ("Advanced Linux Sound Architecture") supported audio- cards or chipsets. ALSA provides audio and MIDI functionality to the Linux operating system. OSS Sound Card List - OSS supported audio- cards or chipsets. This list is not 100% complete. There are dozens of sound cards that are based on some standard sound chips (or motherboard chipset) made by vendors like Intel, VIA, Cirrus/Crystal, Analog Devices, Realtek, Yamaha, C'Media, Trident, Sigmatel and many others. Such cards may not be listed in the following list but they are still supported. Driver Status for XFree86 4.3.0 - provides information about the status of the driver and hardware support in XFree86 4.3.0 compared with that in XFree86 3.3.6. Xi Graphics Accelerated-X support - listed by Notebooks/ Laptops, Graphics Cards, Graphics Chips. Li
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值