nobody laughed... oh well, I had to make it my sig![]()
I found a way to get a really fast swap file!!! You need busybox or some other form of mkswap.
Code:dd if=/dev/zero of=/ram/awsomeswap bs=1024 count=16384 mkswap -v0 /ram/awsomeswap 16384 /bin/sync /sbin/swapon /ram/awsomeswap
nobody laughed... oh well, I had to make it my sig![]()
<pre>dd if=/dev/zero of=/ram/awsomeswap bs=1024 count=16384
mkswap -v0 /ram/awesomeswap 16384
sync
swapon /ram/awesomeswap</pre>
GOOD JOKE!!!!
Nice try, but nobody understand it. You should post this on April 1st
I will explain it: To create a swap-file in RAM is no good idea. But indeed, it will be very fast. And the best size would be to take the whole RAM as a swap-file.
LMAO! Sorry, that's my style... sorry
wget -q -O - "http://wiki.openezx.org/Useraniel_Santos" | grep sane
<pre>dd if=/dev/zero of=/ram/awsomeswap bs=1024 count=16384
mkswap -v0 /ram/awesomeswap 16384
sync
swapon /ram/awesomeswap</pre>
Wonderful one. HEHEHHEHEHE. Good tut, guy.
have you test it?
i think it may more slow then not use ram as swap
====================
When You Learn,Teach,
When You Get,Give.
====================
this is a joke blue_stone. Using a ramdisk for a swap file makes no sense (not unlike me)
<pre>dd if=/dev/zero of=/ram/awsomeswap bs=1024 count=16384
mkswap -v0 /ram/awesomeswap 16384
sync
swapon /ram/awesomeswap</pre>
What a funny invention![]()
btw swapfile used for Emulate memory on any external disk space, and use phone memory for that - does it a dead loop? 8O hehe
But moved swapfile to SDCard is a better solution i think. todays SDCard have better speed than buildin phone memory.
It _is_ some kind of dead loop.It would be much more effectively to use free RAM directly.This is just kind of humor, nothing more
You should know that...todays SDCard have better speed than buildin phone memory.
1) Flash has limited number of rewrites.This applies to SD cards, too.So by putting swap into card you can kill it quickly if swap file used a lots (for example too few RAM so many swapping occurs).
2) RAM is a way faster than any SD card... RAM is located close to CPU on fast cpu bus.SD located on reasonable slow (serial) bus and SDs are slower than RAM "by design" - they're data storage but not a RAM replacers.But of course swap on SD could be faster than on HDD.Because there is no seek times which is hurting HDD's performance.So in some cases this is an option.But please think:what will happen if card is removed?