[haiku-bugs] Re: [Haiku] #17208: Memory usage constantly increases on network with lots of devices

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Thu, 03 Mar 2022 20:00:17 -0000

#17208: Memory usage constantly increases on network with lots of devices
---------------------------------+----------------------
  Reporter:  pakyr               |      Owner:  nobody
      Type:  bug                 |     Status:  new
  Priority:  critical            |  Milestone:  R1/beta4
 Component:  Network & Internet  |    Version:  R1/beta3
Resolution:                      |   Keywords:
Blocked By:                      |   Blocking:
  Platform:  All                 |
---------------------------------+----------------------
Comment (by waddlesplash):

 I managed to reproduce this, though the rate is much slower for me (0.1MB
 every 3-10 seconds.) When it is occurring, more and more slab areas are
 created, e.g.
 {{{
 slab memory manager: created area 0xffffffffb0801000 (240115)
 slab memory manager: created area 0xffffffffb1001000 (240117)
 }}}
 So, I dropped into KDL and dumped all object caches (includes net_buffers
 and the default malloc heap), exited, waited a while (without doing
 anything), then did it again. Here are just the differences:
 {{{
             address                   name  objsize    align    usage
 empty  usedobj    total    flags
 -0xffffffff82006570    block allocator: 48       48        8  6066176
 0   124381   124404 80000000
 +0xffffffff82006570    block allocator: 48       48        8  6881280
 0   141051   141120 80000000
 -0xffffffff82006720    block allocator: 64       64       64  2445312
 0    37593    37611 80000000
 +0xffffffff82006720    block allocator: 64       64       64  2527232
 0    36003    38871 80000000
 -0xffffffff82006de0   block allocator: 128      128      128 14479360
 0   109577   109585 80000000
 +0xffffffff82006de0   block allocator: 128      128      128 17960960
 0   135930   135935 80000000
 -0xffffffff82008510   block allocator: 256      256      256 16846848
 0    61686    61695 80000000
 +0xffffffff82008510   block allocator: 256      256      256 20885504
 0    76482    76485 80000000
 -0xffffffff82008a80   block allocator: 448      448        8 21102592
 0    46366    46368 80000000
 +0xffffffff82008a80   block allocator: 448      448        8 27103232
 0    59551    59553 80000000
 -0xffffffff8200b800  block allocator: 4096     4096     4096   458752
 1       86      112 88000000
 +0xffffffff8200b800  block allocator: 4096     4096     4096   458752
 1       85      112 88000000
 -0xffffffff8200c800  block allocator: 8192     8192     8192   655360
 0       76       80 88000000
 +0xffffffff8200c800  block allocator: 8192     8192     8192   655360
 0       77       80 88000000
 -0xffffffff8200de00             cache refs       16        8   794624
 0    48815    48888        0
 +0xffffffff8200de00             cache refs       16        8  1011712
 0    61994    62244        0
 -0xffffffff8200d8c0           vnode caches      224        8 10526720
 0    46251    46260        0
 +0xffffffff8200d8c0           vnode caches      224        8 13529088
 0    59451    59454        0
 -0xffffffff8200d540            null caches      192        8    81920
 0      420      420        0
 +0xffffffff8200d540            null caches      192        8    86016
 0      429      441        0
 -0xffffffff823adc48          cached blocks      104        8  5242880
 0    49705    50400 20000000
 +0xffffffff823adc48          cached blocks      104        8  6815744
 0    63165    65520 20000000
 -0xffffffff823bca00    block cache buffers     2048        8 203948032
 0    99412    99584 20000000
 +0xffffffff823bca00    block cache buffers     2048        8 258998272
 0   126330   126464 20000000
 }}}
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/17208#comment:19>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: