Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Fix memory RRD initialization. #14011 maybe 23.09?

    Scheduled Pinned Locked Moved Plus 23.09 Development Snapshots (Retired)
    redminememory highrrdbooterror
    1 Posts 1 Posters 410 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JonathanLeeJ
      JonathanLee
      last edited by JonathanLee

      Hello fellow Netgate community members can you please help?

      This patch was also not installed in 23.05,

      Has anyone else noticed this?

      https://redmine.pfsense.org/issues/14011

      I had to reapply this in 23.05 to resolve it after update.

      I like how this removes any left over items in memory on reboots. It is nice to start fresh. Could help with protection from reboot stack overflows also.

      From: jim-p <jimp@netgate.com>
      Date: Thu, 30 Mar 2023 08:38:27 -0400
      Subject: [PATCH] Fix memory RRD initialization. Fixes #14011
      
      ---
       src/etc/inc/rrd.inc | 2 +-
       1 file changed, 1 insertion(+), 1 deletion(-)
      
      diff --git a/src/etc/inc/rrd.inc b/src/etc/inc/rrd.inc
      index 1184ace017b..a0e0600a83e 100644
      --- a/src/etc/inc/rrd.inc
      +++ b/src/etc/inc/rrd.inc
      @@ -639,7 +639,7 @@ function enable_rrd_graphing() {
       
       		/* enter UNKNOWN values in the RRD so it knows we rebooted. */
       		if (platform_booting()) {
      -			mwexec("$rrdtool update $rrddbpath$ifname$mem N:U:U:U:U:U");
      +			mwexec("$rrdtool update $rrddbpath$ifname$mem N:U:U:U:U:U:U:U:U");
       		}
       
       		/* Memory stats gathering function. */
      

      Make sure to upvote

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.