From owner-freebsd-hackers Wed Jun 14 11:56:33 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA23174 for hackers-outgoing; Wed, 14 Jun 1995 11:56:33 -0700 Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id LAA23165 for ; Wed, 14 Jun 1995 11:56:28 -0700 Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id VAA23857 for hackers@freebsd.org; Wed, 14 Jun 1995 21:02:38 +0200 From: Luigi Rizzo Message-Id: <199506141902.VAA23857@labinfo.iet.unipi.it> Subject: Diskless question To: hackers@freebsd.org Date: Wed, 14 Jun 1995 21:02:38 +0200 (MET DST) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1947 Sender: hackers-owner@freebsd.org Precedence: bulk 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 ====================================================================