Author Topic: Does Anyone Use Swapd For Swap File Management?  (Read 2222 times)

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Does Anyone Use Swapd For Swap File Management?
« on: May 28, 2006, 07:38:37 pm »
I got a package here:
http://www.iaccarino.de/silvio/zaurusstuff.htm

It is supposed to make and mount a swap file when the memory gets to a certain point.  It appears to be loaded and it creates the directory to put the swap files in (/mnt/card/swap) but it isn't making any swap files.  I checked the config file (/etc/swapd.conf) and it is pointing to my mkswap program.  So I don't know what the problem could be.  

Any suggestions?
Thanks.
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

aki

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
    • http://www.akiaki.org
Does Anyone Use Swapd For Swap File Management?
« Reply #1 on: May 28, 2006, 07:51:00 pm »
I did use that package in the past with mixed results.  I don't recall the details of the config (/etc/swapd.conf, I think?), but the swap files are created as programs request more memory than available.  So, the situation you describe seems normal.

I originally installed it to be able to run ethereal, which needed 80MB free to start-up.  Swapd did allow me to run it, so it worked as advertised.  In your case, you could try to run opera and open lots of windows.

Now I have a 6GB microdrive, so I just created a permanent swap partition and uninstalled swapd.

Good luck!

sl-5500 Sharp 2.38 ROM + sl-6000L w/ expansion adapter
Trendnet CF Ethernet + Micro Innovations IR Keyboard
------
sip: 544187@fwd.pulver.com

My Zaurus Page

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Does Anyone Use Swapd For Swap File Management?
« Reply #2 on: May 28, 2006, 07:57:41 pm »
That's what I did.  I opened up every program on my zaurus until it started poping up that window asking me to close some programs.  In the swapd.conf fime it is supposed to create a swap file and mount it when there is less than 16mb of memory free.  I had like 6mb free and it didnt work.

What do you mean you had mixed results?  Does that mean it didn't work part of the time?
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Does Anyone Use Swapd For Swap File Management?
« Reply #3 on: May 28, 2006, 08:43:41 pm »
Quote
That's what I did.  I opened up every program on my zaurus until it started poping up that window asking me to close some programs.  In the swapd.conf fime it is supposed to create a swap file and mount it when there is less than 16mb of memory free.  I had like 6mb free and it didnt work.

What do you mean you had mixed results?  Does that mean it didn't work part of the time?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128714\"][{POST_SNAPBACK}][/a][/div]
huh.  It worked fine for me.  there was something about wanting a directory for the swapfiles, though...  I can't quite remeber.  Maybe you'll see an error message along those lines?
**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

aki

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
    • http://www.akiaki.org
Does Anyone Use Swapd For Swap File Management?
« Reply #4 on: May 29, 2006, 01:38:20 pm »
Quote
That's what I did.  I opened up every program on my zaurus until it started poping up that window asking me to close some programs.  In the swapd.conf fime it is supposed to create a swap file and mount it when there is less than 16mb of memory free.  I had like 6mb free and it didnt work.

What do you mean you had mixed results?  Does that mean it didn't work part of the time?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128714\"][{POST_SNAPBACK}][/a][/div]

By mixed results, I mean it seems to work as intended, but, as in your experience, sometimes it seems like there's something wrong.  It just seems clumsy and overcomplicated for the task.

The microdrive/swap partition setup, on the other hand, just works.  No "out of memory" popup window.

sl-5500 Sharp 2.38 ROM + sl-6000L w/ expansion adapter
Trendnet CF Ethernet + Micro Innovations IR Keyboard
------
sip: 544187@fwd.pulver.com

My Zaurus Page

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Does Anyone Use Swapd For Swap File Management?
« Reply #5 on: May 30, 2006, 07:33:18 pm »
Cool, I think I got it working.  I set the swap location to /hdd3/swap.  It always keeps at least one swap mounted though.  Is there any way to get it to unmount all swap partitions when I don't need them?
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Does Anyone Use Swapd For Swap File Management?
« Reply #6 on: May 31, 2006, 01:59:41 pm »
It seems to work, it just doesn't start up when the zaurus boots.  I guess it's no biggie.  I just wonder why.  Which run level is the default?  Is it rc5?
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)