RAMFS doesn't uses swap (TMPFS does). So I mount the FS
cd /mnt/; mkdir SOMETHING; mount -t ramfs -o size=1500m ramfs /mnt/SOMETHING; cd /mnt/SOMETHING
I generate a testfile:
dd if=/dev/zero of=testfile_500MB bs=524288000 count=1
I cp the test file (from memory to memory)
time cp testfile_500MB testfile_500MB_cptestfile
real 0m0.599s
user 0m0.008s
sys 0m0.592s
I have one DDR2-1066 module in my PC. What is the bottleneck? According to this wikipedia article:
http://en.wikipedia.org/wiki/List_of_device_bandwidths
it would need to do more then 10 GByte/sec! It's waay not more 10 GByte/sec
500 MByte in 0.599 sec = 835 MByte/sec. It's slow.
Is the CPU the bottleneck? OR what? :O (E7300 @ 2.66GHz)
UPDATE: is measuring a "cp" with "time" a good thing?