免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5548 | 回复: 16
打印 上一主题 下一主题

[内存管理] 请教系统内存泄露 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-11-29 09:48 |只看该作者 |倒序浏览
我的系统运行了五六天后,内存占用率高达98%,找了半天也没有找到原因,希望哪位大哥能伸手相助:

我想把内存回收回来,试过echo 3 > /proc/sys/vm/drop_caches,没有任何效果。

这是meminfo的信息,可以看到,内存都被cached了:
  1. MemTotal:        2011984 kB
  2. MemFree:           73060 kB
  3. Buffers:             252 kB
  4. Cached:          1870020 kB
  5. SwapCached:            0 kB
  6. Active:             7812 kB
  7. Inactive:            992 kB
  8. Active(anon):       7544 kB
  9. Inactive(anon):        4 kB
  10. Active(file):        268 kB
  11. Inactive(file):      988 kB
  12. Unevictable:     1868996 kB
  13. Mlocked:               0 kB
  14. HighTotal:       1140332 kB
  15. HighFree:          21888 kB
  16. LowTotal:         871652 kB
  17. LowFree:           51172 kB
  18. SwapTotal:             0 kB
  19. SwapFree:              0 kB
  20. Dirty:                24 kB
  21. Writeback:             0 kB
  22. AnonPages:          7544 kB
  23. Mapped:             5304 kB
  24. Shmem:                 4 kB
  25. Slab:              38320 kB
  26. SReclaimable:       6184 kB
  27. SUnreclaim:        32136 kB
  28. KernelStack:         808 kB
  29. PageTables:          464 kB
  30. NFS_Unstable:          0 kB
  31. Bounce:                0 kB
  32. WritebackTmp:          0 kB
  33. CommitLimit:     1005992 kB
  34. Committed_AS:      26744 kB
  35. VmallocTotal:     122880 kB
  36. VmallocUsed:        5028 kB
  37. VmallocChunk:      89148 kB
  38. HardwareCorrupted:     0 kB
  39. HugePages_Total:       0
  40. HugePages_Free:        0
  41. HugePages_Rsvd:        0
  42. HugePages_Surp:        0
  43. Hugepagesize:       2048 kB
  44. DirectMap4k:       10232 kB
  45. DirectMap2M:      901120 kB
