Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 1995 21:02:38 +0200 (MET DST)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        hackers@freebsd.org
Subject:   Diskless question
Message-ID:  <199506141902.VAA23857@labinfo.iet.unipi.it>

next in thread | raw e-mail | index | archive | help
Apparently all documentation on netboot has disappeared.

It took me a couple of hours to understand why my 386sx wouldn't
launch init & friends when booting diskless... Finally I realized
that it was too slow and couldn't keep up with the server!

Given that often netboot is used with slow/old machines, I think
it would be *much* better to use conservative defaults on rsize
and wsize (such as 1024) for NFS-mounted partitions when using
netboot (I am not suggesting also the use of TCP just because not
all NFS servers support it).


Would someone care to apply the following patch to
/sys/i386/boot/netboot/main.c ?

prova# diff -c main.c.new main.c
*** main.c.new  Wed Jun 14 18:51:36 1995
--- main.c      Wed Jun 14 18:45:04 1995
***************
*** 85,94 ****
  
  /* Initialize this early on */
  
!         nfsdiskless.root_args.rsize = 1024;
!         nfsdiskless.root_args.wsize = 1024;
!         nfsdiskless.swap_args.rsize = 1024;
!         nfsdiskless.swap_args.wsize = 1024;
          nfsdiskless.root_args.sotype = SOCK_DGRAM;
          nfsdiskless.root_args.flags = (NFSMNT_WSIZE | NFSMNT_RSIZE);
          nfsdiskless.swap_args.sotype = SOCK_DGRAM;
--- 85,94 ----
  
  /* Initialize this early on */
  
!         nfsdiskless.root_args.rsize = 8192;
!         nfsdiskless.root_args.wsize = 8192;
!         nfsdiskless.swap_args.rsize = 8192;
!         nfsdiskless.swap_args.wsize = 8192;
          nfsdiskless.root_args.sotype = SOCK_DGRAM;
          nfsdiskless.root_args.flags = (NFSMNT_WSIZE | NFSMNT_RSIZE);
          nfsdiskless.swap_args.sotype = SOCK_DGRAM;


	Thanks
	Luigi
====================================================================
Luigi Rizzo                     Dip. di Ingegneria dell'Informazione
email: luigi@iet.unipi.it       Universita' di Pisa
tel: +39-50-568533              via Diotisalvi 2, 56126 PISA (Italy)
fax: +39-50-568522
====================================================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506141902.VAA23857>