linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Expand VM
@ 2003-01-23 15:56 User &
  2003-01-23 16:04 ` Richard B. Johnson
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: User & @ 2003-01-23 15:56 UTC (permalink / raw)
  To: linux-kernel


Hi all

I have one idea , and this is about expand virtual memory on linux boxes 
connected in LAN.
Example: Linux A is processing come information , and need more memory , so 
with this source , Linux A could access virtual memory on Linux B in LAN.
But i don´t know how translate the virtual address between Linux A and B , to 
have success in acess VM, or how to send all the process for Linux B to be 
processed.

Any ideas ?

Thanks
Breno

----------------------
WebMail Bandnet.com.br


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Expand VM
  2003-01-23 15:56 Expand VM User &
@ 2003-01-23 16:04 ` Richard B. Johnson
  2003-01-23 16:19   ` John Bradford
  2003-01-23 16:18 ` Patrizio Bruno
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 15+ messages in thread
From: Richard B. Johnson @ 2003-01-23 16:04 UTC (permalink / raw)
  To: User &; +Cc: linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=US-ASCII, Size: 797 bytes --]

On Thu, 23 Jan 2003, User & wrote:

> 
> Hi all
> 
> I have one idea , and this is about expand virtual memory on linux boxes 
> connected in LAN.
> Example: Linux A is processing come information , and need more memory , so 
> with this source , Linux A could access virtual memory on Linux B in LAN.
> But i don´t know how translate the virtual address between Linux A and B , to 
> have success in acess VM, or how to send all the process for Linux B to be 
> processed.
> 
> Any ideas ?
> 
> Thanks
> Breno

Use a swap-file on another machine on the LAN to extend your virtual
memory if you run out of local swap-file space.


Cheers,
Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
Why is the government concerned about the lunatic fringe? Think about it.



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Expand VM
  2003-01-23 15:56 Expand VM User &
  2003-01-23 16:04 ` Richard B. Johnson
@ 2003-01-23 16:18 ` Patrizio Bruno
  2003-01-23 16:55 ` Valdis.Kletnieks
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 15+ messages in thread
From: Patrizio Bruno @ 2003-01-23 16:18 UTC (permalink / raw)
  To: linux-kernel

http://www.openmosix.org

On Thu, 2003-01-23 at 16:56, User & wrote:
> Hi all
> 
> I have one idea , and this is about expand virtual memory on linux boxes 
> connected in LAN.
> Example: Linux A is processing come information , and need more memory , so 
> with this source , Linux A could access virtual memory on Linux B in LAN.
> But i don´t know how translate the virtual address between Linux A and B , to 
> have success in acess VM, or how to send all the process for Linux B to be 
> processed.
> 
> Any ideas ?
> 
> Thanks
> Breno
> 
> ----------------------
> WebMail Bandnet.com.br
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
-- 
Patrizio Bruno <patrizio@dada.it>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Expand VM
  2003-01-23 16:04 ` Richard B. Johnson
@ 2003-01-23 16:19   ` John Bradford
  2003-01-23 16:33     ` Sean Neakums
  0 siblings, 1 reply; 15+ messages in thread
From: John Bradford @ 2003-01-23 16:19 UTC (permalink / raw)
  To: root; +Cc: breno_silva, linux-kernel

> Use a swap-file on another machine on the LAN to extend your virtual
> memory if you run out of local swap-file space.

What would be really good would be a multiple gigabyte solid state
'disk', on a shared SCSI bus...