复制代码
内核不停地在杀进程清内存,但是很明显,每个进程占用的内存其实是很低的,这样做并没有任何意义:
  1. [562209.725054] Pid: 11739, comm: rrdsystem Tainted: G        W   2.6.38.8 #560
  2. [562209.725056] Call Trace:
  3. [562209.725062]  [<c01c12d0>] ? dump_header+0x80/0x1b0
  4. [562209.725064]  [<c01c1730>] ? oom_kill_process+0x60/0x280
  5. [562209.725067]  [<c01c1657>] ? select_bad_process+0x77/0xf0
  6. [562209.725069]  [<c01c1b3a>] ? out_of_memory+0x1ea/0x350
  7. [562209.725072]  [<c01c5246>] ? __alloc_pages_nodemask+0x676/0x690
  8. [562209.725075]  [<c01f5ab0>] ? alloc_pages_vma+0x70/0x120
  9. [562209.725078]  [<c01de244>] ? do_wp_page+0x214/0x950
  10. [562209.725081]  [<c0710380>] ? dst_rcu_free+0x0/0x40
  11. [562209.725083]  [<c01decea>] ? handle_pte_fault+0x36a/0xcf0
  12. [562209.725085]  [<c01df7e0>] ? handle_mm_fault+0x170/0x1e0
  13. [562209.725088]  [<c083212a>] ? do_page_fault+0x1aa/0x460
  14. [562209.725091]  [<c0715850>] ? ip_forward+0x0/0x430
  15. [562209.725093]  [<c0719940>] ? ip_output+0x0/0xc0
  16. [562209.725095]  [<c0831f80>] ? do_page_fault+0x0/0x460
  17. [562209.725097]  [<c082f5ff>] ? error_code+0x67/0x6c
  18. [562209.725100]  [<c01300d8>] ? in_gate_area+0x18/0x40
  19. [562209.725102]  [<c03920a1>] ? __put_user_4+0x11/0x18
  20. [562209.725105]  [<c0141f21>] ? schedule_tail+0x51/0x90
  21. [562209.725107]  [<c01030c6>] ? ret_from_fork+0x6/0x1c
  22. [562209.725109] Mem-Info:
  23. [562209.725110] Node 0 DMA per-cpu:
  24. [562209.725111] CPU    0: hi:    0, btch:   1 usd:   0
  25. [562209.725113] CPU    1: hi:    0, btch:   1 usd:   0
  26. [562209.725114] CPU    2: hi:    0, btch:   1 usd:   0
  27. [562209.725115] CPU    3: hi:    0, btch:   1 usd:   0
  28. [562209.725116] CPU    4: hi:    0, btch:   1 usd:   0
  29. [562209.725117] CPU    5: hi:    0, btch:   1 usd:   0
  30. [562209.725118] CPU    6: hi:    0, btch:   1 usd:   0
  31. [562209.725119] CPU    7: hi:    0, btch:   1 usd:   0
  32. [562209.725120] Node 0 Normal per-cpu:
  33. [562209.725121] CPU    0: hi:  186, btch:  31 usd:  83
  34. [562209.725123] CPU    1: hi:  186, btch:  31 usd:  61
  35. [562209.725124] CPU    2: hi:  186, btch:  31 usd:   0
  36. [562209.725125] CPU    3: hi:  186, btch:  31 usd: 164
  37. [562209.725126] CPU    4: hi:  186, btch:  31 usd:  79
  38. [562209.725127] CPU    5: hi:  186, btch:  31 usd:  38
  39. [562209.725128] CPU    6: hi:  186, btch:  31 usd:  57
  40. [562209.725129] CPU    7: hi:  186, btch:  31 usd:  69
  41. [562209.725130] Node 0 HighMem per-cpu:
  42. [562209.725132] CPU    0: hi:  186, btch:  31 usd: 174
  43. [562209.725133] CPU    1: hi:  186, btch:  31 usd:  52
  44. [562209.725134] CPU    2: hi:  186, btch:  31 usd:   0
  45. [562209.725135] CPU    3: hi:  186, btch:  31 usd: 156
  46. [562209.725136] CPU    4: hi:  186, btch:  31 usd:  70
  47. [562209.725137] CPU    5: hi:  186, btch:  31 usd:  43
  48. [562209.725138] CPU    6: hi:  186, btch:  31 usd:  46
  49. [562209.725139] CPU    7: hi:  186, btch:  31 usd:  51
  50. [562209.725142] active_anon:7563 inactive_anon:0 isolated_anon:0
  51. [562209.725142]  active_file:32 inactive_file:12 isolated_file:0
  52. [562209.725143]  unevictable:460410 dirty:0 writeback:0 unstable:0
  53. [562209.725143]  free:12363 slab_reclaimable:1557 slab_unreclaimable:14849
  54. [562209.725144]  mapped:1832 shmem:0 pagetables:226 bounce:0
  55. [562209.725146] Node 0 DMA free:5264kB min:140kB low:172kB high:208kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15796kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
  56. [562209.725151] lowmem_reserve[]: 0 867 1987 1987
  57. [562209.725154] Node 0 Normal free:43840kB min:8048kB low:10060kB high:12072kB active_anon:784kB inactive_anon:0kB active_file:128kB inactive_file:48kB unevictable:741144kB isolated(anon):0kB isolated(file):0kB present:887976kB mlocked:0kB dirty:0kB writeback:0kB mapped:4kB shmem:0kB slab_reclaimable:6228kB slab_unreclaimable:59396kB kernel_stack:960kB pagetables:64kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:397 all_unreclaimable? yes
  58. [562209.725160] lowmem_reserve[]: 0 0 8964 8964
  59. [562209.725162] Node 0 HighMem free:348kB min:512kB low:3112kB high:5712kB active_anon:29468kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:1100496kB isolated(anon):0kB isolated(file):0kB present:1147512kB mlocked:0kB dirty:0kB writeback:0kB mapped:7324kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:840kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
  60. [562209.725168] lowmem_reserve[]: 0 0 0 0
  61. [562209.725170] Node 0 DMA: 0*4kB 0*8kB 1*16kB 2*32kB 3*64kB 1*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 1*4096kB = 5264kB
  62. [562209.725175] Node 0 Normal: 131*4kB 117*8kB 338*16kB 460*32kB 149*64kB 50*128kB 9*256kB 1*512kB 1*1024kB 1*2048kB 0*4096kB = 43412kB
  63. [562209.725181] Node 0 HighMem: 87*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 348kB
  64. [562209.725186] 460455 total pagecache pages
  65. [562209.725187] 0 pages in swap cache
  66. [562209.725188] Swap cache stats: add 0, delete 0, find 0/0
  67. [562209.725189] Free swap  = 0kB
  68. [562209.725190] Total swap = 0kB
  69. [562209.728711] 522224 pages RAM
  70. [562209.728712] 294402 pages HighMem
  71. [562209.728713] 19228 pages reserved
  72. [562209.728714] 11514 pages shared
  73. [562209.728717] 485718 pages non-shared
  74. [562209.728718] [ pid ]   uid  tgid total_vm      rss cpu oom_adj oom_score_adj name
  75. [562209.728726] [  166]     0   166      513      121   3     -17         -1000 udevd
  76. [562209.728729] [  572]     0   572      512      109   0     -17         -1000 udevd
  77. [562209.728731] [13088]     0 13088      618      182   0       0             0 pppoe-connect
  78. [562209.728746] [13107]     0 13107      618      181   0       0             0 pppoe-connect
  79. [562209.728748] [13126]     0 13126      618      183   0       0             0 pppoe-connect
  80. [562209.728751] [13149]     0 13149      618      182   0       0             0 pppoe-connect
  81. [562209.728754] [13845]     0 13845     1800     1230   6       0             0 lighttpd
  82. [562209.728757] [13851]     0 13851     3554     1164   3       0             0 php-cgi
  83. [562209.728760] [13882]     0 13882     6245     2063   0       0             0 php-cgi
  84. [562209.728763] [13883]     0 13883     4203     1994   5       0             0 php-cgi
  85. [562209.728766] [13911]     0 13911      995      225   7       0             0 sshd
  86. [562209.728769] [13927]     0 13927      617       77   5       0             0 telnetd
  87. [562209.728772] [13958]     0 13958      709      294   4       0             0 pppoebalance
  88. [562209.728774] [14004]     0 14004     1224      245   5       0             0 daemon
  89. [562209.728777] [14005]     0 14005     1224      402   0       0             0 daemon
  90. [562209.728780] [14058]     0 14058     3324      520   0       0             0 pppoe-balance
  91. [562209.728783] [14060]     0 14060     3554     1165   1       0             0 php-cgi
  92. [562209.728786] [14072]     0 14072      802      277   0       0             0 zebra
  93. [562209.728788] [14074]     0 14074      617      150   5       0             0 crond
  94. [562209.728791] [14087]     0 14087      456       73   0       0             0 watchdog
  95. [562209.728794] [15882]     0 15882      512      111   2     -17         -1000 udevd
  96. [562209.728797] [18023]     0 18023      473      175   4       0             0 syslogd
  97. [562209.728800] [18030]     0 18030     1063      760   0       0             0 klogd
  98. [562209.728802] [29649]     0 29649      618       99   6       0             0 getty
  99. [562209.728806] [ 8604]     0  8604     4411     2246   0       0             0 php-cgi
  100. [562209.728809] [ 8888]     0  8888     4409     2334   0       0             0 php-cgi
  101. [562209.728811] [12530]     0 12530      874      268   1       0             0 pppd
  102. [562209.728814] [12545]     0 12545      874      269   1       0             0 pppd
  103. [562209.728817] [13202]     0 13202      874      269   1       0             0 pppd
  104. [562209.728820] [11553]     0 11553      874      268   1       0             0 pppd
  105. [562209.728822] [11697]     0 11697      617      100   7       0             0 sh
  106. [562209.728825] [11698]     0 11698      456       95   1       0             0 run-parts
  107. [562209.728828] [11722]     0 11722      584      100   6       0             0 sleep
  108. [562209.728831] [11723]     0 11723      723      308   4       0             0 rrdsystem
  109. [562209.728834] [11737]     0 11737      723      101   5       0             0 rrdsystem
  110. [562209.728836] [11738]     0 11738      723      101   6       0             0 rrdsystem
  111. [562209.728839] [11739]     0 11739      723       54   4       0             0 rrdsystem
  112. [562209.728842] Out of memory: Kill process 13088 (pppoe-connect) score 1 or sacrifice child
  113. [562209.827455] Killed process 11553 (pppd) total-vm:3496kB, anon-rss:180kB, file-rss:892kB
  114. [562241.843123] UDP: short packet: From 123.161.170.77:38646 140/12 to 112.94.69.42:13289
  115. [562246.508975] UDP: short packet: From 112.111.123.212:13138 18653/1060 to 112.94.71.63:4926
  116. [562379.687180] pppoe-balance invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0, oom_score_adj=0
  117. [562379.687183] pppoe-balance cpuset=/ mems_allowed=0
