Thu Apr 05, 2012 2:20 am
Justanick said:
The most of the Ram on the SSD are using for the mapping tables and not for cache for write data.
Try it with a stick. A cheap 2GB free gift is doing the swap job and as SVN cache for more than 2 years on the router with dd-wrt.
Just out of curiosity, did you happen to record the capacity of the cheap 2GB stick down to the byte when you started using it, and what it is now? It will be different by MBs. A router application has very different behavior from a maxed-out-RAM, multi-tasking Linux system with at least one user who"s scrolling through documents, caching significant-sized web pages, watching videos, listening to audio files/streams, and literally hundreds of subprocesses supporting all of the above, including anti-virus scanning, memory management, network management, process management. Start running enough apps and services to max out your memory to force swapping, set up "top" running in a window and watch things bouncing around as you go about your daily routine and you"ll get an idea about how how hard life is for your swap partition.
How often is a router getting page misses? Not many if you have the right amount of RAM – it depends on what the traffic load is. It will be a lot different for a small office group LAN router moving documents, e-mail, and a few streams vs. a large site WAN interface carrying tons of video streams, VOIP sessions, e-mail (mostly spam not seen on LANs), lots of file transfers, and who-knows-what-else.
For the SVN cache, how many users is it supporting, how many files are changed on each update, how often are updates done, how big are the changes that are made, and how big are the files? Other than establishing a new local copy, the changes are very small and relatively few in number compared to network services like e-mail, web pages, file transfers, video and audio streams (always new data), VOIP, etc.
SSDs only use the latest, largest flash devices which have the best longevity (which has been improving with each generation) and made to the highest quality standards. They do have RAM data buffers because of LBA – even with Class 10 devices they would be way too slow to replace hard drives without buffers, as even the slowest 5,400 RPM drives have better transfer rates than the most expensive, non-custom SSDs (and guess what the most expensive SSDs have – lots of the fastest RAM data buffers). Flash devices also have widely-differing performance with different block and file sizes. Reconfigure a flash drive with a variety of block sizes and then transfer various sizes of files, particularly over time so that things get nice and fragmented into chunks bigger than the block size and data buffer capacity. They can get positively molasses-in-January slow in the worst-case mixes.
As they say in the commercials, YMMV … widely.
The best things in life aren't things ... but, a Pi comes pretty darned close!

"Education is not the filling of a pail, but the lighting of a fire." -- W.B. Yeats
In theory, theory & practice are the same - in practice, they aren't!!!