标签:线程 ldd dirty rand tcp route net proc hugepages
1、内存
derek@ubox:~/share/uspace$ cat /proc/meminfo MemTotal: 1016124 kB MemFree: 258380 kB MemAvailable: 684700 kB Buffers: 31520 kB Cached: 518092 kB SwapCached: 0 kB Active: 446536 kB Inactive: 227444 kB Active(anon): 125276 kB Inactive(anon): 10520 kB Active(file): 321260 kB Inactive(file): 216924 kB Unevictable: 0 kB Mlocked: 0 kB SwapTotal: 1046524 kB SwapFree: 1046524 kB Dirty: 1156 kB Writeback: 0 kB AnonPages: 124364 kB Mapped: 116036 kB Shmem: 11432 kB Slab: 47392 kB SReclaimable: 31540 kB SUnreclaim: 15852 kB KernelStack: 3344 kB PageTables: 13696 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 1554584 kB Committed_AS: 1237440 kB VmallocTotal: 34359738367 kB VmallocUsed: 0 kB VmallocChunk: 0 kB HardwareCorrupted: 0 kB AnonHugePages: 43008 kB CmaTotal: 0 kB CmaFree: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB DirectMap4k: 61376 kB DirectMap2M: 987136 kB
2,线程
derek@ubox:~/share/uspace$ ps -axf | grep soft 3 ? S 0:00 \_ [ksoftirqd/0] 1825 pts/8 S+ 0:00 \_ grep --color=auto soft derek@ubox:~/share/uspace$ cat /proc/3/sched ksoftirqd/0 (3, #threads: 1) ------------------------------------------------------------------- se.exec_start : 590932.293387 se.vruntime : 35639.237333 se.sum_exec_runtime : 62.125157 se.statistics.sum_sleep_runtime : 590506.457835 se.statistics.wait_start : 0.000000 se.statistics.sleep_start : 590932.293387 se.statistics.block_start : 0.000000 se.statistics.sleep_max : 52720.886048 se.statistics.block_max : 0.001631 se.statistics.exec_max : 3.768195 se.statistics.slice_max : 3.863267 se.statistics.wait_max : 24.870060 se.statistics.wait_sum : 177.815494 se.statistics.wait_count : 2145 se.statistics.iowait_sum : 0.000000 se.statistics.iowait_count : 0 se.nr_migrations : 0 se.statistics.nr_migrations_cold : 0 se.statistics.nr_failed_migrations_affine : 0 se.statistics.nr_failed_migrations_running : 0 se.statistics.nr_failed_migrations_hot : 0 se.statistics.nr_forced_migrations : 0 se.statistics.nr_wakeups : 2128 se.statistics.nr_wakeups_sync : 0 se.statistics.nr_wakeups_migrate : 0 se.statistics.nr_wakeups_local : 2128 se.statistics.nr_wakeups_remote : 0 se.statistics.nr_wakeups_affine : 0 se.statistics.nr_wakeups_affine_attempts : 0 se.statistics.nr_wakeups_passive : 0 se.statistics.nr_wakeups_idle : 0 avg_atom : 0.028962 avg_per_cpu : 0.000001 nr_switches : 2145 nr_voluntary_switches : 2129 nr_involuntary_switches : 16 se.load.weight : 1024 se.avg.load_sum : 134148 se.avg.util_sum : 134148 se.avg.load_avg : 0 se.avg.util_avg : 0 se.avg.last_update_time : 590932293387 policy : 0 prio : 120 clock-delta : 34 numa_pages_migrated : 0 numa_preferred_nid : -1 total_numa_faults : 0 current_node=0, numa_group_id=0 numa_faults node=0 task_private=0 task_shared=0 group_private=0 group_shared=0
3,系统信息
derek@ubox:~/share/uspace$ cat /proc/sys/kernel/sched_latency_ns 6000000 derek@ubox:~/share/uspace$ cat /proc/sys/kernel/sched_rt_period_us 1000000
derek@ubox:~/share/uspace$ cat /proc/version
Linux version 4.4.0-72-generic (buildd@lcy01-17) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #93-Ubuntu SMP Fri Mar 31 14:07:41 UTC 2017
derek@ubox:~/share/uspace$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.4.0-72-generic root=UUID=8d6eb7f5-8f90-429d-b54d-4efbe3c9afb7 ro quiet splash
4,中断:
derek@ubox:~/share/uspace$ cat /proc/interrupts CPU0 0: 36 IO-APIC 2-edge timer 1: 15 IO-APIC 1-edge i8042 8: 0 IO-APIC 8-edge rtc0 9: 0 IO-APIC 9-fasteoi acpi 12: 156 IO-APIC 12-edge i8042 14: 0 IO-APIC 14-edge ata_piix 15: 1663 IO-APIC 15-edge ata_piix 18: 1 IO-APIC 18-fasteoi vboxvideo 19: 4066 IO-APIC 19-fasteoi enp0s3 20: 830 IO-APIC 20-fasteoi vboxguest 21: 12350 IO-APIC 21-fasteoi 0000:00:0d.0, snd_intel8x0 22: 29 IO-APIC 22-fasteoi ohci_hcd:usb1 NMI: 0 Non-maskable interrupts LOC: 41571 Local timer interrupts SPU: 0 Spurious interrupts PMI: 0 Performance monitoring interrupts IWI: 0 IRQ work interrupts RTR: 0 APIC ICR read retries RES: 0 Rescheduling interrupts CAL: 0 Function call interrupts TLB: 0 TLB shootdowns TRM: 0 Thermal event interrupts THR: 0 Threshold APIC interrupts DFR: 0 Deferred Error APIC interrupts MCE: 0 Machine check exceptions MCP: 6 Machine check polls ERR: 0 MIS: 0 PIN: 0 Posted-interrupt notification event PIW: 0 Posted-interrupt wakeup event
5,cpu信息
derek@ubox:~/share/uspace$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 94 model name : Intel(R) Core(TM) i3-6100 CPU @ 3.70GHz stepping : 3 cpu MHz : 3695.996 cache size : 3072 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 22 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx rdrand hypervisor lahf_lm abm 3dnowprefetch rdseed clflushopt bugs : bogomips : 7391.99 clflush size : 64 cache_alignment : 64 address sizes : 39 bits physical, 48 bits virtual power management:
6,网络信息
derek@ubox:~/share/uspace$ cat /proc/net/protocols protocol size sockets memory press maxhdr slab module cl co di ac io in de sh ss gs se re sp bi br ha uh gp em PACKET 1408 1 -1 NI 0 no kernel n n n n n n n n n n n n n n n n n n n PINGv6 1088 0 -1 NI 0 yes kernel y y y n n y n n y y y y n y y y y y n RAWv6 1088 1 -1 NI 0 yes kernel y y y n y y y n y y y y n y y y y n n UDPLITEv6 1080 0 -1 NI 0 yes kernel y y y n y y y n y y y y n n y y y y n UDPv6 1080 2 8 NI 0 yes kernel y y y n y n y n y y y y n n y y y y n TCPv6 2056 3 1 no 304 yes kernel y y y y y y y y y y y y y n y y y y y UNIX 1024 243 -1 NI 0 yes kernel n n n n n n n n n n n n n n n n n n n UDP-Lite 920 0 -1 NI 0 yes kernel y y y n y y y n y y y y y n y y y y n PING 880 0 -1 NI 0 yes kernel y y y n n y n n y y y y n y y y y y n RAW 888 0 -1 NI 0 yes kernel y y y n y y y n y y y y n y y y y n n UDP 920 11 8 NI 0 yes kernel y y y n y n y n y y y y y n y y y y n TCP 1896 5 1 no 304 yes kernel y y y y y y y y y y y y y n y y y y y NETLINK 1160 30 -1 NI 0 no kernel n n n n n n n n n n n n n n n n n n n derek@ubox:~/share/uspace$ cat /proc/net/arp IP address HW type Flags HW address Mask Device 192.168.31.238 0x1 0x2 30:b4:9e:1a:ab:ee * enp0s3 192.168.31.1 0x1 0x2 f0:b4:29:28:1f:b4 * enp0s3 derek@ubox:~/share/uspace$ cat /proc/net/packet sk RefCnt Type Proto Iface R Rmem User Inode 0000000000000000 3 3 0003 2 1 0 0 15421 derek@ubox:~/share/uspace$ cat /proc/net/route Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT enp0s3 00000000 011FA8C0 0003 0 0 100 00000000 0 0 0 enp0s3 0000FEA9 00000000 0001 0 0 1000 0000FFFF 0 0 0 enp0s3 001FA8C0 00000000 0001 0 0 100 00FFFFFF 0 0 0 derek@ubox:~/share/uspace$ cat /proc/net/tcp sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid timeout inode 0: 00000000:008B 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 18585 1 0000000000000000 100 0 0 10 0 1: 0101007F:0035 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 15489 1 0000000000000000 100 0 0 10 0 2: 00000000:0016 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 15871 1 0000000000000000 100 0 0 10 0 3: 00000000:01BD 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 18584 1 0000000000000000 100 0 0 10 0 4: BE1FA8C0:0016 EE1FA8C0:E56D 01 00000000:00000000 02:00086563 00000000 0 0 18726 3 0000000000000000 21 6 33 10 -1
7,文件系统
derek@ubox:~/share/uspace$ cat /proc/fs/ext4/sda1/options rw block_validity delalloc barrier user_xattr acl resuid=0 resgid=0 errors=remount-ro commit=5 min_batch_time=0 max_batch_time=15000 stripe=0 data=ordered inode_readahead_blks=32 init_itable=10 max_dir_size_kb=0 derek@ubox:~/share/uspace$ df -h Filesystem Size Used Avail Use% Mounted on udev 477M 0 477M 0% /dev tmpfs 100M 3.7M 96M 4% /run /dev/sda1 125G 5.1G 114G 5% / tmpfs 497M 188K 496M 1% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 497M 0 497M 0% /sys/fs/cgroup tmpfs 100M 36K 100M 1% /run/user/108 tmpfs 100M 0 100M 0% /run/user/1000 derek@ubox:~/share/uspace$ mount sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) udev on /dev type devtmpfs (rw,nosuid,relatime,size=487956k,nr_inodes=121989,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=101616k,mode=755) /dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio) cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=32,pgrp=1,timeout=0,minproto=5,maxproto=5,direct) debugfs on /sys/kernel/debug type debugfs (rw,relatime) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime) mqueue on /dev/mqueue type mqueue (rw,relatime) fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) tmpfs on /run/user/108 type tmpfs (rw,nosuid,nodev,relatime,size=101616k,mode=700,uid=108,gid=114) gvfsd-fuse on /run/user/108/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=108,group_id=114) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=101616k,mode=700,uid=1000,gid=1000)
标签:线程 ldd dirty rand tcp route net proc hugepages
原文地址:http://www.cnblogs.com/soul-stone/p/6719705.html