复制代码

论坛徽章:
36
IT运维版块每日发帖之星
日期:2016-04-10 06:20:00IT运维版块每日发帖之星
日期:2016-04-16 06:20:0015-16赛季CBA联赛之广东
日期:2016-04-16 19:59:32IT运维版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-19 06:20:00每日论坛发贴之星
日期:2016-04-19 06:20:00IT运维版块每日发帖之星
日期:2016-04-25 06:20:00IT运维版块每日发帖之星
日期:2016-05-06 06:20:00IT运维版块每日发帖之星
日期:2016-05-08 06:20:00IT运维版块每日发帖之星
日期:2016-05-13 06:20:00IT运维版块每日发帖之星
日期:2016-05-28 06:20:00每日论坛发贴之星
日期:2016-05-28 06:20:00
2 [报告]
发表于 2012-11-29 10:08 |只看该作者
回复 1# 独孤九贱

cached 的内存就没法使用了吗

   

论坛徽章:
0
3 [报告]
发表于 2012-11-29 10:14 |只看该作者
本帖最后由 独孤九贱 于 2012-11-29 10:17 编辑

内核已经在不停地报内存不足了,肯定是没有办法把这块内存回收回来。
所有能查到的文档都说用echo 3 > /proc/sys/vm/drop_caches,但是我运行了却没有效果,唉……不要是触发了Linux什么Bug吧?

