Hi Erwin,

As long as you have enough RAM on the server, you don't need to worry with swap.

The hard question here is, how much RAM is enough? With LTSP, is
harder to say, as you need to multiply the expected comsumption of one
desktop user by the number of simultaneous users.

The swap space is a resource the system may use to pretend it have
more RAM that it really have. But is bad for the system when it uses
swap, as disk access is about 1000 times slower than main memory.

As Jim McQuillan said, changing the size of swap may be a hard task,
as normally swap is built on disk partitions. Changing the size of a
partition on a production server is very, very risky.

But there's an alternative, if you really need more swap space, and
can't stop the server, or if you can't create or modify your disk
partitions: file-based swap.

If you create a large, contiguous file, you can use "mkswap" to format
this file to work as swap, so you can activate it with "swapon".

These commands will create a 1GiB file called "/var/run/newswap" and
activate it:

# dd if=/dev/zero of=/var/run/newswap bs=1048576 count=1024
# mkswap /var/run/newswap
# swapon /var/run/newswap

The advantage here is that you don't need to reboot to activate. The
disavantage is that this swap is even slower than partition-based.

If you intend to keep this on next reboot, you need to add the
"swapon" command to the init scripts.

2007/9/21, Erwin Groeneveld <[EMAIL PROTECTED]>:
> Hi all,
>
> My ltsp-system works perfectly well until I add more clients to it.
> Since buying extra memory is not very attractive (Senegal, not very
> rich) it should be nice to specify an option to use either more the
> memory in the server (1GB) or in the clients (128 MB).
>
> I've read about lts.conf-options, like "nbd_swap = y" or f.e.
> "use_local_swap = y", but what is the best option? Any ideas?
>
> Greetings and have a nice weekend you all!
>
> Erwin.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _____________________________________________________________________
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>       https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.freenode.net
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to