What's new

RTRMON RTRMON v2.3.1 -Mar 8, 2026- Monitor your Router's Health (New: Wireguard, AMTM, Network Conn/Bandwidth/Diag + Port Scanner + Speedtest) | v2.4.0Beta4!

HI, only just seen the update but I have tested the speed test against both WAN interfaces and it looks to be working as expected and I can see the traffic going out of the correct interface.

Cheers
 
HI, only just seen the update but I have tested the speed test against both WAN interfaces and it looks to be working as expected and I can see the traffic going out of the correct interface.

Cheers
That's fantastic news! Thanks for testing this out, @PhunkyPhil!
 
Thank you for the report... Could you please share the output of this command with me:

Code:
cat /proc/meminfo

Standard unit notation will be on my list. Thanks!

Here it is. Pls advise, where I should put such issues - here or on GitHub? Or cross-reference in both?

Code:
cat /proc/meminfo
MemTotal:        2049224 kB
MemFree:           77788 kB
MemAvailable:     838008 kB
Buffers:           22940 kB
Cached:           788948 kB
SwapCached:            0 kB
Active:           636520 kB
Inactive:         259104 kB
Active(anon):      93436 kB
Inactive(anon):      568 kB
Active(file):     543084 kB
Inactive(file):   258536 kB
Unevictable:       13668 kB
Mlocked:           13668 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:               208 kB
Writeback:             0 kB
AnonPages:         97300 kB
Mapped:            35188 kB
Shmem:              4000 kB
Slab:             363772 kB
SReclaimable:      29732 kB
SUnreclaim:       334040 kB
KernelStack:        3840 kB
PageTables:         3348 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     1024612 kB
Committed_AS:     331764 kB
VmallocTotal:   263061440 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
Percpu:              800 kB
CmaTotal:         573440 kB
CmaFree:            3072 kB
 
Here it is. Pls advise, where I should put such issues - here or on GitHub? Or cross-reference in both?

Code:
cat /proc/meminfo
MemTotal:        2049224 kB
MemFree:           77788 kB
MemAvailable:     838008 kB
Buffers:           22940 kB
Cached:           788948 kB
SwapCached:            0 kB
Active:           636520 kB
Inactive:         259104 kB
Active(anon):      93436 kB
Inactive(anon):      568 kB
Active(file):     543084 kB
Inactive(file):   258536 kB
Unevictable:       13668 kB
Mlocked:           13668 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:               208 kB
Writeback:             0 kB
AnonPages:         97300 kB
Mapped:            35188 kB
Shmem:              4000 kB
Slab:             363772 kB
SReclaimable:      29732 kB
SUnreclaim:       334040 kB
KernelStack:        3840 kB
PageTables:         3348 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     1024612 kB
Committed_AS:     331764 kB
VmallocTotal:   263061440 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
Percpu:              800 kB
CmaTotal:         573440 kB
CmaFree:            3072 kB
Doesn't matter... but I'd prefer here, as this is where you would also be able to get further community support from others who may have run into the same issue.

What does your Merlin UI show?

1775170941242.png
 
Dear Mr. @Viktor Jaep,

A few issues for your project (I do not know, if I should post feedback here or on in GitHub <- this seems more reasonable):
  1. Incorrect double-size Mem Total (RAM) reported on Asus GT-AXE16000
  2. Use IEC standard unit notation (KiB, MiB, GiB, TiB)
Thanks and have a nice day! ✌️
So this is why...

Your router is reporting slightly over 2048MiB, so the next value up it goes to is 4096.

Code:
memtotal=2049224
totalreportedphysmem=$(awk 'BEGIN { printf "%.0f", ('"$memtotal"' / 1000) }')
next_power_of_2=$(awk -v num="$totalreportedphysmem" '
    BEGIN {
     if (num == 0) {
       print 1;
       exit;
     }
     num--;
     num = or(num, rshift(num, 1));
     num = or(num, rshift(num, 2));
     num = or(num, rshift(num, 4));
     num = or(num, rshift(num, 8));
     num = or(num, rshift(num, 16));
     # num = or(num, rshift(num, 32));
     num++;
     print num;
     }
     ')
echo $next_power_of_2

Guess we'll need to find a workaround... nice. ;)
 
So this is why...

Your router is reporting slightly over 2048MiB, so the next value up it goes to is 4096.

Code:
memtotal=2049224
totalreportedphysmem=$(awk 'BEGIN { printf "%.0f", ('"$memtotal"' / 1000) }')
next_power_of_2=$(awk -v num="$totalreportedphysmem" '
    BEGIN {
     if (num == 0) {
       print 1;
       exit;
     }
     num--;
     num = or(num, rshift(num, 1));
     num = or(num, rshift(num, 2));
     num = or(num, rshift(num, 4));
     num = or(num, rshift(num, 8));
     num = or(num, rshift(num, 16));
     # num = or(num, rshift(num, 32));
     num++;
     print num;
     }
     ')
echo $next_power_of_2

Guess we'll need to find a workaround... nice. ;)

Isn't this the same Use IEC standard unit notation (KiB, MiB, GiB, TiB) issue ?
Because:
In reality: 2048*1024=2097152 KiB (real RAM module size, I don't believe that the module is somehow "sawed-off")
anything bellow, like 2097152 kiB - 2049224 (kb/Kib?)=47'928 KiB should be reserved memory as resources for CPU/system/devices...?

Hope Artemis II onboard do not do this sh*t, as in Mars whichever probe imperial=>metric conversion a few decades ago...;)
 
Isn't this the same Use IEC standard unit notation (KiB, MiB, GiB, TiB) issue ?
Because:
In reality: 2048*1024=2097152 KiB (real RAM module size, I don't believe that the module is somehow "sawed-off")
anything bellow, like 2097152 kiB - 2049224 (kb/Kib?)=47'928 KiB should be reserved memory as resources for CPU/system/devices...?

Hope Artemis II onboard do not do this sh*t, as in Mars whichever probe imperial=>metric conversion a few decades ago...;)
Yep... this is the problem exactly. My math was using 1000 (for Kilobytes), but I need to make some conversions throughout the code to start using KiB, which would fix all this.
 
Good morning! RTRMON v2.4.0 Beta 4 is available with a few memory-related fixes:

What's new?
- PATCH: Fixed a bug
that was detecting 4GB of RAM on a GT-AXE16000 when it was only supposed to be showing 2GB. This was due to the /proc/meminfo showing a value slightly higher than 2GB, and would round to the next value up (4GB) due to a conversion issue. I am now treating this as GiB/MiB in order to determine the correct RAM value. Thanks to @kriukas!
- PATCH: I have revamped the memory values on page 1 to reflect the same exact values you would be able to see in the Merlin UI under the System Info tab. While the values are in fact all MiB, they are notated as MB, just like in the Merlin UI, to cut down on confusion. I have also added the "Memory Available" values as an additional metric, like the UI shows.

Download link:
Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/RTRMON/develop/rtrmon.sh" -o "/jffs/scripts/rtrmon.sh" && chmod 755 "/jffs/scripts/rtrmon.sh"

Significant Screenshots:

1775315577728.png

Merlin UI values that match up with the RTRMON values above:
1775315592876.png
 

Similar threads

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!
Back
Top