论坛徽章:
36
IT运维版块每日发帖之星
日期:2016-04-10 06:20:00IT运维版块每日发帖之星
日期:2016-04-16 06:20:0015-16赛季CBA联赛之广东
日期:2016-04-16 19:59:32IT运维版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-19 06:20:00每日论坛发贴之星
日期:2016-04-19 06:20:00IT运维版块每日发帖之星
日期:2016-04-25 06:20:00IT运维版块每日发帖之星
日期:2016-05-06 06:20:00IT运维版块每日发帖之星
日期:2016-05-08 06:20:00IT运维版块每日发帖之星
日期:2016-05-13 06:20:00IT运维版块每日发帖之星
日期:2016-05-28 06:20:00每日论坛发贴之星
日期:2016-05-28 06:20:00
4 [报告]
发表于 2012-11-29 10:27 |只看该作者
回复 3# 独孤九贱
嗯,确实是触发 OOM killer 了。


   

论坛徽章:
0
5 [报告]
发表于 2012-11-29 10:46 |只看该作者
要命的是系统低端内存即将耗尽,但是我看slabinfo中,并没有什么线索,特别是dir和inode:
  1. slabinfo - version: 2.1
  2. # name            <active_objs> <num_objs> <objsize> <objperslab> <pagesperslab> : tunables <limit> <batchcount> <sharedfactor> : slabdata <active_slabs> <num_slabs> <sharedavail>
  3. SCTP                  36     36    896   36    8 : tunables    0    0    0 : slabdata      1      1      0
  4. nf_conntrack_c1eac1c0    233    234    312   26    2 : tunables    0    0    0 : slabdata      9      9      0
  5. isp1760_qtd            0      0     32  128    1 : tunables    0    0    0 : slabdata      0      0      0
  6. mqueue_inode_cache     28     28    576   28    4 : tunables    0    0    0 : slabdata      1      1      0
  7. xfs_ili                0      0    160   25    1 : tunables    0    0    0 : slabdata      0      0      0
  8. xfs_inode              0      0    704   23    4 : tunables    0    0    0 : slabdata      0      0      0
  9. xfs_efd_item           0      0    288   28    2 : tunables    0    0    0 : slabdata      0      0      0
  10. xfs_buf_item         115    115    176   23    1 : tunables    0    0    0 : slabdata      5      5      0
  11. xfs_trans              0      0    224   36    2 : tunables    0    0    0 : slabdata      0      0      0
  12. xfs_da_state           0      0    336   24    2 : tunables    0    0    0 : slabdata      0      0      0
  13. xfs_log_ticket         0      0    184   22    1 : tunables    0    0    0 : slabdata      0      0      0
  14. nfs_direct_cache       0      0     80   51    1 : tunables    0    0    0 : slabdata      0      0      0
  15. nfs_inode_cache        0      0    656   24    4 : tunables    0    0    0 : slabdata      0      0      0
  16. hugetlbfs_inode_cache     22     22    360   22    2 : tunables    0    0    0 : slabdata      1      1      0
  17. journal_handle      1360   1360     24  170    1 : tunables    0    0    0 : slabdata      8      8      0
  18. journal_head         512    512     64   64    1 : tunables    0    0    0 : slabdata      8      8      0
  19. revoke_record       2048   2048     16  256    1 : tunables    0    0    0 : slabdata      8      8      0
  20. ext3_inode_cache     307    448    512   32    4 : tunables    0    0    0 : slabdata     14     14      0
  21. ext3_xattr             0      0     48   85    1 : tunables    0    0    0 : slabdata      0      0      0
  22. configfs_dir_cache     73     73     56   73    1 : tunables    0    0    0 : slabdata      1      1      0
  23. user_namespace         0      0    536   30    4 : tunables    0    0    0 : slabdata      0      0      0
  24. posix_timers_cache      0      0    120   34    1 : tunables    0    0    0 : slabdata      0      0      0
  25. rpc_inode_cache        0      0    512   32    4 : tunables    0    0    0 : slabdata      0      0      0
  26. UDP-Lite               0      0    576   28    4 : tunables    0    0    0 : slabdata      0      0      0
  27. xfrm_dst_cache         0      0    320   25    2 : tunables    0    0    0 : slabdata      0      0      0
  28. RAW                  236    280    576   28    4 : tunables    0    0    0 : slabdata     10     10      0
  29. UDP                  224    224    576   28    4 : tunables    0    0    0 : slabdata      8      8      0
  30. tw_sock_TCP          160    160    128   32    1 : tunables    0    0    0 : slabdata      5      5      0
  31. TCP                  156    156   1216   26    8 : tunables    0    0    0 : slabdata      6      6      0
  32. cachefiles_object_jar      0      0    192   21    1 : tunables    0    0    0 : slabdata      0      0      0
  33. fscache_cookie_jar      0      0     56   73    1 : tunables    0    0    0 : slabdata      0      0      0
  34. eventpoll_pwq        510    510     40  102    1 : tunables    0    0    0 : slabdata      5      5      0
  35. sgpool-16            168    168    384   21    2 : tunables    0    0    0 : slabdata      8      8      0
  36. blkdev_queue          93     93   1040   31    8 : tunables    0    0    0 : slabdata      3      3      0
  37. blkdev_requests      360    370    216   37    2 : tunables    0    0    0 : slabdata     10     10      0
  38. biovec-256            50     50   3072   10    8 : tunables    0    0    0 : slabdata      5      5      0
  39. biovec-128           147    147   1536   21    8 : tunables    0    0    0 : slabdata      7      7      0
  40. biovec-64            168    168    768   21    4 : tunables    0    0    0 : slabdata      8      8      0
  41. bip-256               10     10   3136   10    8 : tunables    0    0    0 : slabdata      1      1      0
  42. bip-128                0      0   1600   20    8 : tunables    0    0    0 : slabdata      0      0      0
  43. sock_inode_cache     198    252    384   21    2 : tunables    0    0    0 : slabdata     12     12      0
  44. file_lock_cache      312    312    104   39    1 : tunables    0    0    0 : slabdata      8      8      0
  45. net_namespace          0      0    960   34    8 : tunables    0    0    0 : slabdata      0      0      0
  46. shmem_inode_cache     70     70    456   35    4 : tunables    0    0    0 : slabdata      2      2      0
  47. task_delay_info      497    663     80   51    1 : tunables    0    0    0 : slabdata     13     13      0
  48. taskstats            192    192    328   24    2 : tunables    0    0    0 : slabdata      8      8      0
  49. proc_inode_cache     440    441    376   21    2 : tunables    0    0    0 : slabdata     21     21      0
  50. sigqueue             224    224    144   28    1 : tunables    0    0    0 : slabdata      8      8      0
  51. bdev_cache            96     96    512   32    4 : tunables    0    0    0 : slabdata      3      3      0
  52. sysfs_dir_cache    46855  48025     48   85    1 : tunables    0    0    0 : slabdata    565    565      0
  53. inode_cache         5460   5796    352   23    2 : tunables    0    0    0 : slabdata    252    252      0
  54. dentry              5841   7520    128   32    1 : tunables    0    0    0 : slabdata    235    235      0
  55. buffer_head          605    803     56   73    1 : tunables    0    0    0 : slabdata     11     11      0
  56. mm_struct            363    468    448   36    4 : tunables    0    0    0 : slabdata     13     13      0
  57. signal_cache         294    400    640   25    4 : tunables    0    0    0 : slabdata     16     16      0
  58. sighand_cache        280    360   1344   24    8 : tunables    0    0    0 : slabdata     15     15      0
  59. task_xstate          400    546    832   39    8 : tunables    0    0    0 : slabdata     14     14      0
  60. task_struct          172    240   3216   10    8 : tunables    0    0    0 : slabdata     24     24      0
  61. anon_vma            1938   2890     24  170    1 : tunables    0    0    0 : slabdata     17     17      0
  62. shared_policy_node   4351   5100     24  170    1 : tunables    0    0    0 : slabdata     30     30      0
  63. radix_tree_node     8258   8294    304   26    2 : tunables    0    0    0 : slabdata    319    319      0
  64. idr_layer_cache      502    546    152   26    1 : tunables    0    0    0 : slabdata     21     21      0
  65. dma-kmalloc-8192       0      0   8192    4    8 : tunables    0    0    0 : slabdata      0      0      0
  66. dma-kmalloc-4096       0      0   4096    8    8 : tunables    0    0    0 : slabdata      0      0      0
  67. dma-kmalloc-2048       0      0   2048   16    8 : tunables    0    0    0 : slabdata      0      0      0
  68. dma-kmalloc-1024       0      0   1024   32    8 : tunables    0    0    0 : slabdata      0      0      0
  69. dma-kmalloc-512        0      0    512   32    4 : tunables    0    0    0 : slabdata      0      0      0
  70. dma-kmalloc-256        0      0    256   32    2 : tunables    0    0    0 : slabdata      0      0      0
  71. dma-kmalloc-128        0      0    128   32    1 : tunables    0    0    0 : slabdata      0      0      0
  72. dma-kmalloc-64         0      0     64   64    1 : tunables    0    0    0 : slabdata      0      0      0
  73. dma-kmalloc-32         0      0     32  128    1 : tunables    0    0    0 : slabdata      0      0      0
  74. dma-kmalloc-16         0      0     16  256    1 : tunables    0    0    0 : slabdata      0      0      0
  75. dma-kmalloc-8          0      0      8  512    1 : tunables    0    0    0 : slabdata      0      0      0
  76. dma-kmalloc-192        0      0    192   21    1 : tunables    0    0    0 : slabdata      0      0      0
  77. dma-kmalloc-96         0      0     96   42    1 : tunables    0    0    0 : slabdata      0      0      0
  78. kmalloc-8192          28     28   8192    4    8 : tunables    0    0    0 : slabdata      7      7      0
  79. kmalloc-4096          80     80   4096    8    8 : tunables    0    0    0 : slabdata     10     10      0
  80. kmalloc-2048        3756   3920   2048   16    8 : tunables    0    0    0 : slabdata    245    245      0
  81. kmalloc-1024        2057   2176   1024   32    8 : tunables    0    0    0 : slabdata     68     68      0
  82. kmalloc-512         2072   2144    512   32    4 : tunables    0    0    0 : slabdata     67     67      0
  83. kmalloc-256        40593  41984    256   32    2 : tunables    0    0    0 : slabdata   1312   1312      0
  84. kmalloc-128         1916   2432    128   32    1 : tunables    0    0    0 : slabdata     76     76      0
  85. kmalloc-64         10567  20800     64   64    1 : tunables    0    0    0 : slabdata    325    325      0
  86. kmalloc-32          2824   4224     32  128    1 : tunables    0    0    0 : slabdata     33     33      0
  87. kmalloc-16          6775   7168     16  256    1 : tunables    0    0    0 : slabdata     28     28      0
  88. kmalloc-8          14357  15872      8  512    1 : tunables    0    0    0 : slabdata     31     31      0
  89. kmalloc-192         4452   6552    192   21    1 : tunables    0    0    0 : slabdata    312    312      0
  90. kmalloc-96          3657   4284     96   42    1 : tunables    0    0    0 : slabdata    102    102      0
  91. kmem_cache            42     42    192   21    1 : tunables    0    0    0 : slabdata      2      2      0
  92. kmem_cache_node      384    384     32  128    1 : tunables    0    0    0 : slabdata      3      3      0
