On an AX88U right now. Currently I've got diversion running with the large list and Im noticing the free ram is under 200mb yet my swap file of 2gb seems to be completely free. Is there a reason why the swap file is not in use?
On an AX88U right now. Currently I've got diversion running with the large list and Im noticing the free ram is under 200mb yet my swap file of 2gb seems to be completely free. Is there a reason why the swap file is not in use?
Morning all from Oz. Just wanted to say thanks to everyone for all the input and views. The key points I have taken are: 1. only use usb/swap/entware/scripts if you really need to 2. if you do need, do it properly (e.g. don't use a thumb drive) I have got by fine without scripts for the last 2...
Morning all from Oz. Just wanted to say thanks to everyone for all the input and views. The key points I have taken are: 1. only use usb/swap/entware/scripts if you really need to 2. if you do need, do it properly (e.g. don't use a thumb drive) I have got by fine without scripts for the last 2...
It checks for specific swap size presence, but in my experience never uses it. Perhaps very small portion during large blocklists update on 256/512MB RAM router models. Another interesting observation is 256MB RAM AC68U has about about the same RAM left after boot as 512MB RAM AC86U. The firmware on HND models takes more RAM. As a result both routers can run about the same custom scripts before they need any swap.
In one very specific place, if a shared whitelist that needs to be processed is more than 150 lines, it also checks the swap size. If it is under 1G, or under 2G while DNS caching is active, it processes the list in 150 line chunks. That is not to say that in either case it uses the swap.
According to my RTRMON stats, only a very small percentage is in use at all times... But like you said, it's EXTREMELY rare if this number ever budges.
I'm not a software guy and never checked the code, but I've seen "cannot fork" error and remember searching for information what's going on. Then I found Skynet wants 2GB swap as some sort of workaround and the error indeed disappeared. I would say 2GB is needed, but not for swapping.
A slightly different thing. Once something is paged out to the swap, I think it stays there, maybe until the program to which it is allocated terminates.