Re: Adding makemandb as build tool for man.db

David Brownlee <[email protected]>
Newsgroups gmane.os.netbsd.ports.mac68k,gmane.os.netbsd.devel.installation
Message-ID <CAGN_6pY7zW15W-qkCSB0doe_DURjbyfgB=Lt1C9PAs=Hgv0DnA@mail.gmail.com>
What do people think of the following diff to sysinst to add makemandb=NO
to rc.conf on slow or low memory machines:

Essentially adjust_for_low_ram_or_slow_cpu()  would be run just before
md_cleanup_install(), and each md.h defines (or not) SLOW_CPU.
For now this just sets makemandb=NO (leaving nightly cron to update it),
but it could potentially be extended in time.

I'm happy for adjustments on the "'SLOW_CPU" and "not SLOW_CPU" lists - its
just intended as a rough heuristic. There will be some ports who have
machines firmly in both camps.

not SLOW:
alpha amd64 bebox evbarm evbmips hppa i386 macppc ofppc sgimips sparc
sparc64

SLOW:
acorn32 amiga arc atari cats cobalt emips evbppc evbsh3 ews4800mips hp300
hpcarm hpcmips hpcsh landisk luna68k mac68k mipsco mvme68k news68k newsmips
playstation2 pmax prep sandpoint shark vax x68k zaurus

David

/* Add some settings for arches which define SLOW_CPU *or* when RAM < 64 */
int
adjust_for_low_ram_or_slow_cpu()
{
#ifndef SLOW_CPU
       if (get_ramsize() >= 64)
               return 0;
#endif
       add_rc_conf("makemandb=NO\n");
       return 0;
}


On Tue, 16 Oct 2018 at 15:55, David Brownlee <[email protected]> wrote:

> On Wed, 10 Oct 2018 at 20:05, Robert Swindells <[email protected]> wrote:
> >
> > [email protected] wrote:
> > >On 10/9/18 3:02 AM, Martin Husemann wrote:
> > >> On Tue, Oct 09, 2018 at 09:46:48AM +0100, David Brownlee wrote:
> > >>> On lower powered (and particularly lower memory boxes), the makemandb
> > >>> on first boot after install can run for some time and significantly
> > >>> affect the performance of the system (in extreme cases for several
> > >>> hours).
> > >> It is not so much memory, but slow disk access that makes it painfull.
> > >> Most sparc machines do pretty well, mac68k is a disaster.
> > >>
> > >> Even if you distribute the database, it will take some serious time on
> > >> each boot to check it is up to date.
> > >>
> > >> Maybe we should add an rc.conf option to delay it after boot (i.e.
> sleep
> > >> three hours and only then start the man page check), defaulting to 0
> (i.e.
> > >> no delay) on most architectures but make sysinst configure it to a few
> > >> hours on slow architectures.
> > >
> > >Maybe add a rc.conf option to disable man page processing
> > >altogether?
> >
> > We already have one:
> >
> > makemandb=NO
> >
> > You also need a line in /etc/daily.conf though to keep it turned off:
> >
> > run_makemandb=NO
>
> As a useful initial step how about sysinst setting makemandb=NO for
> low memory/cpu machines (possibly RAM < x or uname-p in y), we can
> then expand that later.
>
> I would be inclined to leave the run_makemandb alone in cron at this
> stage as its the overnight processing, but happy to be persuaded
> otherwise :)
>
> David
>
sysinst.diff (text/x-patch, 21.2 KB)
? sysinst.diff
Index: install.c
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/install.c,v
retrieving revision 1.5
diff -u -r1.5 install.c
--- install.c	20 Sep 2018 12:27:42 -0000	1.5
+++ install.c	30 Oct 2018 09:41:19 -0000
@@ -126,6 +126,7 @@
 
 	sanity_check();
 
+	adjust_for_low_ram_or_slow_cpu();
 	md_cleanup_install();
 
 	msg_display(MSG_instcomplete);
Index: util.c
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/util.c,v
retrieving revision 1.12
diff -u -r1.12 util.c
--- util.c	6 Oct 2018 18:45:37 -0000	1.12
+++ util.c	30 Oct 2018 09:41:19 -0000
@@ -266,6 +266,18 @@
 	return (ramsize + MEG - 1) / MEG;
 }
 
