It's all about cost, and market segmentation. Buying 500,000 256 MB chips is most likely less expensive than buying 250,000 256 MB chips + 250,000 512 MB chips (even assuming the two chips were the same cost), due to volume. A 50 cents difference per router amounts to 250,000$ - enough to pay the salary of a few low-level executives.
It's running what the router is intended to run: the core firmware, including the DPI engine, IPTraffic, dropbear, Samba, the Avahi daemon, an OpeNVPN server, etc.... LAN traffic would have zero impact on memory, as it's all switched traffic. Internet traffic amounts to 300-400 bytes per tracked connection, so even if I had a torrent with 500 peers connected to me, we'd be talking about 150 KB of RAM. Add a few more KBs per connection for buffering, you're still not going to get close to filling up 200 MB of RAM.
You are too used to the Win32 environment IMHO, where an average application eats 20-100 MB of RAM. Linux is far more optimal in its memory usage than Windows. There's a reason why a relatively busy web server needs 4-6 GB of RAM on Linux, and 16-32 GB of RAM on Windows server. A Linux web server can run with 256-512 MB of RAM. A Windows web server would need at least a couple of gigabytes of RAM.
The RAM had next to zero impact on performance there. His issue was most likely related to wifi and his configuration, not the RAM. RAM provides zero performance increase to a program, provided you still have plenty of free RAM available. That's what some of us in this thread have been trying to tell you all along. Stop thinking about a Windows PC that is starved for more RAM, and think more on how embedded Linux systems work. They are totally different beasts. Bottom line is, an Asus router with 256 MB running only the software that comes with it is not starved for RAM. A big reason for the boost to 512 MB is, quite frankly, purely marketing gimmick. Because bigger numbers make people wrongly assume that the router is better, faster. It's not.
Thanks RMerlin for the additional details and I agree that the ram probably didn't move the performance around too much in the link I provided (I didn't intend to imply that).
But a long time ago I too ran a version of Linux and more ram acted in exactly the same way as it did in a Windows system (more=better). In addition to better ram (faster and with tighter timings) being noticeable on any os used, Linux or Windows based.
What I don't think is appreciated here except for some (like sfx2000) is that merely having free ram is not an indication of having sufficient ram.
If programs are swapped in and out, (or, on the routers, caches and such are flushed, in addition to any other memory management the os is doing) then that is what indicates a ram shortage in the system. Showing results of free ram doesn't 'prove' anything when the router (the actual routing engine) isn't loaded to some significant degree. And I already have said that it is too bad we can't test the router when under maximum (designed) load and see what the effects of more or less ram has. As the router is based on earth based computer systems, more ram will be beneficial at that point, I'm positive.
I agree that bigger numbers in marketing make for easier sales (particularly the spontaneous or uniformed buyers). But this isn't (all of) what is happening here.
As for the cost of providing more ram? Again, not disagreeing with your position, as stated. But that is not the only option either. Instead of comparing the costs of buying 256MB or 512MB ram chips, if I was Asus I would be looking at what contract I could get for 1GB/2GB/4GB ram chips for 100M units instead, that would make more sense in the long term. And I'm sure Asus is doing that (just not at the capacity points I care about).
I am still waiting to be shown actual results of why more or less ram is needed or not. sfx2000 has sufficiently stated why more ram is needed (better than I have) for routers. The rest of this conversation has been in the 'theory' camp, imo.
I will state it once again why I want a router that is better equipped.
I want to be able to use the whole subnet (/24) that Asus allows in it's products.
I want to use all the other features it offers (except for USB attached storage, which I do not care about).
I also want to be able to use any ISP connection at full speed and lowest latency (while the router and network is at or near max load).
Right now, as I've stated before in other posts, my RT-AC68U will peg one core of the processor to 100% and even the second core will hit over 40% when I'm using a (fibre) 100d/30u connection at it's max. Yes, the ram is not maxed out during that point, but there is also nothing else happening on the router when that speed test was running either.
So, is something like what is configured in the link below what I should be aiming for?
http://www.snbforums.com/threads/up...ram-120gb-ssd-10-watts-257.33308/#post-268099
Or, maybe this?
http://www.snbforums.com/threads/ne...-dual-wan-vpn-router.32839/page-2#post-265829
Of course, I also want 10GbE ports on the thing. But I'd be satisfied to have it fast, stable and reliable with 253 users/devices attached right now.
To put this in perspective of quantum computing, more and faster ram along with a high performance processor (bit based), is equivalent to more qubits in the quantum computing world.
http://www.dwavesys.com/press-releases/d-wave-systems-breaks-1000-qubit-quantum-computing-barrier
I just wish I had the space, the money and the know how to put this type of 'compute' power to the task of protecting my 'digital front door' like the little RT-AC68U is attempting to do now.
http://www.dwavesys.com/d-wave-two-system
As the above system is estimated at between $10M and $15M, I will keep trying to get answers here.