Author Topic: Swap  (Read 4617 times)

Dima202

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Swap
« on: May 30, 2006, 02:06:01 pm »
Hello,
I just read the following faq:
http://mail.pdaxrom.org/node/29
Quote
The best solution is to store the swap on a CF microdrive or use it over the network (this can be really slow!).
Did anyone find a way to use swap over network which would work well?
I think that if I could use swap from my main machine which has a SATAII hdd over Wireless B(4.5 Mbps)... It should be much faster then SD(50kb/s?) or CF(??kb/s).

What do you guys think?  
-Also for this, I will not make my sd/cf suffer!

GadgetGuy

  • Sr. Member
  • ****
  • Posts: 321
    • View Profile
    • http://
Swap
« Reply #1 on: May 30, 2006, 03:58:44 pm »
Quote
Hello,
I just read the following faq:
http://mail.pdaxrom.org/node/29
Quote
The best solution is to store the swap on a CF microdrive or use it over the network (this can be really slow!).
Did anyone find a way to use swap over network which would work well?
I think that if I could use swap from my main machine which has a SATAII hdd over Wireless B(4.5 Mbps)... It should be much faster then SD(50kb/s?) or CF(??kb/s).

What do you guys think?  
-Also for this, I will not make my sd/cf suffer!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129001\"][{POST_SNAPBACK}][/a][/div]

I would use a fast CF card. CF cards are not very expensive these days - so if it dies, you can just get a new one. I am pretty sure that would be faster then using a network swap file... And for sure it would use less power than if you were to use your wifi card all the time....
Zaurus C-3100 from PriceJapan with OZ 3.5.4.1. Opie and GPE
Ambicom CF WL1100C Wifi Card and Symbol Wireless Networker CF Wifi Card
1 GB Sandisk Ultra II SD
PdAir leather case - Nintendo DS metal case
various smaller CF and SD cards
all kinds of USB cables and accessories
-------------------------------------------------------------
Previous computers: TI 99/4A, ZX81, C64, Amiga 500, Apple Powerbook 100
Previous PDA's: Palm 1000, Palm III, Palm V, Palm Vx, Audiovox Maestro Pocket PC, Psion 5mx
Current PDA: Palm Tungsten E2
Current favourite: Zaurus C3100 - my "micro laptop"

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Swap
« Reply #2 on: May 30, 2006, 04:42:51 pm »
maybe I don't know the full story here, but wouldn't swap over the network be unstable?  You are relying on a wireless network for a system resource.
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)

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Swap
« Reply #3 on: May 30, 2006, 04:49:00 pm »
Quote
maybe I don't know the full story here, but wouldn't swap over the network be unstable?  You are relying on a wireless network for a system resource.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129038\"][{POST_SNAPBACK}][/a][/div]
I was wondering more what would happen if he took it away from home....swap though an internet cafe connection, or via bluetooth to a cellphone doesn't sound very hopeful
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Swap
« Reply #4 on: May 30, 2006, 04:54:58 pm »
believe me, a bt cellphone connection is not very stable or close to being fast enough.
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)

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Swap
« Reply #5 on: May 31, 2006, 01:33:12 am »
you can use swap over nfs by tricking linux

http://www.denx.de/wiki/DULG/SwappingOverNFS

I used this for compilations without problem.
« Last Edit: May 31, 2006, 02:00:06 am by pgas »
SLC-860 cacko / senao wifi

ced

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • http://
Swap
« Reply #6 on: May 31, 2006, 03:37:13 am »
I've used this in the past with kernel 2.4 and 2 weeks ago with the kernel 2.6 from OE --> NBD

It works really nice with my compact flash network card... in term of performance it's fine I don't see any issue... :-)
SL-5600, kernel 2.6.16 + GPE from .dev
Ethernet Socket LP-E
Viking 256M SD

Dima202

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Swap
« Reply #7 on: May 31, 2006, 02:30:45 pm »
Quote
in term of performance it's fine
Is it any quicker then using cf/sd?

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Swap
« Reply #8 on: June 03, 2006, 06:25:44 am »
Quote
Quote
in term of performance it's fine
Is it any quicker then using cf/sd?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=129177\"][{POST_SNAPBACK}][/a][/div]

let me put it this way. would you put your windows pagefile on the local machine or on another machine over the network?
just put your swapfile on a cf. cf is faster than sd.

the important thing here is, what is your swap needed for? if you need it to supplement memory to run heavy applications, then you want it to be as fast as possible and located locally.

if you need it for large compiles then having an additionsal swap for such purposes may be appropriate since speed is obviously not a major concern for you (otherwise you would be cross compiling anyway and not using the z to compile natively).

you can always have several swap files, one smaller one locally anbd a large one remotely. ust make sure you make the priority of the local one higher than the remote one so it will always use your local one first and only resort to the remote one when you really need it.
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