Skip to contentSkip to conversation

Swapping over NFS in Linux 2.4?

DISCUSSION Andreas Osterburg 7 participants 8 messages Nov 15, 2000 – Nov 16, 2000

lore
Share & tools
lore
#0 lore raw

Hi,

Because I set up a diskless Linux-workstation, I want to swap over NFS. For this purpose I found only patches for "older" Linux-versions (2.0, 2.1, 2.2?).
Does anyone know wheter there are patches for 2.4 or does anyone know another solution for this problem?
Because of special hardware I can only use the latest Linux 2.3 (2.3.99*) and Linux 2.4

Thank you,

Andreas Osterburg
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#1 lore raw

Hi!

Quoted 5 lines

Because I set up a diskless Linux-workstation, I want to swap over NFS. For this purpose I found only patches for "older" Linux-versions (2.0, 2.1, 2.2?).
Does anyone know wheter there are patches for 2.4 or does anyone know another solution for this problem?

maybe you want to use the network block device.

have a look at
http://www.xss.co.at/linux/NBD
and ftp://ftp.xss.co.at/pub/Linux/NBD

hth,
- martin

--------------------------------------------------------------------

\       Martin Hoeller          | mailto:[email protected] /    
 \      xS+S Andreas Haumer     | web:   http://www.xss.co.at    /
  \     Karmarschgasse 51/2/20  | phone: +43-1-6060114-30       /
   \    A-1100 Vienna/Austria   | fax:   +43-1-6060114-71      /
    -----------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw
In reply to Andreas Osterburg
Quoted 6 lines · Andreas Osterburg

Because I set up a diskless Linux-workstation, I want to swap over NFS. For this purpose I found only patches for "older" Linux-versions (2.0, 2.1, 2.2?).

Does anyone know wheter there are patches for 2.4 or does anyone know another solution for this problem?

1. you can swap over NBD
2. if you point me to the swap-over-nfs patches you have found, I can try to make them work on 2.4 ;)

[I have some interest in making swap-over-nfs work and most of the other VM things in 2.4 are already pretty stable ... at the moment stability is more important than extra performance tricks to me]

regards,

Rik
--
"What you're running that piece of shit Gnome?!?!"
-- Miguel de Icaza, UKUUG 2000

http://www.conectiva.com/ http://www.surriel.com/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#3 lore raw
Quoted 6 lines · Rik van Riel
Quoted 3 lines · Andreas Osterburg

Because I set up a diskless Linux-workstation, I want to swap over NFS. For this purpose I found only patches for "older" Linux-versions (2.0, 2.1, 2.2?).

Quoted 6 lines
Quoted 2 lines

Does anyone know wheter there are patches for 2.4 or does anyone know another solution for this problem?

1. you can swap over NBD
2. if you point me to the swap-over-nfs patches you have found, I can try to make them work on 2.4 ;)

Swap on the loop block device attached to a file over NFS seemed to work too.

Nicolas

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#5 lore raw
In reply to Andreas Osterburg
Quoted 10 lines · Rik van Riel
Quoted 6 lines · Andreas Osterburg

Because I set up a diskless Linux-workstation, I want to swap over NFS. For this purpose I found only patches for "older" Linux-versions (2.0, 2.1, 2.2?).

Does anyone know wheter there are patches for 2.4 or does anyone know another solution for this problem?

Quoted 8 lines

1. you can swap over NBD
2. if you point me to the swap-over-nfs patches you have found, I can try to make them work on 2.4 ;)

[I have some interest in making swap-over-nfs work and most of the other VM things in 2.4 are already pretty stable ... at the moment stability is more important than extra performance tricks to me]

There was a patch recently posted on the nfs mailing list by Tom Dyas from VAlinux. It is against 2.2.17 with the nfs patches by Trond Myklebust and Dave Higgen. The post (including the patch) can be found
here: http://marc.theaimsgroup.com/?l=linux-nfs&m=97157102825580&w=2

Juri
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#4 lore raw
In reply to Rik van Riel
Quoted 6 lines · Rik van Riel
Quoted 3 lines · Andreas Osterburg

Because I set up a diskless Linux-workstation, I want to swap over NFS. For this purpose I found only patches for "older" Linux-versions (2.0, 2.1, 2.2?).

Quoted 6 lines
Quoted 2 lines

Does anyone know wheter there are patches for 2.4 or does anyone know another solution for this problem?

1. you can swap over NBD
2. if you point me to the swap-over-nfs patches you have found, I can try to make them work on 2.4 ;)

Rik all we need to do now is convert the swapout code to address space methods just like the block device was.

This has a number of interesting effects. One of which is that brw_page should no longer have any users. Simplifying fs/buffer.c

Further this is equivalent to mounting a nfs file loop back which the address space methods now allow, but it is more direct.

Which means that if this reveals any bugs in nfs/lock ups in nfs they were already there.

This has been on my want to do list for a while but I'm busy reinventing booting so I haven't gotten to it.

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#6 lore raw
In reply to Andreas Osterburg

Hi!

Quoted 8 lines
Quoted 6 lines

Because I set up a diskless Linux-workstation, I want to swap over NFS. For this purpose I found only patches for "older" Linux-versions (2.0, 2.1, 2.2?).

Does anyone know wheter there are patches for 2.4 or does anyone know another solution for this problem?

1. you can swap over NBD

Are you sure, Rik? So we no longer have low-memory deadlocks in nbd? Wow, there used to be plenty of them in past.

Do you promise it is possible to swap over NBD?

Quoted 2 lines

2. if you point me to the swap-over-nfs patches you have found, I can try to make them work on 2.4 ;)

Pavel

Signature · 6 lines
I'm [email protected]. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at [email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#7 lore raw
Quoted 7 lines · Pavel Machek
Quoted 7 lines
Quoted 6 lines

Because I set up a diskless Linux-workstation, I want to swap over NFS. For this purpose I found only patches for "older" Linux-versions (2.0, 2.1, 2.2?).

Does anyone know wheter there are patches for 2.4 or does anyone know another solution for this problem?

Quoted 6 lines
Quoted 1 line

1. you can swap over NBD

Are you sure, Rik? So we no longer have low-memory deadlocks in nbd? Wow, there used to be plenty of them in past.

Do you promise it is possible to swap over NBD?

David Miller will have to promise he removed the allocation bugs from tcp.c ;) [which seem to be the low-memory deadlocks you observed as well]

regards,

Rik
--
"What you're running that piece of shit Gnome?!?!"
-- Miguel de Icaza, UKUUG 2000

http://www.conectiva.com/ http://www.surriel.com/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/