复制代码

论坛徽章:
36
IT运维版块每日发帖之星
日期:2016-04-10 06:20:00IT运维版块每日发帖之星
日期:2016-04-16 06:20:0015-16赛季CBA联赛之广东
日期:2016-04-16 19:59:32IT运维版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-19 06:20:00每日论坛发贴之星
日期:2016-04-19 06:20:00IT运维版块每日发帖之星
日期:2016-04-25 06:20:00IT运维版块每日发帖之星
日期:2016-05-06 06:20:00IT运维版块每日发帖之星
日期:2016-05-08 06:20:00IT运维版块每日发帖之星
日期:2016-05-13 06:20:00IT运维版块每日发帖之星
日期:2016-05-28 06:20:00每日论坛发贴之星
日期:2016-05-28 06:20:00
6 [报告]
发表于 2012-11-29 13:57 |只看该作者
回复 5# 独孤九贱
运行的期间,跑了什么流量吗?

内核版本是哪个?


   

论坛徽章:
16
2015亚冠之吉达阿赫利
日期:2015-08-17 11:21:462015年迎新春徽章
日期:2015-03-04 09:58:11酉鸡
日期:2014-12-07 09:06:19水瓶座
日期:2014-11-04 14:23:29天秤座
日期:2014-03-02 08:57:52双鱼座
日期:2014-02-22 13:07:56午马
日期:2014-02-14 11:08:18双鱼座
日期:2014-02-13 11:09:37卯兔
日期:2014-02-06 15:10:34子鼠
日期:2014-01-20 14:48:19戌狗
日期:2013-12-19 09:37:46射手座
日期:2013-12-19 09:33:47
7 [报告]
发表于 2012-11-29 16:44 |只看该作者
本帖最后由 embeddedlwp 于 2012-11-29 16:46 编辑

