文档章节

crash commands to analyze kdumps

认真即可
 认真即可
发布于 2017/05/16 10:18
字数 239
阅读 24
收藏 0

1. list processes grouped by process state

crash> ps -S
  RU: 38
  IN: 1127
  UN: 23

2.  search on the stack of all processes

crash>  for UN bt | grep '#1 ' | awk '{print $3}' | sort | uniq -c | sort -r -n
      9 io_schedule
      7 schedule_timeout
      5 __mutex_lock_slowpath
      1 xlog_state_get_iclog_space
      1 xfs_ioend_wait

3. memory info

crash> kmem -i
                 PAGES        TOTAL      PERCENTAGE
    TOTAL MEM  32934221     125.6 GB         ----
         FREE  29938211     114.2 GB   90% of TOTAL MEM

4. disk info

crash> dev -d
MAJOR GENDISK            NAME       REQUEST_QUEUE      TOTAL ASYNC  SYNC   DRV
    8 ffff880fdae57800   sda        ffff880fdc2ad538       0     0     0     0
    8 ffff880fdae58000   sdc        ffff880fde7b4e90       0     0     0     0
    8 ffff880fdb5f3400   sde        ffff880fdc2ace50       0     0     0     0

5. look into mounted fs

crash> mount ffff880fd8bd7800
    VFSMOUNT         SUPERBLK     TYPE   DEVNAME   DIRNAME
ffff880fdfcc76c0 ffff880fd8bd7800 xfs    /dev/mapper/xxx
crash> struct -x super_block.s_frozen ffff880fd8bd7800
  s_frozen = 0x0

6. display BT

crash> bt ffff880fbce6e140
PID: 14003  TASK: ffff880fbce6e140  CPU: 5   COMMAND: "java"
 #0 [ffff880fcf361ae0] schedule at ffffffff814652b9
 #1 [ffff880fcf361c28] __mutex_lock_slowpath at ffffffff81466488
 #2 [ffff880fcf361c88] mutex_lock at ffffffff81465f1a
 #3 [ffff880fcf361ca0] do_lookup at ffffffff8116a1b8
 #4 [ffff880fcf361d10] path_lookupat at ffffffff8116d98c
 #5 [ffff880fcf361da0] do_path_lookup at ffffffff8116df1f
 #6 [ffff880fcf361dd0] user_path_at_empty at ffffffff8116eecf
 #7 [ffff880fcf361ea0] vfs_fstatat at ffffffff81163570
 #8 [ffff880fcf361ef0] sys32_stat64 at ffffffff8103f48f
 #9 [ffff880fcf361f80] sysenter_dispatch at ffffffff81470ab0

7. struct commands

crash> struct -x dentry.d_inode ffff881394074800
  d_inode = 0xffff881fcb88bd90
crash> files -d ffff881394074800
     DENTRY           INODE           SUPERBLK     TYPE PATH
ffff881394074800 ffff881fcb88bd90 ffff880fd8bd7800 DIR  /mnt/xxx
crash> struct -x inode.i_mutex 0xffff881fcb88bd90
  i_mutex = {
    count = {
      counter = 0xfffffffd
    },

 

© 著作权归作者所有

认真即可
粉丝 5
博文 95
码字总数 47263
作品 0
朝阳
程序员
私信 提问
【常见异常】运行时常见错误快速查询dSYM

Mac crash dir crash1 FYI链接 http://www.jianshu.com/p/12a2402b29c2 http://www.cocoachina.com/industry/20140514/8418.html Crash analyze tools 🎧 dYSM 分析 https://docs.fabric.......

创意总监
2016/06/03
138
1
Redis 3.2 rc 1 发布

Redis 3.2 rc 1 发布,主要更新如下: * [NEW] Lua scripts "effect replication". Makes possible to write scripts with side effects, use of random commands, and so forth. (Salvator......

oschina
2015/12/24
1K
24
Redis 5.0.3 和 4.0.12 发布,高性能的 KV 数据库

Redis 5.0.3 已发布,修复了一些 bug : Redis no longer panics when you send data to a replica-mode connection that is in MONITOR or SYNC mode. Fixes to certain sorted set edge cas......

淡漠悠然
2018/12/18
0
0
oracle的DDL语句事务性问题

最近要做一个Oracle的数据库升级脚本,期间涉及到了DDL。 印象中Oracle这种强大的东东可以让DDL也在一个事务里处理的,要么升级操作全部成功,要么失败回滚。 网上查了一大堆资料后,包括官方...

乌龟壳
2014/05/13
905
6
[Debug].NET Debugging and C++ Debugging Resources

The following is a summary of tools and resources that you might be interested in after taking the .NET Debugging and/or C++ Debugging courses we offer at Sela. [Shameless plug:......

吞吞吐吐的
2017/01/11
0
0

没有更多内容

加载失败,请刷新页面

加载更多

Oracle SQL语法实例合集

如需转载请注明出处https://my.oschina.net/feistel/blog/3052024 目的:迅速激活Oracle SQL 参考:《Oracle从入门到精通》 ------------------------------------------------------------......

LoSingSang
今天
2
0
增加 PostgreSQL 服务进程的最大打开文件数

https://serverfault.com/questions/628610/increasing-nproc-for-processes-launched-by-systemd-on-centos-7 要在systemd的配置里加才行...

helloclia
今天
2
0
组合模式在商品分类列表中的应用

在所有的树形结构中最适合的设计模式就是组合模式,我们看看常用商品分类中如何使用。 先定义一个树形结构的商品接口 public interface TreeProduct { List<TreeProduct> allProducts(...

算法之名
今天
3
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部