<div dir="auto">Hi Hao</div><div dir="auto"><br></div><div dir="auto">This suggests a memory leak somewhere.</div><div dir="auto">You can diagnose a memory leak with <b>pprof</b> tool.</div><div dir="auto"><br></div><div dir="auto">See the following tutorial on how to use pprof:</div><div dir="auto"><div>Debug Golang Memory Leaks with Pprof - by Team CodeReliant</div><div><a href="https://www.codereliant.io/p/memory-leaks-with-pprof">https://www.codereliant.io/p/memory-leaks-with-pprof</a></div><br></div><div dir="auto">Once you find the bug, please open an issue on ndnd GitHub repository.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div><div dir="auto"><br><div class="gmail_quote gmail_quote_container" dir="auto"><div dir="ltr" class="gmail_attr">On Tue, Jun 17, 2025 at 22:39 郝广宇 <<a href="mailto:haoguangyu@chorustek.com">haoguangyu@chorustek.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div><font style="color:rgb(0,0,0)">







<p></p><div style="font-family:Helvetica,Arial,sans-serif;display:block!important;height:auto!important;background-image:none!important;background-position:0% 0%!important;background-size:auto!important;background-repeat:repeat!important;background-origin:padding-box!important;background-clip:border-box!important;opacity:1!important;font-size:12px!important;text-align:left!important;background-color:rgb(255,255,255);color:rgb(0,0,0)"><strong style="font-family:Helvetica,Arial,sans-serif;display:block!important;height:auto!important;background-image:none!important;background-position:0% 0%!important;background-size:auto!important;background-repeat:repeat!important;background-origin:padding-box!important;background-clip:border-box!important;opacity:1!important;font-size:12px!important;text-align:left!important;background-color:rgb(255,255,255);color:rgb(0,0,0)"><p style="text-align:center;font-family:Helvetica,Arial,sans-serif"><font style="font-family:Helvetica,Arial,sans-serif;color:rgb(255,0,0)"><strong style="font-family:Helvetica,Arial,sans-serif">External Email</strong><br></font></p></strong><br><hr style="font-family:Helvetica,Arial,sans-serif"></div>I’m using <span>ndnd</span> with the sample configuration file, and I’ve noticed that after running for a while, the memory usage keeps increasing.<p></p>
<p>Do you know what might be causing this? Thanks</p><p>config</p><p># YaNFD Sample Configuration</p><p># This file is autogenerated by cmd/confgen/main.go</p><p><br></p><p>core:</p><p>  # Logging level</p><p>  log_level: INFO</p><p>  # Output log to file</p><p>  log_file: ""</p><p><br></p><p>faces:</p><p>  # Size of queues in the face system</p><p>  queue_size: 1024</p><p>  # Enables or disables congestion marking</p><p>  congestion_marking: true</p><p>  # If true, face threads will be locked to processor cores</p><p>  lock_threads_to_cores: false</p><p><br></p><p>  udp:</p><p>    # Whether to enable unicast UDP listener</p><p>    enabled_unicast: true</p><p>    # Whether to enable multicast UDP listener</p><p>    enabled_multicast: true</p><p>    # Port used for unicast UDP faces</p><p>    port_unicast: 6363</p><p>    # Port used for multicast UDP faces</p><p>    port_multicast: 56363</p><p>    # IPv4 address used for multicast UDP faces</p><p>    multicast_address_ipv4: <a href="http://224.0.23.170" target="_blank">224.0.23.170</a></p><p>    # IPv6 address used for multicast UDP faces</p><p>    multicast_address_ipv6: ff02::114</p><p>    # Lifetime of on-demand faces (in seconds)</p><p>    lifetime: 600</p><p>    # Default MTU for UDP faces</p><p>    default_mtu: 1420</p><p><br></p><p>  tcp:</p><p>    # Whether to enable TCP listener</p><p>    enabled: true</p><p>    # Port used for unicast TCP faces</p><p>    port_unicast: 6363</p><p>    # Lifetime of on-demand faces (in seconds)</p><p>    lifetime: 600</p><p>    # Reconnect interval for permanent faces (in seconds)</p><p>    reconnect_interval: 10</p><p><br></p><p>  unix:</p><p>    # Whether to enable Unix stream transports</p><p>    enabled: true</p><p>    # Location of the socket file</p><p>    # On Windows, uses ${TEMP}<a href="http://\\nfd\\nfd.sock" target="_blank">\\nfd\\nfd.sock</a></p><p>    # On Mac, uses /var/run/nfd/nfd.sock</p><p>    # Uncomment the line below to manually set socket path</p><p>    # socket_path: /run/nfd/nfd.sock</p><p><br></p><p>  websocket:</p><p>    # Whether to enable WebSocket listener</p><p>    enabled: true</p><p>    # Bind address for WebSocket listener</p><p>    bind: ""</p><p>    # Port for WebSocket listener</p><p>    port: 9696</p><p>    # Whether to enable TLS</p><p>    tls_enabled: false</p><p>    # TLS certificate path (relative to the config file)</p><p>    tls_cert: ""</p><p>    # TLS private key (relative to the config file)</p><p>    tls_key: ""</p><p><br></p><p>  http3:</p><p>    # Whether to enable HTTP/3 WebTransport listener</p><p>    enabled: false</p><p>    # Bind address for HTTP/3 WebTransport listener</p><p>    bind: ""</p><p>    # Port for HTTP/3 WebTransport listener</p><p>    port: 443</p><p>    # TLS certificate path (relative to the config file)</p><p>    tls_cert: ""</p><p>    # TLS private key (relative to the config file)</p><p>    tls_key: ""</p><p><br></p><p>fw:</p><p>  # Number of forwarding threads</p><p>  threads: 16</p><p>  # Size of queues in the forwarding system</p><p>  queue_size: 1024</p><p>  # If true, face threads will be locked to processor cores</p><p>  lock_threads_to_cores: false</p><p><br></p><p>mgmt:</p><p>  # Controls whether management over /localhop is enabled or disabled</p><p>  allow_localhop: false</p><p><br></p><p>tables:</p><p><br></p><p>  content_store:</p><p>    # Capacity of each forwarding thread's content store (in number of Data packets). Note that the</p><p>    # total capacity of all content stores in the forwarder will be the number of threads</p><p>    # multiplied by this value. This is the startup configuration value and can be changed at</p><p>    # runtime via management.</p><p>    capacity: 1024</p><p>    # Whether contents will be admitted to the Content Store.</p><p>    admit: true</p><p>    # Whether contents will be served from the Content Store.</p><p>    serve: true</p><p>    # Cache replacement policy to use in each thread's content store.</p><p>    replacement_policy: lru</p><p><br></p><p>  dead_nonce_list:</p><p>    # Lifetime of entries in the Dead Nonce List (milliseconds)</p><p>    lifetime: 6000</p><p><br></p><p>  network_region:</p><p>    # List of prefixes that the forwarder is in the producer region for</p><p>    regions: []</p><p><br></p><p>  rib:</p><p>    # Enables or disables readvertising to the routing daemon</p><p>    readvertise_nlsr: true</p><p><br></p><p>  fib:</p><p>    # Selects the algorithm used to implement the FIB</p><p>    # Allowed options: nametree, hashtable</p><p>    algorithm: nametree</p><p><br></p><p>    hashtable:</p><p>      # Specifies the virtual node depth. Must be a positive number.</p><p>      m: 5</p><p>General NFD status:</p><p>                 version=v1.5.2</p><p>               startTime=2025-06-13 23:18:14.669 +0800 CST</p><p>             currentTime=2025-06-18 10:37:41.563 +0800 CST</p><p>                  uptime=107h19m26.894s</p><p>        nNameTreeEntries=0</p><p>             nFibEntries=26</p><p>             nPitEntries=1</p><p>    nMeasurementsEntries=0</p><p>              nCsEntries=16384</p><p>            nInInterests=373947</p><p>           nOutInterests=334162</p><p>                 nInData=1378299</p><p>                nOutData=371297</p><p>                nInNacks=0</p><p>               nOutNacks=0</p><p>     nSatisfiedInterests=371297</p><p>   nUnsatisfiedInterests=2486</p></font></div><div><u></u><u></u></div>
_______________________________________________<br>
Nfd-dev mailing list<br>
<a href="mailto:Nfd-dev@lists.cs.ucla.edu" target="_blank">Nfd-dev@lists.cs.ucla.edu</a><br>
<a href="https://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" rel="noreferrer" target="_blank">https://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a><br>
</blockquote></div></div>