bengalih
Senior Member
wanted to ask some general questions/guidelines about memory utilization and swap file usage on Merlin.
I'm running the latest release (384.6) for my RT-AC68U.
I've been having problems setting up some 3rd party tools (specifically dnscrypt) and wanted to understand how to measure memory utilization and if there is anything special on this device/distribution that I'm overlooking.
While my initial testing is still going on, it appears that I may be getting memory low issues when trying to run dnscrypt install/configuration. While it seems the install/run of this software was the main link in the chain, the issues weren't related just to it. I was getting a "can't fork" error while trying to do a simple grep command - all indicators that I am running out of memory.
I did not have a swap file configured, but it appeared I had plenty of free memory. I have configured a swap file for testing now and I seem to have a little bit better stability (though really still too early to tell). However, even with my swap file configured my memory usage looks like this:
It looks to me like none of the swap file is being used and I have well over half my memory free. The GUI supports this showing less than 50% RAM being utilized. I have never really seen it go beyond this even when I was having my issues.
Based on the above data, is it safe to say that I have plenty of free memory and the swap file, though configured is not used at all? When I did not have the swap file configured and was getting these memory messages I still had ~50% RAM according to "free".
What could be causing these apparent system wide memory shortages even if the system is reporting plenty of RAM (with or without swapon)?
thanks
I'm running the latest release (384.6) for my RT-AC68U.
I've been having problems setting up some 3rd party tools (specifically dnscrypt) and wanted to understand how to measure memory utilization and if there is anything special on this device/distribution that I'm overlooking.
While my initial testing is still going on, it appears that I may be getting memory low issues when trying to run dnscrypt install/configuration. While it seems the install/run of this software was the main link in the chain, the issues weren't related just to it. I was getting a "can't fork" error while trying to do a simple grep command - all indicators that I am running out of memory.
I did not have a swap file configured, but it appeared I had plenty of free memory. I have configured a swap file for testing now and I seem to have a little bit better stability (though really still too early to tell). However, even with my swap file configured my memory usage looks like this:
Code:
admin@RT-AC68U-4C30:/jffs# free
total used free shared buffers cached
Mem: 255700 115016 140684 0 1260 16512
-/+ buffers/cache: 97244 158456
Swap: 262140 0 262140
It looks to me like none of the swap file is being used and I have well over half my memory free. The GUI supports this showing less than 50% RAM being utilized. I have never really seen it go beyond this even when I was having my issues.
Based on the above data, is it safe to say that I have plenty of free memory and the swap file, though configured is not used at all? When I did not have the swap file configured and was getting these memory messages I still had ~50% RAM according to "free".
What could be causing these apparent system wide memory shortages even if the system is reporting plenty of RAM (with or without swapon)?
thanks