Part of htop bar is in a different colour - this is the amount of used memory excluding cache and is the number shown to the right.
There is no "reserved" memory. The colours on the bar represent:So I take it this amount is reserved?
As mentioned above, the vast majority of memory usage will be down to how the USB drive is being used rather than the firmware version.I actually find this firmware version using less memory and cache less than previous ones.
As mentioned above, the vast majority of memory usage will be down to how the USB drive is being used rather than the firmware version.
The cache usage will change over time as data is written or deleted from the USB drive. Given that you have some swap used I'd guess that a reasonably large file has been deleted from the USB drive (perhaps a temporary file) and that has freed up most of the cache.And that usage hasn't changed for me between firmwares. And there is clearly a difference here.
# free
total used free shared buffers cached
Mem: 934032 359068 574964 1688 1004 44524
-/+ buffers/cache: 313540 620492
Swap: 0 0 0
# dd if=/dev/zero of=/tmp/mnt/ClickUSB2/1GB-file bs=1k count=1048576
1048576+0 records in
1048576+0 records out
# free
total used free shared buffers cached
Mem: 934032 903796 30236 1680 404 561840
-/+ buffers/cache: 341552 592480
Swap: 0 0 0
# rm /tmp/mnt/ClickUSB2/1GB-file
# free
total used free shared buffers cached
Mem: 934032 334776 599256 1680 404 22152
-/+ buffers/cache: 312220 621812
Swap: 0 0 0
Agreed. RMerlin has speculated in the past about changing the "free memory" shown to something more understandable because he was fed up with people asking this same question over and over again. It's a shame he never did that.And the table should have an "In use" row. A user can figure out how much is in use by calculating "Total - Free - Cache - Buffers", but it should be easier than that. "In use" would be more useful than any of "Free", "Cache" or "Buffers" as they stand, and would allow the sort of comparison the OP wants to do. (The current "Free" isn't that useful as it mainly indicates lack of cache use.)
The cache usage will change over time as data is written or deleted from the USB drive. Given that you have some swap used I'd guess that a reasonably large file has been deleted from the USB drive (perhaps a temporary file) and that has freed up most of the cache.
I've just remembered that when you initially log into the GUI (and subsequent logins at least 10 minutes apart) the router will flush the cache. So that's probably why you're mostly seeing low cache usage in the GUI. I don't remember this happening in the past.That happened when updating the firmware as the cache goes back to 0. However what I noticed in the same time frame so about 5 days up time i'm sitting with about 450+ free ram. By the same 5 days on the pervious firmware that would have all been cached and I would be 30-50mb free memory. I will watch it over the next couple weeks so see if its any different.
Obviously not an issue since unused ram is wasted ram just an observation.
I did wonder that myself.Could that be the only reason that's there?
If you're going to all that effort perhaps you could have a look at this other GUI problem?Anyway, I've made a PR improving the memory display, making it resemble htop more.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!