Swapping via NFS for GentooX

Ask questions regarding Gentoox, Gentoo and Linux in general in these forums and we'll do our best to help you!
Post Reply
snipes
Linux User
Posts: 12
Joined: Wed Dec 08, 2004 5:34 pm
Location: Lethbridge Alberta Canada
Contact:

Swapping via NFS for GentooX

Post by snipes » Mon Dec 13, 2004 9:39 am

My xbox has been swapping wildly since I added azureus to it. I start it over vnc in blackbox to help conserve resources. I was wondering if it possible to make use of the ram in my desktop computer to assist the xbox. I was thinking of making a ram disk on my desktop computer then using NFS to mount it on the xbox as swap. I have heard it is slower than real ram of course but I dont really want my Harddrive going through this abuse anymore. I have 100mb network connecting my computers through a router so the network speed is comparable to a the hard drive thats in it.
The optimal way would be to install another 64MB of ram from a dead box, I have a dead box but am missing a few of the tools I need to pull that off, so that will have to wait.

Here are a few pages that make me realize my idea could possibly work, but I would like to hear some input from some people that might know about this already.
http://nfs-swap.dot-heine.de/
http://www.pcxperience.org/thinclient/d ... pping.html

Edit: I just noticed the latest NFS-Swap patch is for the 2.4.21 kernel but my gentooX kernel is 2.4.22. Might thro a wrench in my plans.

User avatar
nobspangle
Gentoox Guru!
Posts: 1681
Joined: Sun Sep 28, 2003 11:59 am
Location: Manchester, UK

Post by nobspangle » Mon Dec 13, 2004 6:06 pm

I don't think that it will make much difference whether your swap is on the xbox or mounted over nfs. The truth is that azureus will give your harddrive a thrashing anyway due to the way that it works
If you keep an open mind, will your brain fall out?

snipes
Linux User
Posts: 12
Joined: Wed Dec 08, 2004 5:34 pm
Location: Lethbridge Alberta Canada
Contact:

Post by snipes » Mon Dec 13, 2004 7:35 pm

I think reading 3.6 MB/s while transmitting less than 10K/s is not normal, or recieving 20K/s and writing 250K/s. it seems like the hard disk activity could be reduced a lot by telling it to use a networked ram disk for swap instead of the actual disk.
Image
You can see that my other computer has unused RAM that I would like to temporarily tap in to. until i either get a new power supply for my other server or the equipment to remove the ram from the dead box i have.
Since the xbox is limited to 64MB ram normally I think this could be important info for some people,

orochi
Gentoox Guru!
Posts: 606
Joined: Sun Oct 24, 2004 8:11 am

Post by orochi » Fri Jun 10, 2005 7:09 am

if your desktop is a much better machine, just run the server there
Last edited by orochi on Sat Jun 11, 2005 7:01 am, edited 1 time in total.

User avatar
clpalmer
Power user
Posts: 288
Joined: Sat Jan 29, 2005 6:38 pm

Post by clpalmer » Fri Jun 10, 2005 2:23 pm

This from one of the pages:
"Network swapping" as it is usually called is obviously much slower than having a much faster and more capable secondary storage device for doing virtual memory swapping.
And this from the other:
Swapping via NFS is really slow.
I'm interested in your results if you do decide to try it =)

snipes
Linux User
Posts: 12
Joined: Wed Dec 08, 2004 5:34 pm
Location: Lethbridge Alberta Canada
Contact:

still here

Post by snipes » Sun Jun 12, 2005 9:45 am

I havent had much luck with this so far. mostly im having problems learning how to just recompile the kernel. I have been trying with various kernels but always end up with errors while compiling or when booting. I have been using this page as a guide - > http://xbox-linux.sourceforge.net/cgi-b ... lCompiling

Apparently that is an old page and I'm not sure how different the process is now but it compiled fine so i replaced the old kernel with it (after backing up my original one). and when i set it to boot it gives an error like "cannot open dev/console".

I need to learn how to compile the kernel before i can patch it.
Is there any thing on that page that might be obviously out of date?
im trying the 2.6.9 kernel source and xbox patches from the cvs.
is the 2.6 kernel not ready just yet? I know the patches for the NFS-swap are for older kernels but i just trying to learn a thing or two ;).

snipes
Linux User
Posts: 12
Joined: Wed Dec 08, 2004 5:34 pm
Location: Lethbridge Alberta Canada
Contact:

back again

Post by snipes » Sun Jun 12, 2005 1:13 pm

i noticed the first error i got on the 2.6.9 kernel is with

Code: Select all

mount -t fatx /dev/ide/host0/bus0/target0/lun0/part50 /fatx
it says there is no such device.
all the other errors i get are also about files missing.
i guess i forgot to put fatx :oops: in the kernel, or else its broken :(
well i will try again soon :D

snipes
Linux User
Posts: 12
Joined: Wed Dec 08, 2004 5:34 pm
Location: Lethbridge Alberta Canada
Contact:

Post by snipes » Mon Oct 02, 2006 3:21 am

i came across this recently. My xbox does not have gentoox on it right now so i cant try it but it looks interesting and on topic.
http://www.gc-linux.org/wiki/Memory_and ... he_network

dopey
Novice
Posts: 47
Joined: Tue Apr 18, 2006 11:24 pm

Post by dopey » Mon Oct 02, 2006 6:22 am

This is kind of cool. It may be slow, but using a fatx loop is really slow. I wondoer if using this would be faster. . . At 100Mbits full-duplex this could provide suffecient speed, while keeping the CPU usage low. . .I might have to give it a try.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests