FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 08-24-2012, 12:22 PM
ML mail
 
Default No swap for Debian preseed automated installation

Hi,

I am currently creating a preseed file to get my server installed automatically over the network with PXE boot. This server will have no swap space but I have the problem that if I do not specify a swap space in my preseed configuration file the automated Debian installation stops and opens a dialog for configuring swap space.

I deduct here that it is not possible to have a fully automated installation without a swap space. Am I right? Or are there any tricks to overcome this necessity of swap space?

Cheers,
ML


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1345810921.35408.YahooMailNeo@web111404.mail.gq1.y ahoo.com">http://lists.debian.org/1345810921.35408.YahooMailNeo@web111404.mail.gq1.y ahoo.com
 
Old 08-24-2012, 12:41 PM
Brian
 
Default No swap for Debian preseed automated installation

On Fri 24 Aug 2012 at 05:22:01 -0700, ML mail wrote:

> I am currently creating a preseed file to get my server installed
> automatically over the network with PXE boot. This server will have no
> swap space but I have the problem that if I do not specify a swap
> space in my preseed configuration file the automated Debian
> installation stops and opens a dialog for configuring swap space.
>
> I deduct here that it is not possible to have a fully automated
> installation without a swap space. Am I right? Or are there any tricks
> to overcome this necessity of swap space?

No tricks involved. Download the partman-basicfilesystems udeb and
search for 'no_swap' in the templates file.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20120824124157.GN10084@desktop
 
Old 08-24-2012, 12:55 PM
ML mail
 
Default No swap for Debian preseed automated installation

That's good news, I didn't see that option in the Debian sample preseed config files. So as you recommended I checked the partman-basicfilesystems package from Ubuntu and found the template which does that. Now added the following to my debian preseed file:

d-i partman-basicfilesystems/no_swap boolean false

and am going to test it right now




----- Original Message -----
From: Brian <ad44@cityscape.co.uk>
To: debian-user@lists.debian.org
Cc:
Sent: Friday, August 24, 2012 2:41 PM
Subject: Re: No swap for Debian preseed automated installation

On Fri 24 Aug 2012 at 05:22:01 -0700, ML mail wrote:

> I am currently creating a preseed file to get my server installed
> automatically over the network with PXE boot. This server will have no
> swap space but I have the problem that if I do not specify a swap
> space in my preseed configuration file the automated Debian
> installation stops and opens a dialog for configuring swap space.
>
> I deduct here that it is not possible to have a fully automated
> installation without a swap space. Am I right? Or are there any tricks
> to overcome this necessity of swap space?

No tricks involved. Download the partman-basicfilesystems udeb and
search for 'no_swap' in the templates file.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20120824124157.GN10084@desktop


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1345812949.52770.YahooMailNeo@web111416.mail.gq1.y ahoo.com">http://lists.debian.org/1345812949.52770.YahooMailNeo@web111416.mail.gq1.y ahoo.com
 
Old 08-25-2012, 12:55 PM
"Christofer C. Bell"
 
Default No swap for Debian preseed automated installation

On Fri, Aug 24, 2012 at 7:55 AM, ML mail <mlnospam@yahoo.com> wrote:
> That's good news, I didn't see that option in the Debian sample preseed config files. So as you recommended I checked the partman-basicfilesystems package from Ubuntu and found the template which does that. Now added the following to my debian preseed file:
>
> d-i partman-basicfilesystems/no_swap boolean false
>
> and am going to test it right now

I'd ask you to keep in mind that even "unused swap" (meaning, you do
not expect the system to need to swap) is still useful and valuable.
Sometimes processes ask for more memory than is available in the
system. The kernel will not allow the process to run unless there's
sufficient virtual memory to fulfill the request, even if the swap is
never used.

For example, you have 250MB free RAM in the machine and start an
application that asks for 500MB but will only use 150MB. Without
swap, the kernel will tell you the system is out of memory and will
not start the process. If you have sufficient swap (in this case, at
least 250MB) the process will start, your swap space will never be
used, and you'll still have 100MB free RAM. But without that swap,
you'd end up with nothing.

I just want to make sure you're aware of the consequences of not
configuring any swap space even if you do not anticipate the system
will ever need to actually page out to it.

--
Chris


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAOEVnYsbWhtzV1sH4360UuCqQafei0O7rD-nna5jnT5CduWyYA@mail.gmail.com">http://lists.debian.org/CAOEVnYsbWhtzV1sH4360UuCqQafei0O7rD-nna5jnT5CduWyYA@mail.gmail.com
 
Old 08-25-2012, 01:47 PM
Bob Proulx
 
Default No swap for Debian preseed automated installation

Christofer C. Bell wrote:
> I'd ask you to keep in mind that even "unused swap" (meaning, you do
> not expect the system to need to swap) is still useful and valuable.

Agreed.

> Sometimes processes ask for more memory than is available in the
> system. The kernel will not allow the process to run unless there's
> sufficient virtual memory to fulfill the request, even if the swap is
> never used.

That depends upon the Linux kernel setting of vm.overcommit_memory. I
have ranted about this on a number of occasions. But the Linux kernel
default is to overcommit. In which case swap is not used in the
traditional way. Of course that setting isn't sane for serious
systems, the OOM killer might kill processes I don't want killed, and
so I always set it to not allow overcommit which is the traditional
Unix behavior. In which case swap is used in the traditional way.

And newly part of the environment is now a /tmp mounted as a tmpfs.
That use of tmpfs will probably need swap as a backing store for it.
So now swap is doubly important.

http://lists.debian.org/debian-user/2007/08/msg00022.html

http://lists.debian.org/debian-user/2008/04/msg02554.html

> I just want to make sure you're aware of the consequences of not
> configuring any swap space even if you do not anticipate the system
> will ever need to actually page out to it.

Agreed.

Bob
 
Old 08-25-2012, 05:47 PM
"Christofer C. Bell"
 
Default No swap for Debian preseed automated installation

On Sat, Aug 25, 2012 at 8:47 AM, Bob Proulx <bob@proulx.com> wrote:
> Christofer C. Bell wrote:
>
> That depends upon the Linux kernel setting of vm.overcommit_memory. I
> have ranted about this on a number of occasions. But the Linux kernel
> default is to overcommit. In which case swap is not used in the
> traditional way. Of course that setting isn't sane for serious
> systems, the OOM killer might kill processes I don't want killed, and
> so I always set it to not allow overcommit which is the traditional
> Unix behavior. In which case swap is used in the traditional way.
>
> And newly part of the environment is now a /tmp mounted as a tmpfs.
> That use of tmpfs will probably need swap as a backing store for it.
> So now swap is doubly important.
>
> http://lists.debian.org/debian-user/2007/08/msg00022.html
>
> http://lists.debian.org/debian-user/2008/04/msg02554.html

Bob, thanks for posting these links again. You've reminded me of the
default setting of 0 and I've once again followed your advice and set
it to 2 (just in the last few minutes). I don't like the current
default, either!

--
Chris


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAOEVnYswrj_qKxasSR-7hscU-LT7ZZjnANp4EHiHcVTJXW5Oqw@mail.gmail.com">http://lists.debian.org/CAOEVnYswrj_qKxasSR-7hscU-LT7ZZjnANp4EHiHcVTJXW5Oqw@mail.gmail.com
 

Thread Tools




All times are GMT. The time now is 02:55 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org