Unevictable:     1868996 kB


为什么这么多unevictable的pages?

因为是unevictable的,所以即使你drop cache也reclaim不了的。

你运行了怎样的workload呢?

论坛徽章:
0
8 [报告]
发表于 2012-11-29 21:52 |只看该作者
embeddedlwp 发表于 2012-11-29 16:44
Unevictable:     1868996 kB


跑了很多pppoe client,但是出问题后,我把能杀的进程全都给杀了。

我现在重启了机器,发现Cached/Active/Active(file)一直在增长,这种情况如何查找导致原因呢??

论坛徽章:
22
丑牛
日期:2014-08-15 14:32:0015-16赛季CBA联赛之同曦
日期:2017-12-14 15:28:14黑曼巴
日期:2017-08-10 08:14:342017金鸡报晓
日期:2017-02-08 10:39:42黑曼巴
日期:2016-11-15 15:48:38CU十四周年纪念徽章
日期:2016-11-09 13:19:1015-16赛季CBA联赛之同曦
日期:2016-04-08 18:00:03平安夜徽章
日期:2015-12-26 00:06:30程序设计版块每日发帖之星
日期:2015-12-03 06:20:002015七夕节徽章
日期:2015-08-21 11:06:17IT运维版块每日发帖之星
日期:2015-08-09 06:20:002015亚冠之吉达阿赫利
日期:2015-07-03 08:39:42
9 [报告]
发表于 2012-11-29 22:16 |只看该作者
使用top看了吗?

论坛徽章:
16
2015亚冠之吉达阿赫利
日期:2015-08-17 11:21:462015年迎新春徽章
日期:2015-03-04 09:58:11酉鸡
日期:2014-12-07 09:06:19水瓶座
日期:2014-11-04 14:23:29天秤座
日期:2014-03-02 08:57:52双鱼座
日期:2014-02-22 13:07:56午马
日期:2014-02-14 11:08:18双鱼座
日期:2014-02-13 11:09:37卯兔
日期:2014-02-06 15:10:34子鼠
日期:2014-01-20 14:48:19戌狗
日期:2013-12-19 09:37:46射手座
日期:2013-12-19 09:33:47
10 [报告]
发表于 2012-11-30 10:22 |只看该作者
回复 8# 独孤九贱


不懂网络哈。

page是unevictable说明:

- pages owned by ramfs.
- pages mapped into SHM_LOCK'd shared memory regions.
- pages mapped into VM_LOCKED [mlock()ed] VMAs.

看你的workload属于哪种?

Cached/Active/Active(file)一直在增长

说明有进程在频繁读写file。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP