Author Topic: Swap File Problem  (Read 9287 times)

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Swap File Problem
« Reply #15 on: October 02, 2006, 10:39:30 pm »
As far as I know, you want to keep the file as small as you can. This will cause more RAM to be used (there is a larger amount of RAM available than swap, so more is available for use and will be used) and will wear on your card less. It will also decrease the effect on speed that swap has.

Once again, corrections are welcome.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Swap File Problem
« Reply #16 on: October 02, 2006, 11:38:40 pm »
Quote
Actually, I was just wondering if what the advantages of a bigger swap file (maybe 64mb) might be?
The bigger it is the more programs you can run. I have a 256MB swap partition and usually have these programs running: dillo, mozilla (or firefox), abiword, stardict (with a number of large dictionaries), mrxvt, ka/pi, pwmanager, xmms ...
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

uMP2k

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • http://
Swap File Problem
« Reply #17 on: October 02, 2006, 11:45:17 pm »
Quote
Quote
Actually, I was just wondering if what the advantages of a bigger swap file (maybe 64mb) might be?
The bigger it is the more programs you can run. I have a 256MB swap partition and usually have these programs running: dillo, mozilla (or firefox), abiword, stardict (with a number of large dictionaries), mrxvt, ka/pi, pwmanager, xmms ...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142924\"][{POST_SNAPBACK}][/a][/div]

Hmm - I will give "bigger" a go then.

I am addicted to running lots of stuff at the same time on my computers and that includes whatever my mobile device of the day is.

I am currently trying to get freeciv 2.10 beta 2 running and not having much luck, maybe a bigger swap will help!
My new toy: C1000/pdaXrom/xfce4 and Rox - now I just have to get it all working!.

Other stuff: Axim x50v and a brace of Newtons....!

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Swap File Problem
« Reply #18 on: October 03, 2006, 12:30:18 am »
Quote
As far as I know, you want to keep the file as small as you can. This will cause more RAM to be used (there is a larger amount of RAM available than swap, so more is available for use and will be used) and will wear on your card less. It will also decrease the effect on speed that swap has.

Once again, corrections are welcome.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142920\"][{POST_SNAPBACK}][/a][/div]
Actually, any modern OS should utilise swap correctly regardless. Often forcing programs to use RAM can degrade performance and proper use of swap/virtual mem is much better. It shouldn't put something needed fast on slow swap, but it will significantly increase the amount of available memory.

Now someone much more knowledgeable will come along and tell me I'm wrong
SL6000-L, RC12

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Swap File Problem
« Reply #19 on: October 05, 2006, 10:05:48 am »
Quote
Quote
As far as I know, you want to keep the file as small as you can. This will cause more RAM to be used (there is a larger amount of RAM available than swap, so more is available for use and will be used) and will wear on your card less. It will also decrease the effect on speed that swap has.

Once again, corrections are welcome.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142920\"][{POST_SNAPBACK}][/a][/div]
Actually, any modern OS should utilise swap correctly regardless. Often forcing programs to use RAM can degrade performance and proper use of swap/virtual mem is much better. It shouldn't put something needed fast on slow swap, but it will significantly increase the amount of available memory.

Now someone much more knowledgeable will come along and tell me I'm wrong
[div align=\"right\"][a href=\"index.php?act=findpost&pid=142926\"][{POST_SNAPBACK}][/a][/div]

swap will always be slower than real physical memory but when we dont have enough physical memory then we need to use swap at the sacrifice of speed. cacko/sharp rom have an applet that can monitor available memory and enable/disable swap depending on need. this does not exist on pdaXrom but would be a great app for someone to port over.

also, remember the general rule of thumb. swapfile should be around 2-2.5 times the amount of physical ram. ymwv
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Swap File Problem
« Reply #20 on: October 05, 2006, 11:47:47 am »
I've learned that is not always true.  If you are using a system with 4GB of ram and you are constantly swapping a 1GB of hard drive space, then there is something wrong and 8GB of swap is not the solution.

You have to be carefull of swap when you use the Z as a usb reader.
« Last Edit: October 05, 2006, 11:49:03 am by bluedevils »
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Swap File Problem
« Reply #21 on: October 05, 2006, 11:50:09 am »
Sorry meanie, I didn't see the word "general"
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Swap File Problem
« Reply #22 on: October 05, 2006, 11:58:14 am »
Actually... I thought the general rule of thumb was 1.5...  but on the Z I used 256.. just because I compile native apps and to much is never to much...

Late
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

uMP2k

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • http://
Swap File Problem
« Reply #23 on: October 05, 2006, 06:34:38 pm »
Quote
You have to be carefull of swap when you use the Z as a usb reader.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=143224\"][{POST_SNAPBACK}][/a][/div]


Please explain....

I use my Z as a card reader quite a bit at work and would like to know more about this.
My new toy: C1000/pdaXrom/xfce4 and Rox - now I just have to get it all working!.

Other stuff: Axim x50v and a brace of Newtons....!

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Swap File Problem
« Reply #24 on: October 05, 2006, 07:09:21 pm »
I'd like to know how to use the Z as a card reader.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Swap File Problem
« Reply #25 on: October 05, 2006, 08:20:24 pm »
Quote
swap will always be slower than real physical memory but when we dont have enough physical memory then we need to use swap at the sacrifice of speed. cacko/sharp rom have an applet that can monitor available memory and enable/disable swap depending on need. this does not exist on pdaXrom but would be a great app for someone to port over.

also, remember the general rule of thumb. swapfile should be around 2-2.5 times the amount of physical ram. ymwv
[div align=\"right\"][a href=\"index.php?act=findpost&pid=143195\"][{POST_SNAPBACK}][/a][/div]
Obviously swap is much (much) slower than real memory, but it is quite curious that adding more swap will cause it to be used instead and degrade performance. Is this Linux-arm in general, or is it pdaXrom specific?
SL6000-L, RC12

uMP2k

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • http://
Swap File Problem
« Reply #26 on: October 05, 2006, 08:21:40 pm »
Quote
I'd like to know how to use the Z as a card reader.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=143279\"][{POST_SNAPBACK}][/a][/div]

As far as I know this only works with the Cxx00 series which have USB host built in.

Of course I may be wrong....
My new toy: C1000/pdaXrom/xfce4 and Rox - now I just have to get it all working!.

Other stuff: Axim x50v and a brace of Newtons....!