+/* Add some settings for arches which define SLOW_CPU *or* when RAM < 64 */
+int
+adjust_for_low_ram_or_slow_cpu()
+{
+#ifndef SLOW_CPU
+	if (get_ramsize() >= 64)
+		return 0;
+#endif
+	add_rc_conf("makemandb=NO\n");
+	return 0;
+}
+
 void
 run_makedev(void)
 {
Index: arch/acorn32/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/acorn32/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/acorn32/md.h	26 Jul 2014 19:30:44 -0000	1.1
+++ arch/acorn32/md.h	30 Oct 2018 09:41:19 -0000
@@ -37,6 +37,9 @@
 
 /* Constants and defines */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 /* Megs required for a full X installation. */
 #define XNEEDMB 60
 
Index: arch/alpha/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/alpha/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/alpha/md.h	26 Jul 2014 19:30:44 -0000	1.1
+++ arch/alpha/md.h	30 Oct 2018 09:41:20 -0000
@@ -37,6 +37,9 @@
 
 /* Constants and defines */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#undef SLOW_CPU
+
 /*
  * Symbolic names for disk partitions.
  */
Index: arch/amd64/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/amd64/md.h,v
retrieving revision 1.2
diff -u -r1.2 md.h
--- arch/amd64/md.h	14 Nov 2015 23:00:17 -0000	1.2
+++ arch/amd64/md.h	30 Oct 2018 09:41:20 -0000
@@ -34,6 +34,9 @@
 
 /* md.h -- Machine specific definitions for the i386 */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#undef SLOW_CPU
+
 
 #include <machine/cpu.h>
 #include <sys/types.h>
Index: arch/amiga/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/amiga/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/amiga/md.h	26 Jul 2014 19:30:44 -0000	1.1
+++ arch/amiga/md.h	30 Oct 2018 09:41:20 -0000
@@ -34,6 +34,9 @@
 
 /* md.h -- Machine specific definitions for the amiga */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 
 #include <machine/cpu.h>
 #include <sys/types.h>
Index: arch/arc/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/arc/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/arc/md.h	26 Jul 2014 19:30:44 -0000	1.1
+++ arch/arc/md.h	30 Oct 2018 09:41:20 -0000
@@ -34,6 +34,9 @@
 
 /* md.h -- Machine specific definitions for the arc */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 
 #include <machine/cpu.h>
 #include <sys/types.h>
Index: arch/atari/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/atari/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/atari/md.h	26 Jul 2014 19:30:44 -0000	1.1
+++ arch/atari/md.h	30 Oct 2018 09:41:20 -0000
@@ -34,6 +34,9 @@
 
 /* md.h -- Machine specific definitions for the atari */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 
 #include <machine/cpu.h>
 #include <sys/types.h>
Index: arch/bebox/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/bebox/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/bebox/md.h	26 Jul 2014 19:30:44 -0000	1.1
+++ arch/bebox/md.h	30 Oct 2018 09:41:20 -0000
@@ -34,6 +34,9 @@
 
 /* md.h -- Machine specific definitions for the bebox */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#undef SLOW_CPU
+
 
 /* bebox uses the mbr code. */
 #include "mbr.h"
Index: arch/cats/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/cats/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/cats/md.h	26 Jul 2014 19:30:44 -0000	1.1
+++ arch/cats/md.h	30 Oct 2018 09:41:20 -0000
@@ -35,6 +35,9 @@
 
 /* md.h -- Machine specific definitions for the cats */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 /* Constants and defines */
 
 /* Megs required for a full X installation. */
Index: arch/cobalt/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/cobalt/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/cobalt/md.h	26 Jul 2014 19:30:44 -0000	1.1
+++ arch/cobalt/md.h	30 Oct 2018 09:41:20 -0000
@@ -34,6 +34,9 @@
 
 /* md.h -- Machine specific definitions for the cobalt */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 
 #include <machine/cpu.h>
 #include <sys/types.h>
Index: arch/emips/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/emips/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/emips/md.h	26 Jul 2014 19:30:45 -0000	1.1
+++ arch/emips/md.h	30 Oct 2018 09:41:20 -0000
@@ -36,6 +36,9 @@
 
 /* Constants and defines */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 /*
  * Symbolic names for disk partitions.
  */
Index: arch/evbarm/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/evbarm/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/evbarm/md.h	26 Jul 2014 19:30:45 -0000	1.1
+++ arch/evbarm/md.h	30 Oct 2018 09:41:20 -0000
@@ -35,6 +35,9 @@
 
 /* md.h -- Machine specific definitions for evbarm */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#undef SLOW_CPU
+
 #include "mbr.h"
 
 /* Constants and defines */
Index: arch/evbmips/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/evbmips/md.h,v
retrieving revision 1.2
diff -u -r1.2 md.h
--- arch/evbmips/md.h	9 Aug 2017 23:01:06 -0000	1.2
+++ arch/evbmips/md.h	30 Oct 2018 09:41:20 -0000
@@ -34,6 +34,9 @@
 
 /* md.h -- Machine specific definitions for the evbmips */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#undef SLOW_CPU
+
 /* evbmips uses the mbr code. */
 #include "mbr.h"
 
Index: arch/evbppc/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/evbppc/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/evbppc/md.h	26 Jul 2014 19:30:45 -0000	1.1
+++ arch/evbppc/md.h	30 Oct 2018 09:41:20 -0000
@@ -34,6 +34,9 @@
 
 /* md.h -- Machine specific definitions for the bebox */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 
 /* bebox uses the mbr code. */
 #include "mbr.h"
Index: arch/evbsh3/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/evbsh3/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/evbsh3/md.h	26 Jul 2014 19:30:45 -0000	1.1
+++ arch/evbsh3/md.h	30 Oct 2018 09:41:20 -0000
@@ -33,6 +33,9 @@
  *
  */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 /*
  * Symbolic names for disk partitions
  */
Index: arch/ews4800mips/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/ews4800mips/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/ews4800mips/md.h	26 Jul 2014 19:30:45 -0000	1.1
+++ arch/ews4800mips/md.h	30 Oct 2018 09:41:20 -0000
@@ -33,6 +33,9 @@
  *
  */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 /*
  * Symbolic names for disk partitions
  */
Index: arch/hp300/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/hp300/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/hp300/md.h	26 Jul 2014 19:30:45 -0000	1.1
+++ arch/hp300/md.h	30 Oct 2018 09:41:20 -0000
@@ -35,6 +35,9 @@
 
 /* md.h -- Machine specific definitions for the hp300 */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 
 #include <machine/cpu.h>
 #include <sys/types.h>
Index: arch/hpcarm/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/hpcarm/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/hpcarm/md.h	26 Jul 2014 19:30:45 -0000	1.1
+++ arch/hpcarm/md.h	30 Oct 2018 09:41:20 -0000
@@ -34,6 +34,9 @@
 
 /* md.h -- Machine specific definitions for the i386 */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 
 #include <machine/cpu.h>
 #include <sys/types.h>
Index: arch/hpcmips/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/hpcmips/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/hpcmips/md.h	26 Jul 2014 19:30:45 -0000	1.1
+++ arch/hpcmips/md.h	30 Oct 2018 09:41:20 -0000
@@ -34,6 +34,9 @@
 
 /* md.h -- Machine specific definitions for the hpcmips */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 
 #include <machine/cpu.h>
 #include <sys/types.h>
Index: arch/hpcsh/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/hpcsh/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/hpcsh/md.h	26 Jul 2014 19:30:45 -0000	1.1
+++ arch/hpcsh/md.h	30 Oct 2018 09:41:20 -0000
@@ -34,6 +34,9 @@
 
 /* md.h -- Machine specific definitions for the hpcsh */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 
 #include <machine/cpu.h>
 #include <sys/types.h>
Index: arch/hppa/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/hppa/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/hppa/md.h	26 Jul 2014 19:30:45 -0000	1.1
+++ arch/hppa/md.h	30 Oct 2018 09:41:20 -0000
@@ -35,6 +35,9 @@
 
 /* md.h -- Machine specific definitions for the hppa */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#undef SLOW_CPU
+
 /* Constants and defines */
 
 /*
Index: arch/i386/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/i386/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/i386/md.h	26 Jul 2014 19:30:45 -0000	1.1
+++ arch/i386/md.h	30 Oct 2018 09:41:20 -0000
@@ -34,6 +34,9 @@
 
 /* md.h -- Machine specific definitions for the i386 */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#undef SLOW_CPU
+
 
 #include <machine/cpu.h>
 #include <sys/types.h>
Index: arch/landisk/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/landisk/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/landisk/md.h	26 Jul 2014 19:30:46 -0000	1.1
+++ arch/landisk/md.h	30 Oct 2018 09:41:20 -0000
@@ -34,6 +34,9 @@
 
 /* md.h -- Machine specific definitions for the landisk */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 /* landisk uses the mbr code. */
 #include "mbr.h"
 
Index: arch/luna68k/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/luna68k/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/luna68k/md.h	26 Jul 2014 19:30:46 -0000	1.1
+++ arch/luna68k/md.h	30 Oct 2018 09:41:20 -0000
@@ -35,6 +35,9 @@
 
 /* md.h -- Machine specific definitions for the luna68k */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 /* Constants and defines */
 
 /*
Index: arch/mac68k/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/mac68k/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/mac68k/md.h	26 Jul 2014 19:30:46 -0000	1.1
+++ arch/mac68k/md.h	30 Oct 2018 09:41:20 -0000
@@ -37,6 +37,9 @@
 
 /* md.h -- Machine specific definitions for the mac68k */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 /*
  * Apple Partition Map Types
  *    Reserved - Entry hidden by sysinst from user
Index: arch/macppc/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/macppc/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/macppc/md.h	26 Jul 2014 19:30:46 -0000	1.1
+++ arch/macppc/md.h	30 Oct 2018 09:41:20 -0000
@@ -37,6 +37,9 @@
 
 /* Constants and defines */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#undef SLOW_CPU
+
 /*
  * Symbolic names for disk partitions.
  */
Index: arch/mipsco/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/mipsco/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/mipsco/md.h	26 Jul 2014 19:30:46 -0000	1.1
+++ arch/mipsco/md.h	30 Oct 2018 09:41:20 -0000
@@ -37,6 +37,9 @@
 
 /* Constants and defines */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 /*
  * Symbolic names for disk partitions.
  */
Index: arch/mvme68k/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/mvme68k/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/mvme68k/md.h	26 Jul 2014 19:30:46 -0000	1.1
+++ arch/mvme68k/md.h	30 Oct 2018 09:41:20 -0000
@@ -35,6 +35,9 @@
 
 /* md.h -- Machine specific definitions for the mvme68k */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 
 #include <machine/cpu.h>
 #include <sys/types.h>
Index: arch/news68k/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/news68k/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/news68k/md.h	26 Jul 2014 19:30:46 -0000	1.1
+++ arch/news68k/md.h	30 Oct 2018 09:41:20 -0000
@@ -37,6 +37,9 @@
 
 /* Constants and defines */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 /*
  * Symbolic names for disk partitions
  */
Index: arch/newsmips/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/newsmips/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/newsmips/md.h	26 Jul 2014 19:30:46 -0000	1.1
+++ arch/newsmips/md.h	30 Oct 2018 09:41:20 -0000
@@ -37,6 +37,9 @@
 
 /* Constants and defines */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 /*
  * Symbolic names for disk partitions
  */
Index: arch/ofppc/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/ofppc/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/ofppc/md.h	26 Jul 2014 19:30:46 -0000	1.1
+++ arch/ofppc/md.h	30 Oct 2018 09:41:20 -0000
@@ -34,6 +34,9 @@
 
 /* md.h -- Machine specific definitions for the ofppc */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#undef SLOW_CPU
+
 
 #include <machine/cpu.h>
 #include <sys/types.h>
Index: arch/playstation2/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/playstation2/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/playstation2/md.h	26 Jul 2014 19:30:46 -0000	1.1
+++ arch/playstation2/md.h	30 Oct 2018 09:41:20 -0000
@@ -38,6 +38,9 @@
 
 /* md.h -- Machine specific definitions for the playstation2 */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 
 #include <machine/cpu.h>
 #include <sys/types.h>
Index: arch/pmax/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/pmax/md.h,v
retrieving revision 1.2
diff -u -r1.2 md.h
--- arch/pmax/md.h	4 Nov 2016 19:18:50 -0000	1.2
+++ arch/pmax/md.h	30 Oct 2018 09:41:20 -0000
@@ -36,6 +36,9 @@
 
 /* Constants and defines */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 /*
  * Symbolic names for disk partitions.
  */
Index: arch/prep/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/prep/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/prep/md.h	26 Jul 2014 19:30:46 -0000	1.1
+++ arch/prep/md.h	30 Oct 2018 09:41:20 -0000
@@ -34,6 +34,9 @@
 
 /* md.h -- Machine specific definitions for the prep */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 
 #include <machine/cpu.h>
 #include <sys/types.h>
Index: arch/sandpoint/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/sandpoint/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/sandpoint/md.h	26 Jul 2014 19:30:47 -0000	1.1
+++ arch/sandpoint/md.h	30 Oct 2018 09:41:20 -0000
@@ -34,6 +34,9 @@
 
 /* md.h -- Machine specific definitions for the bebox */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 
 /* bebox uses the mbr code. */
 #include "mbr.h"
Index: arch/sgimips/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/sgimips/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/sgimips/md.h	26 Jul 2014 19:30:47 -0000	1.1
+++ arch/sgimips/md.h	30 Oct 2018 09:41:20 -0000
@@ -34,6 +34,9 @@
 
 /* md.h -- Machine specific definitions for the sgimips */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#undef SLOW_CPU
+
 /* Constants and defines */
 
 /*
Index: arch/shark/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/shark/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/shark/md.h	26 Jul 2014 19:30:47 -0000	1.1
+++ arch/shark/md.h	30 Oct 2018 09:41:20 -0000
@@ -35,6 +35,9 @@
 
 /* md.h -- Machine specific definitions for the shark */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 /* Constants and defines */
 
 /* Megs required for a full X installation. */
Index: arch/sparc/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/sparc/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/sparc/md.h	26 Jul 2014 19:30:47 -0000	1.1
+++ arch/sparc/md.h	30 Oct 2018 09:41:20 -0000
@@ -35,6 +35,9 @@
 
 /* md.h -- Machine specific definitions for the sparc */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#undef SLOW_CPU
+
 /* Constants and defines */
 
 /*
Index: arch/sparc64/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/sparc64/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/sparc64/md.h	26 Jul 2014 19:30:47 -0000	1.1
+++ arch/sparc64/md.h	30 Oct 2018 09:41:20 -0000
@@ -33,7 +33,10 @@
  *
  */
 
-/* md.h -- Machine specific definitions for the sparc */
+/* md.h -- Machine specific definitions for the sparc64 */
+
+/* Should all machines of this arch be considered 'slow cpu' */
+#undef SLOW_CPU
 
 /* Constants and defines */
 #define	DEFSWAPSIZE	(-1)
Index: arch/vax/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/vax/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/vax/md.h	26 Jul 2014 19:30:47 -0000	1.1
+++ arch/vax/md.h	30 Oct 2018 09:41:20 -0000
@@ -37,6 +37,9 @@
 
 /* Constants and defines */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 /*
  * Symbolic names for disk partitions.
  */
Index: arch/x68k/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/x68k/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/x68k/md.h	26 Jul 2014 19:30:47 -0000	1.1
+++ arch/x68k/md.h	30 Oct 2018 09:41:20 -0000
@@ -45,6 +45,9 @@
 
 /* constants and defines */
 
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 /*
  * Symbolic names for disk partitions.
  */
Index: arch/zaurus/md.h
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/arch/zaurus/md.h,v
retrieving revision 1.1
diff -u -r1.1 md.h
--- arch/zaurus/md.h	26 Jul 2014 19:30:47 -0000	1.1
+++ arch/zaurus/md.h	30 Oct 2018 09:41:20 -0000
@@ -38,6 +38,10 @@
 #include "mbr.h"
 
 /* Constants and defines */
+
+/* Should all machines of this arch be considered 'slow cpu' */
+#define SLOW_CPU	1
+
 #define	PART_ROOT	PART_A
 #define	PART_SWAP	PART_B
 #define	PART_BSD	PART_C
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.