包含标签 RH442 articles

RH442之strace和ltrace性能分析

strace、ltrace是Linux环境下的程序调试工具,strace用来监察一个应用程序所使用的系统调用及它所接收的系统信息。追踪程序运行时的整个生命周期,输出每一个系统调用的名字,参数,返回值和执行消耗的时间等。其与ltrace的区别是:strace主要用于跟踪系统调用和信……

Continue reading

RH442之理解CPU cache

一、CPU,内存和cache之间的关系 如今的CPU和二十几年前的相比,其精密程度和运作速度可谓天壤之别。在以前,CPU的工作频率和内存总线的频率是处于一个等级的,CPU对内存的访问速度也只是比对寄存器的访问速度要慢那么一点儿,所以CPU直接访问内存是再合理不过了。但是近十几年来,……

Continue reading

RH442之lscpu、numa、chrt

一、lscpu输出 使用lscpu查看的结果如下图,这里会显示很多信息,如下: lscpu 使用lscpu -p会详细的numa信息,如下: 1[root@localhost ~]# lscpu -p 2# The following is the parsable format, which can be fed to other 3# programs. Each different item in every column has an unique ID 4# starting from zero. 5# CPU,Core,Socket,Node,,L1d,L1i,L2,L3 60,0,0,0,,0,0,0,0 71,1,1,2,,1,1,1,1 82,2,2,4,,2,2,2,2 93,3,3,7,,3,3,3,3 104,0,0,0,,4,0,0,0 115,1,1,2,,5,1,1,1 126,2,2,4,,6,2,2,2 137,3,3,7,,7,3,3,3 148,4,0,0,,8,4,4,0 159,5,1,2,,9,5,5,4 16…………略部分 二、numa相关 1、numa架构及优势 目前,CP……

Continue reading

RH442之/etc/security/ulimit.conf

/etc/security/ulimit.conf对应的库文件是/lib64/security/pam_ulimit.so 。该文件在国内广大LINUX从业者的一再科普下,基本已是人众皆知的东西。一般服务器拿来第一件是上去就是改nproc和nofile 。不过这里还是顺带再总结下吧。……

Continue reading

RH442之/etc/security/group.conf

/lib64/security/pam_group.so模块主要用于给用户授权组的权限,相对应的配置文件是/etc/security/group.conf 。不过网上关于这个模块的资料非常少,在使用时,最终也没有测试成功,这里只是把测试过程记录下。这里以/etc/pam.d/log……

Continue reading

RH442之/etc/security/chroot.conf和chroot

在开此之前,我们需要先搞清chroot、pam_chroot.so、/etc/security/chroot.conf三者之间的关系。chroot,即 change root directory (更改 root 目录),也就是将用户原始的根目录更换到一个受限的目录,里面仅给定用户所需要的命令、lib库等相关文件;chroot功……

Continue reading

RH442之/etc/security/access.conf与tcp_wrappers

RH442的教材里有一章是讲/etc/security/limits.conf里的相关配置的,不过limits.conf确实没什么好讲的,基本上都被国内的Linux工作者给普及烂了,一般机器装好第一件事先改这个。所以从本篇开始,准备索性把/etc/security里的所有相关配置……

Continue reading

使用vmstat分析linux主机性能

procps 是一个很强大的工具包,其中包含有free、sysctl 、ps、top 等常用工具,也包含 slabtop、pamp等高级分析工具,还包含了一个重要的工具vmstat 。 一、基本用法 直接使用vmstat会只输出一次当前主机的一些使用情况,后面也可以跟两个数字,每一个数字为多少秒刷新一次……

Continue reading

Latest articles

Categories

Tags

ACL AD AES AI AWS Ansible Atlassian Azure BMC Blockchain Brocade CDH5 CL210 Cobbler Confd C语言 DDOS DISTINCT DNS Duckdb EKS ELK GCP Ghost Git Glusterfs Go Godaddy Grafana HBA HCIE Hotspot HttpWatch IBM IIS IOS InfluxDB Ingress InnoDB JavaScript Jinja2 KVM Keepalived Mplayer MySQLdb Netlify OpenResty PM PostgreSQL QoS RH318 RH442 RHCA RHCE RHEV RSA SRE SecureCRT Statuscode SublimeText2 TC Telecom Tencentcloud VBA aira2 alpine android anpic apache apm apparmor appfog apr apt-get aria2 array atop audit awk awstats axel backdoor backup bamboo bash bat benchmark bigdata bin bind bitwise book bootstrap bsd c1000 cache capistrano catlog centos centos7 chatops chattr check_mk checkinstall cisco clearall clickhouse cloud-desktop cmdb cms collectd comm compress conver corosync cpu crontab crunchbang css curl date decode dell desktop devops df dhcp diff diskpart django docker dos2unix dpkg drupal etcd excel fail2ban fastcgi fdisk fiddler find firewalld flask flvtool ftp function fuser geek gin github gitlab glances golang google gooupadd graphviz gravatra grep grub2 hadoop haproxy hardware heartbeat helm hexdump hhvm history html http/html/web httplogs https huawei huaweicloud hugo icmp iconv ifconfig inotify iopp ipmitool iptables iredmail iscsi isito it-news java jdk jenkins jira join joomla k3s k8s kdump kernel kingate lamp last leetcode lib light-http linux linux高级篇 ln ls lsi lsof lvm lvs mac mail man mark markdown matplotlib maven memcached microservice mimikatz mkdocs mkpasswd mmonit mod_jk mongodb monit monitor mono moodle mosh mount mpm mrtg mtr my.cnf mysql mysqlbinlog mysqld_multi mysqldump mysqlhotcopy nagios nc nethogs nexus nfs nginx nmon nocatlog node.js nrpe ntfs ntop ntp obs ocr open-falcon openbox opencv openldap openssl openstack oracle oswatch paas pacemaker pam pandas parted pcp pcre pdf percona perl pexpect pgrep php php-fpm ping plsql develope postfix powershell prettify proc prometheus puppeteer pushd pwgen pxe pyecharts python python模块 radmin raid rdesktop read redhat redis redmine regex rh134 rhel7 rhel8 rm rman rootkit route rpm rpmforge rrdtool rsync rsyslog safe saltstack samba scapy screen sed selenium selinux seo seq session set shc sheepdog shell shopt sitemap skydns smokeping snffier snmp socket soft sort spider sql sqlserver squid ss ssh sshpass strace strings su sudo suse svn sysbench syslog-ng sysstat systemd t tar tcpcopy tcpdump tech telnet tengine test testlink threads time tmux tomcat touch tr tsar twisted ubuntu udev ulimit unix unixbench user-agent useradd varnish vbs vercel vi vim visudo vmstat vmware vnc voice vpn vscode vsftp vsftpd vue watchdog web webcam webistrano wget wiki windows wol wordpress workshop wsl x-windows xampp xcache xmllint xtrabackup yule yum zabbix zeromq zip zonetime zookeeper 下载工具 云主机 云原生 代理 加密 古意 吐槽 圈里圈外 娱乐 字符串函数 安全 平台架构 意林 推理 提权 故事汇 故障案例 数据结构 每日看点 民国史 生活 科学记录 站长管理工具 算法 管理 网站架构 翻墙 股票 行业 诗韵 负载均衡 远程管理 面试题

Links

Meta