![]() |
Bigger swap file for N770
I only tested this in OS2008HE, since it is in dire need of it :), but should be working in the other versions too. Of course i will not be held responsible if you send your device to hell. Didn't search the forums if this was posted before. :)
First create a swap file like you do it normally (from the Control Panel). Then run a XTerm and do these commands: Code:
swapoff /media/mmc1/.swap After restart it should remain the same size. It will reset probably if you mess again with the swap settings in Control Panel. |
Re: Bigger swap file for N770
I wanted to ask about this for the Nokia770 and your post has reminded me. What happens when we swap MMC between NIT's after tweaking swap settings via xterm. (Would they revert to the norms for each OS regardless or what exactly?)
How would I best utilize your script cautiously where I assume card must be ideally empty of swap or any other files when running these commands |
Re: Bigger swap file for N770
Yes - I was looking at this for the N770 also - with 2007HE.
|
Re: Bigger swap file for N770
You can easy check if the swap resizes on the go by running an XTerm and run
Code:
free When i have a 256MB swap, the control panel is saying 64MB, so that's not a reliable source :) |
Re: Bigger swap file for N770
Quote:
Code:
cat /proc/swaps thanks! |
Re: Bigger swap file for N770
Quote:
Thanks ! |
Re: Bigger swap file for N770
I get "text file busy" on 2007HE.
|
Re: Bigger swap file for N770
Quote:
Sure enough swap changed in size between 56MB (For 64MB MMC), 0GB (With NO MMC) and 64MB (With 1GB MMC) (64MB being theoretical max for OS006 without making any xterm command changes) even though the physical swap size on 1GB card is actually/currently 128MB. (seems OS2006 never sees full 128MB available even under xterm when using free command) So if I am understanding correctly I can now use your suggested commands to temporarily increase the swap size even higher on my Nokia 770 or other NIT's for an ongoing booted session and the swap size should stay that way until I hard re-boot and/or I swap cards? i.e. create a physical 256MB swap (Using first command) which will from then on always available on a particular MMC card and then set swap size of OS (i.e. Nokia 770 OS2006 & N800 OS2008) to be in alignment using the suggested commands and all running programs will then know the extra swap space is available for use if they need it? Just trying to get my head around the overall concepts etc. |
Re: Bigger swap file for N770
Quote:
Code:
swapoff /media/mmc1/.swap |
Re: Bigger swap file for N770
Yes, i forgot that unfortunately. You shoud switch off the swap before creation. I even deleted the file...
About the creation first - i'm doing that to get automatic swap mount at boot. There are other ways but this one looks easier :) @MikeL: I'm not sure 'cause i didn't try, but it sounds reasonable that the swap file gets remounted if you switch cards the same way as it is on reboot - i mean with its full size. |
All times are GMT. The time now is 06:06. |
vBulletin® Version 3.8.8