John.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Expand VM
  2003-01-23 16:19   ` John Bradford
@ 2003-01-23 16:33     ` Sean Neakums
  2003-01-23 16:56       ` John Bradford
  0 siblings, 1 reply; 15+ messages in thread
From: Sean Neakums @ 2003-01-23 16:33 UTC (permalink / raw)
  To: linux-kernel

commence  John Bradford quotation:

>> Use a swap-file on another machine on the LAN to extend your
>> virtual memory if you run out of local swap-file space.
>
> What would be really good would be a multiple gigabyte solid state
> 'disk', on a shared SCSI bus...

If you can afford gigabytes of solid state memory, you can surely
afford to properly fit your boxes out in the first place.

-- 
 /                          |
[|] Sean Neakums            | Size *does* matter.
[|] <sneakums@zork.net>     | That's why I use Emacs.
 \                          |

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Expand VM
  2003-01-23 15:56 Expand VM User &
  2003-01-23 16:04 ` Richard B. Johnson
  2003-01-23 16:18 ` Patrizio Bruno
@ 2003-01-23 16:55 ` Valdis.Kletnieks
  2003-01-23 19:40   ` User &
  2003-01-23 17:09 ` kkonaka
  2003-01-24 15:20 ` Bill Davidsen
  4 siblings, 1 reply; 15+ messages in thread
From: Valdis.Kletnieks @ 2003-01-23 16:55 UTC (permalink / raw)
  To: User &; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1715 bytes --]

On Thu, 23 Jan 2003 12:56:27 -0300, User & <breno_silva@beta.bandnet.com.br>  said:

> I have one idea , and this is about expand virtual memory on linux boxes 
> connected in LAN.
> Example: Linux A is processing come information , and need more memory , so 
> with this source , Linux A could access virtual memory on Linux B in LAN.

We've seen *this* done before (remember diskless Sun3-50's?) - the /dev/swap
file would be a large file on an NFS mount from a server.  At the time, this
actually made performance sense, because the old 'Shoebox' drives the -50
came with were incredibly slow, and you could actually do an NFS operation
to a larger server (a -280 with Fujitsu SuperEagle disks, for instance) faster
than talking to the local disk.

These days, it's probably easier and cheaper to just buy more RAM and/or disk
for Linux A.

> But i don´t know how translate the virtual address between Linux A and B , to 
> have success in acess VM, or how to send all the process for Linux B to be 
> processed.

Sending the whole process to Linux B to be processed is called "process
migration", and is a difficult problem.  Moving the memory image of the
process is usually pretty easy.  What is difficult is moving things like
references to open files, file locks, and so on (what if the process is
actively writing to block 739 of /usr/foo/some.file, and the LinuxB machine
doesn't have a /usr/foo, or the permissions on some.file don't match, or
another process has it locked, or... ) There be nasty dragons in this.

You're probably better off buying more RAM and disk for your A machine.
-- 
				Valdis Kletnieks
				Computer Systems Senior Engineer
				Virginia Tech


[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Expand VM
  2003-01-23 16:33     ` Sean Neakums
@ 2003-01-23 16:56       ` John Bradford
  2003-01-23 17:58         ` Herman Oosthuysen
  0 siblings, 1 reply; 15+ messages in thread
From: John Bradford @ 2003-01-23 16:56 UTC (permalink / raw)
  To: Sean Neakums; +Cc: linux-kernel

> >> Use a swap-file on another machine on the LAN to extend your
> >> virtual memory if you run out of local swap-file space.
> >
> > What would be really good would be a multiple gigabyte solid state
> > 'disk', on a shared SCSI bus...
> 
> If you can afford gigabytes of solid state memory, you can surely
> afford to properly fit your boxes out in the first place.

Good point :-)

What I'd really like to see is a single device which appears as two
logical IDE or SCSI devices, one of which has 512 Mb of battery backed
RAM, and the other one 512 Mb of EEPROM.

No need for expensive flash memory, just cheap DRAM, and a few NiMH
cells to keep the RAM contents intact when the main power was
disconnected.

