What's new

Release Asuswrt-Merlin 386.9 is now available for AC models

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

After a very clean upgrade and numerous observations across 10 days, I’d like to report that my RT-AC86U with 386.9 is suffering from the same “memory leak” described in some of the 388.1 threads. Further investigation using top -m indeed confirms that networkmap has been steadily growing at a rate of 2MB every 24 hours. Everything else remains unchanged in terms of memory usage.

I did not notice this behavior with 386.5_2 or 386.7_2. I realize networkmap is closed source and there’s not much @RMerlin can do about this, but I thought I’d share my findings here as a reference.

It would actually be nice to get feedback from other forum members about their networkmap size behavior under 386.9, particularly for the RT-AC86U. Thanks in advance.
I'm also seeing this on my AC86u
Until a power interruption yesterday, however, I had been experiencing a trouble-free 50-ish day uptime otherwise, and fully expected it to continue until upgrading to 386.10
 
I'm also seeing this on my AC86u
Until a power interruption yesterday, however, I had been experiencing a trouble-free 50-ish day uptime otherwise, and fully expected it to continue until upgrading to 386.10
Thanks for your confirmation @heysoundude. And I fully agree - despite the observed memory leak with networkmap, everything works very well from an operational standpoint.
 
It would actually be nice to get feedback from other forum members about their networkmap size behavior under 386.9, particularly for the RT-AC86U. Thanks in advance.
So far, I see networkmap VmSize increase by 4 kB after every time it spawns asusdiscovery.
Code:
cat /proc/$(pidof networkmap)/status | grep ^Vm
 
So, I hit up ChatGPT:
chatGPT-Merlin.png

Bash:
#!/bin/sh

MAX_JFFS_SIZE=32 # Max size of JFFS partition in MB
MIN_FREE_SPACE=5 # Min free space on JFFS partition in MB

while true; do
  JFFS_SIZE=$(df -m | grep '/jffs' | awk '{print $2}')
  FREE_SPACE=$(df -m | grep '/jffs' | awk '{print $4}')
 
  if [ "$JFFS_SIZE" -gt "$MAX_JFFS_SIZE" ] || [ "$FREE_SPACE" -lt "$MIN_FREE_SPACE" ]; then
    logger "JFFS partition too large or low on free space, cleaning up..."
    jffs2reset -y && reboot
  fi
 
  sleep 3600 # Sleep for 1 hour before checking again
done

where does one stick that if they want to give it a shot?
 
and after seeing @dave14305 's post, I went back to the machina:

ChatGPT2.png


Bash:
#!/bin/sh

MAX_JFFS_SIZE=32 # Max size of JFFS partition in MB
MIN_FREE_SPACE=5 # Min free space on JFFS partition in MB

if [ "$1" == "add" ] && [ "$2" == "ASUS" ]; then
  JFFS_SIZE=$(df -m | grep '/jffs' | awk '{print $2}')
  FREE_SPACE=$(df -m | grep '/jffs' | awk '{print $4}')

  if [ "$JFFS_SIZE" -gt "$MAX_JFFS_SIZE" ] || [ "$FREE_SPACE" -lt "$MIN_FREE_SPACE" ]; then
    logger "JFFS partition too large or low on free space, cleaning up..."
    jffs2reset -y && reboot
  fi
fi

chatgpt3.png
 
and after seeing @dave14305 's post, I went back to the machina:

View attachment 48240

Bash:
#!/bin/sh

MAX_JFFS_SIZE=32 # Max size of JFFS partition in MB
MIN_FREE_SPACE=5 # Min free space on JFFS partition in MB

if [ "$1" == "add" ] && [ "$2" == "ASUS" ]; then
  JFFS_SIZE=$(df -m | grep '/jffs' | awk '{print $2}')
  FREE_SPACE=$(df -m | grep '/jffs' | awk '{print $4}')

  if [ "$JFFS_SIZE" -gt "$MAX_JFFS_SIZE" ] || [ "$FREE_SPACE" -lt "$MIN_FREE_SPACE" ]; then
    logger "JFFS partition too large or low on free space, cleaning up..."
    jffs2reset -y && reboot
  fi
fi

View attachment 48241
jffs2reset is used in OpenWrt, but not Asuswrt.
 
Bash:
#!/bin/sh

MAX_JFFS_SIZE=32 # Max size of JFFS partition in MB
MIN_FREE_SPACE=5 # Min free space on JFFS partition in MB

if [ "$1" == "add" ] && [ "$2" == "ASUS" ]; then
  JFFS_SIZE=$(df -m | grep '/jffs' | awk '{print $2}')
  FREE_SPACE=$(df -m | grep '/jffs' | awk '{print $4}')

  if [ "$JFFS_SIZE" -gt "$MAX_JFFS_SIZE" ] || [ "$FREE_SPACE" -lt "$MIN_FREE_SPACE" ]; then
    logger "JFFS partition too large or low on free space, cleaning up..."
    echo 2 > /proc/sys/vm/drop_caches
  fi
fi

Is the latest from ChatGPT based on @dave14305 's input...
 
Bash:
#!/bin/sh

MAX_JFFS_SIZE=32 # Max size of JFFS partition in MB
MIN_FREE_SPACE=5 # Min free space on JFFS partition in MB

if [ "$1" == "add" ] && [ "$2" == "ASUS" ]; then
  JFFS_SIZE=$(df -m | grep '/jffs' | awk '{print $2}')
  FREE_SPACE=$(df -m | grep '/jffs' | awk '{print $4}')

  if [ "$JFFS_SIZE" -gt "$MAX_JFFS_SIZE" ] || [ "$FREE_SPACE" -lt "$MIN_FREE_SPACE" ]; then
    logger "JFFS partition too large or low on free space, cleaning up..."
    echo 2 > /proc/sys/vm/drop_caches
  fi
fi

Is the latest from ChatGPT based on @dave14305 's input...
Just as useless.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top