Re: kernel config optimized

2004-04-20 Thread Giorgos Keramidas
On 2004-04-19 14:31, Kevin D. Kinsey, DaleCo, S.P. [EMAIL PROTECTED] wrote:
 Brian Henning wrote:
 The following is a copy of my kernel config file. I am trying to
 optimize it as much as possible.
 
 do i need any of these psudo devices?
 pseudo-device loop # Network loopback

 Most people would leave this in.  I've no idea what might break
 without it, but I'll wager something might ... for example, what would
 you think of a box that couldn't find localhost with both hands?  No
 lo, that's what you might well get ...

Yes please, leave it in!

There aren't many things that *do* depend on being able to connect to
localhost:* ports for doing useful work.  However, one should be very
careful with this option.  The loopback interface is considered so
'essential' to the Unix culture that a lot of things might implicitly
depend on it being there and working all the time.  Examples of this
include programs like:

* Sendmail's local mail submission daemon (which listens for
  connections to 127.0.0.1:25 by default).

* Caching name servers.  My workstation at home runs, for
  various reasons, a caching named service.  This happens to
  listen on 127.0.0.1:53 for incoming connections.

Other services might need to use the loopback interface too.  It's not
as if the code of lo0 takes up a huge amount of memory or space.
Risking breakage now or in 'surprisingly unexpected moments' the future
just to save a few KB isn't worth the trouble IMHO.

 pseudo-device ether# Ethernet support
 pseudo-device sl 1 # Kernel SLIP
 pseudo-device ppp 1# Kernel PPP
 pseudo-device tun  # Packet tunnel.

 tun is necessary for userland PPP.  If you take out tun, ppp,
 and ether as well as SLIP, what protocols do you figure on using?
 Are you planning on connecting to anything? (Note that I'm not saying
 there's no other way, but these are so common )

I usually remove only SLIP support from my kernels, since I prefer using
PPP if available and it generally *is* available at the places I had to
move my workstation (either PPP or some form of Ethernet connection).

 pseudo-device pty  # Pseudo-ttys (telnet etc)

A lot of things can break if you remove this.  In fact, a lot of things
*will* break since pseudo-ttys are essential for a number of tasks that
are considered very common in every day Unix operation.  For example,
without ptys you can't:

* Run xterm(1) or any other program that requires ptys, like
  script(1) or screen(1).

* Connect to your machine over telnet, rsh, or ssh.

It's not a good idea to remove pty support from your kernel.

 I may be wrong, but wouldn't removing this cause remote access (most
 of it, ftp, telnet, ssh, etc.) to fail?

You're not mistaken.

 Most of your list is stuff that is generally standard and fairly
 essential ... if you've minimized down this far, I'd say you're
 getting close to small enough, wouldn't you?

True :)

Cheers,

- Giorgos

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kernel config optimized

2004-04-19 Thread Kevin D. Kinsey, DaleCo, S.P.
Brian Henning wrote:

The following is a copy of my kernel config file. I am trying to optimize it as
much as possible.
do i need any of these psudo devices?
pseudo-device loop # Network loopback
 

Most people would leave this in.  I've no idea
what might break without it, but I'll wager something
might ... for example, what would you think of a box
that couldn't find localhost with both hands?  No lo,
that's what you might well get 
pseudo-device ether# Ethernet support
pseudo-device sl 1 # Kernel SLIP
pseudo-device ppp 1# Kernel PPP
pseudo-device tun  # Packet tunnel.
 

tun is necessary for userland PPP.  If you
take out tun, ppp, and ether as well
as SLIP, what protocols do you figure on
using?  Are you planning on connecting to
anything? (Note that I'm not saying there's
no other way, but these are so common )
pseudo-device pty  # Pseudo-ttys (telnet etc)
 

I may be wrong, but wouldn't removing this
cause remote access (most of it, ftp, telnet,
ssh, etc.) to fail?
pseudo-device md   # Memory disks
pseudo-device gif  # IPv6 and IPv4 tunneling
pseudo-device faith 1  # IPv6-to-IPv4 relaying (translation)
pseudo-device   splash
do i need any of these devices?
device atadisk # ATA disk drives
 

I suppose not if your disks are SCSI.

device atapicd # ATAPI CDROM drives
 

If no CDROM, or you have a SCSI CDROM, I guess not.

options ATA_STATIC_ID  # Static device numbering

Thanks,

Brian

 

Most of your list is stuff that is generally standard
and fairly essential ... if you've minimized down this
far, I'd say you're getting close to small enough, wouldn't
you?
Kevin Kinsey
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kernel config optimized

2004-04-19 Thread Jorn Argelo
On Monday 19 April 2004 21:02, Brian Henning wrote:
 The following is a copy of my kernel config file. I am trying to optimize
 it as much as possible.

 do i need any of these psudo devices?
 pseudo-device loop # Network loopback
 pseudo-device ether# Ethernet support
 pseudo-device sl 1 # Kernel SLIP
 pseudo-device ppp 1# Kernel PPP
 pseudo-device tun  # Packet tunnel.
 pseudo-device pty  # Pseudo-ttys (telnet etc)
 pseudo-device md   # Memory disks
 pseudo-device gif  # IPv6 and IPv4 tunneling
 pseudo-device faith 1  # IPv6-to-IPv4 relaying (translation)
 pseudo-device   splash

You can safely remove SL, PPP, GIF and Faith, but I would keep the rest if I 
were you.

 do i need any of these devices?
 device atadisk # ATA disk drives
 device atapicd # ATAPI CDROM drives
 options ATA_STATIC_ID  # Static device numbering

Depends on the hardware. If you're not using any IDE drives then you can 
disable that. 


Cheers,

Jorn

[snip]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kernel config optimized

2004-04-19 Thread Kris Kennaway
On Mon, Apr 19, 2004 at 02:02:38PM -0500, Brian Henning wrote:
 The following is a copy of my kernel config file. I am trying to optimize it as
 much as possible.
 
 do i need any of these psudo devices?
 pseudo-device loop # Network loopback
 pseudo-device ether# Ethernet support
 pseudo-device sl 1 # Kernel SLIP
 pseudo-device ppp 1# Kernel PPP
 pseudo-device tun  # Packet tunnel.
 pseudo-device pty  # Pseudo-ttys (telnet etc)
 pseudo-device md   # Memory disks
 pseudo-device gif  # IPv6 and IPv4 tunneling
 pseudo-device faith 1  # IPv6-to-IPv4 relaying (translation)
 pseudo-device   splash

Do you use any of those devices?

 do i need any of these devices?
 device atadisk # ATA disk drives
 device atapicd # ATAPI CDROM drives
 options ATA_STATIC_ID  # Static device numbering

Do you use any of those devices?

Kris


pgp0.pgp
Description: PGP signature