I've seen loads of solid state devices based on flash memory, but few
that are based on battery backed DRAM :-(.

John.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Expand VM
  2003-01-23 15:56 Expand VM User &
                   ` (2 preceding siblings ...)
  2003-01-23 16:55 ` Valdis.Kletnieks
@ 2003-01-23 17:09 ` kkonaka
  2003-01-24 15:20 ` Bill Davidsen
  4 siblings, 0 replies; 15+ messages in thread
From: kkonaka @ 2003-01-23 17:09 UTC (permalink / raw)
  To: linux-kernel

> I have one idea , and this is about expand virtual memory on linux boxes 
> connected in LAN.
...
> Any ideas ?

try SCI ? -- eg., http://sci-serv.inrialpes.fr/

kenji

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Expand VM
  2003-01-23 16:56       ` John Bradford
@ 2003-01-23 17:58         ` Herman Oosthuysen
  2003-01-23 18:46           ` John Bradford
  0 siblings, 1 reply; 15+ messages in thread
From: Herman Oosthuysen @ 2003-01-23 17:58 UTC (permalink / raw)
  To: linux; +Cc: John Bradford

There is a good reason for that: Power consumption.

A large SDRAM disk would require refresh logic etc.  So you will end up 
with something closely resembling bad notebook PC.

John Bradford wrote:
> 
> I've seen loads of solid state devices based on flash memory, but few
> that are based on battery backed DRAM :-(.
> 



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Expand VM
  2003-01-23 17:58         ` Herman Oosthuysen
@ 2003-01-23 18:46           ` John Bradford
  2003-01-23 19:42             ` Herman Oosthuysen
  0 siblings, 1 reply; 15+ messages in thread
From: John Bradford @ 2003-01-23 18:46 UTC (permalink / raw)
  To: Herman Oosthuysen; +Cc: linux-kernel

> > I've seen loads of solid state devices based on flash memory, but few
> > that are based on battery backed DRAM :-(.

> There is a good reason for that: Power consumption.
> 
> A large SDRAM disk would require refresh logic etc.  So you will end up 
> with something closely resembling bad notebook PC.

I suppose it makes sense for portable devices, but would it really be
that bad for desktop/server use?  I was only thinking of about a 24
hour battery backup time - to keep the contents overnight, for
example.

John.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Expand VM
  2003-01-23 16:55 ` Valdis.Kletnieks
@ 2003-01-23 19:40   ` User &
  2003-01-23 20:02     ` Valdis.Kletnieks
  2003-01-23 23:20     ` Thomas Cataldo
  0 siblings, 2 replies; 15+ messages in thread
From: User & @ 2003-01-23 19:40 UTC (permalink / raw)
  To: Valdis.Kletnieks, User &; +Cc: linux-kernel

Hi Valdis

Create a new VMA on Linux B for Linux A is easy , but i have a problem , the 
address of VMA is returned on Linux B , so the VMA created on Linux B can not 
be used for process of linux A.
The problem is "how can i return address of VMA created on LINUX B to Linux 
A , and use this space ?".

Thanks
Breno

On Thu, 23 Jan 2003 11:55:38 -0500, Valdis.Kletnieks wrote
> On Thu, 23 Jan 2003 12:56:27 -0300, User & 
> <breno_silva@beta.bandnet.com.br>  said:
> 
> > I have one idea , and this is about expand virtual memory on linux boxes 
> > connected in LAN.
> > Example: Linux A is processing come information , and need more memory , 
so 
> > with this source , Linux A could access virtual memory on Linux B in LAN.
> 
> We've seen *this* done before (remember diskless Sun3-50's?) - the /dev/swap
> file would be a large file on an NFS mount from a server.  At the 
> time, this actually made performance sense, because the old 
> 'Shoebox' drives the -50 came with were incredibly slow, and you 
> could actually do an NFS operation to a larger server (a -280 with 
> Fujitsu SuperEagle disks, for instance) faster than talking to the 
> local disk.
> 
> These days, it's probably easier and cheaper to just buy more RAM 
> and/or disk for Linux A.
> 
> > But i don´t know how translate the virtual address between Linux A and 
B , to 
> > have success in acess VM, or how to send all the process for Linux B to 
be 
> > processed.
> 
> Sending the whole process to Linux B to be processed is called "process
> migration", and is a difficult problem.  Moving the memory image of the
> process is usually pretty easy.  What is difficult is moving things like
> references to open files, file locks, and so on (what if the process 
> is actively writing to block 739 of /usr/foo/some.file, and the 
> LinuxB machine doesn't have a /usr/foo, or the permissions on 
> some.file don't match, or another process has it locked, or... ) 
> There be nasty dragons in this.
> 
> You're probably better off buying more RAM and disk for your A machine.
> -- 
> 				Valdis Kletnieks
> 				Computer Systems Senior Engineer
> 				Virginia Tech



----------------------
WebMail Bandnet.com.br


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Expand VM
  2003-01-23 18:46           ` John Bradford
@ 2003-01-23 19:42             ` Herman Oosthuysen
  0 siblings, 0 replies; 15+ messages in thread
From: Herman Oosthuysen @ 2003-01-23 19:42 UTC (permalink / raw)
  To: John Bradford; +Cc: linux-kernel

The trouble is that you will spend so much money on the power supply, 
that the product won't make economic sense.  It would be better to just 
use a general purpose PC mother board, PSU and a UPS, since then, you 
get tremendous economy of scale.

John Bradford wrote:
>>>I've seen loads of solid state devices based on flash memory, but few
>>>that are based on battery backed DRAM :-(.
> 
> 
>>There is a good reason for that: Power consumption.
>>
>>A large SDRAM disk would require refresh logic etc.  So you will end up 
>>with something closely resembling bad notebook PC.
> 
> 
> I suppose it makes sense for portable devices, but would it really be
> that bad for desktop/server use?  I was only thinking of about a 24
> hour battery backup time - to keep the contents overnight, for
> example.
> 
> John.
> 



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Expand VM
  2003-01-23 19:40   ` User &
@ 2003-01-23 20:02     ` Valdis.Kletnieks
  2003-01-23 23:20     ` Thomas Cataldo
  1 sibling, 0 replies; 15+ messages in thread
From: Valdis.Kletnieks @ 2003-01-23 20:02 UTC (permalink / raw)
  To: User &; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1019 bytes --]

On Thu, 23 Jan 2003 16:40:14 -0300, User & said:
> Create a new VMA on Linux B for Linux A is easy , but i have a problem , the 
> address of VMA is returned on Linux B , so the VMA created on Linux B can not
 
> be used for process of linux A.

It's unclear whether you're just trying to use B for added swap space, or
if you want B to actually run code.

If it's the former, all you have to do is allocate a lot of disk space on B,
and NFS export it to A, and then have A mount it (you might need to
use a loopback mount of a file on the NFS partition and then 'swapon' the
loopback - I dont think swapon will directly take an NFS file)

> The problem is "how can i return address of VMA created on LINUX B to Linux 
> A , and use this space ?".

If you're trying to get B to actually run code, it gets a lot more messy, as
you have to worry about open file descriptors, race conditions, and many
other things.
-- 
				Valdis Kletnieks
				Computer Systems Senior Engineer
				Virginia Tech


[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Expand VM
  2003-01-23 19:40   ` User &
  2003-01-23 20:02     ` Valdis.Kletnieks
@ 2003-01-23 23:20     ` Thomas Cataldo
  1 sibling, 0 replies; 15+ messages in thread
From: Thomas Cataldo @ 2003-01-23 23:20 UTC (permalink / raw)
  To: User &; +Cc: Valdis.Kletnieks, linux-kernel

On Thu, 2003-01-23 at 20:40, User & wrote:
> Hi Valdis
> 
> Create a new VMA on Linux B for Linux A is easy , but i have a problem , the 
> address of VMA is returned on Linux B , so the VMA created on Linux B can not 
> be used for process of linux A.
> The problem is "how can i return address of VMA created on LINUX B to Linux 
> A , and use this space ?".
> 


What you're looking for is openmosix. It does process migration and so
on..

> Thanks
> Breno
> 
> On Thu, 23 Jan 2003 11:55:38 -0500, Valdis.Kletnieks wrote
> > On Thu, 23 Jan 2003 12:56:27 -0300, User & 
> > <breno_silva@beta.bandnet.com.br>  said:
> > 
> > > I have one idea , and this is about expand virtual memory on linux boxes 
> > > connected in LAN.
> > > Example: Linux A is processing come information , and need more memory , 
> so 
> > > with this source , Linux A could access virtual memory on Linux B in LAN.
> > 
> > We've seen *this* done before (remember diskless Sun3-50's?) - the /dev/swap
> > file would be a large file on an NFS mount from a server.  At the 
> > time, this actually made performance sense, because the old 
> > 'Shoebox' drives the -50 came with were incredibly slow, and you 
> > could actually do an NFS operation to a larger server (a -280 with 
> > Fujitsu SuperEagle disks, for instance) faster than talking to the 
> > local disk.
> > 
> > These days, it's probably easier and cheaper to just buy more RAM 
> > and/or disk for Linux A.
> > 
> > > But i don´t know how translate the virtual address between Linux A and 
> B , to 
> > > have success in acess VM, or how to send all the process for Linux B to 
> be 
> > > processed.
> > 
> > Sending the whole process to Linux B to be processed is called "process
> > migration", and is a difficult problem.  Moving the memory image of the
> > process is usually pretty easy.  What is difficult is moving things like
> > references to open files, file locks, and so on (what if the process 
> > is actively writing to block 739 of /usr/foo/some.file, and the 
> > LinuxB machine doesn't have a /usr/foo, or the permissions on 
> > some.file don't match, or another process has it locked, or... ) 
> > There be nasty dragons in this.
> > 
> > You're probably better off buying more RAM and disk for your A machine.
> > -- 
> > 				Valdis Kletnieks
> > 				Computer Systems Senior Engineer
> > 				Virginia Tech
> 
> 
> 
> ----------------------
> WebMail Bandnet.com.br
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
-- 
Thomas Cataldo <tomc@compaqnet.fr>


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Expand VM
  2003-01-23 15:56 Expand VM User &
                   ` (3 preceding siblings ...)
  2003-01-23 17:09 ` kkonaka
@ 2003-01-24 15:20 ` Bill Davidsen
  4 siblings, 0 replies; 15+ messages in thread
From: Bill Davidsen @ 2003-01-24 15:20 UTC (permalink / raw)
  To: User &; +Cc: linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=US-ASCII, Size: 759 bytes --]

On Thu, 23 Jan 2003, User & wrote:

> I have one idea , and this is about expand virtual memory on linux boxes 
> connected in LAN.
> Example: Linux A is processing come information , and need more memory , so 
> with this source , Linux A could access virtual memory on Linux B in LAN.
> But i don´t know how translate the virtual address between Linux A and B , to 
> have success in acess VM, or how to send all the process for Linux B to be 
> processed.
> 
> Any ideas ?

1 - NFS mount a big file and use that from swap space
2 - you could try the network block device stuff, at one time I believe I
had that working with RAID-1

-- 
bill davidsen <davidsen@tmr.com>
  CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2003-01-28  5:44 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-23 15:56 Expand VM User &
2003-01-23 16:04 ` Richard B. Johnson
2003-01-23 16:19   ` John Bradford
2003-01-23 16:33     ` Sean Neakums
2003-01-23 16:56       ` John Bradford
2003-01-23 17:58         ` Herman Oosthuysen
2003-01-23 18:46           ` John Bradford
2003-01-23 19:42             ` Herman Oosthuysen
2003-01-23 16:18 ` Patrizio Bruno
2003-01-23 16:55 ` Valdis.Kletnieks
2003-01-23 19:40   ` User &
2003-01-23 20:02     ` Valdis.Kletnieks
2003-01-23 23:20     ` Thomas Cataldo
2003-01-23 17:09 ` kkonaka
2003-01-24 15:20 ` Bill Davidsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).