Port-amd64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Making amd64 GENERIC a tad more "modular"



Hi list,

amd64 GENERIC differs largely from i386 GENERIC by making a less
intensive use of of module(7) for options. In fact, most modules are
still compiled as "builtin" rather than being standalone kmods.

See modstat(8) outputs for i386 and amd64, attached.

Would the attached patch (GENERIC.diff) be acceptable?

Thanks!

-- 
Jean-Yves Migeon
jeanyves.migeon%free.fr@localhost
NAME             CLASS      SOURCE     REFS  SIZE     REQUIRES
accf_dataready   misc       builtin    0     -        -
accf_httpready   misc       builtin    0     -        -
acpiwdrt         driver     builtin    0     -        -
aio              misc       builtin    0     -        -
bpf              driver     builtin    0     -        -
cd9660           vfs        builtin    0     -        -
coda             vfs        builtin    0     -        -
compat           misc       builtin    2     -        -
compat_linux     misc       builtin    1     -        
compat,compat_ossaudio,exec_elf64
compat_linux32   misc       builtin    0     -        
compat_linux,exec_elf32,compat_netbsd32
compat_netbsd32  misc       builtin    1     -        compat
compat_ossaudio  misc       builtin    1     -        -
coredump         misc       builtin    0     -        -
drm              misc       builtin    0     -        -
exec_elf32       misc       builtin    1     -        -
exec_elf64       misc       builtin    1     -        -
exec_script      misc       builtin    0     -        -
ext2fs           vfs        builtin    0     -        ffs
fdesc            vfs        builtin    0     -        -
ffs              vfs        builtin    3     -        -
hdafg            driver     builtin    0     -        hdaudio
hdaudio          driver     builtin    1     -        -
ir               driver     builtin    0     -        -
kernfs           vfs        builtin    0     -        -
layerfs          misc       builtin    3     -        -
lfs              vfs        builtin    0     -        ffs
mfs              vfs        builtin    0     -        ffs
mqueue           misc       builtin    0     -        -
msdos            vfs        builtin    0     -        -
nfs              vfs        builtin    1     -        -
nfsserver        misc       builtin    0     -        nfs
nsmb             driver     builtin    0     -        -
ntfs             vfs        builtin    0     -        -
null             vfs        builtin    0     -        layerfs
overlay          vfs        builtin    0     -        layerfs
ppp_bsdcomp      misc       builtin    0     -        -
ppp_deflate      misc       builtin    0     -        -
procfs           vfs        builtin    0     -        -
pseye            driver     builtin    0     -        -
ptyfs            vfs        builtin    0     -        -
puffs            vfs        builtin    0     -        putter
putter           driver     builtin    1     -        -
scsiverbose      misc       builtin    0     -        -
secmodel_bsd44   secmodel   builtin    0     -        suser,securelevel
securelevel      secmodel   builtin    1     -        -
smbfs            vfs        builtin    0     -        -
suser            secmodel   builtin    1     -        -
tmpfs            vfs        builtin    0     -        -
umap             vfs        builtin    0     -        layerfs
union            vfs        builtin    0     -        -
wapbl            vfs        builtin    0     -        -
NAME             CLASS      SOURCE     REFS  SIZE     REQUIRES
acpiwdrt         driver     builtin    0     -        -
au8522           driver     builtin    1     -        -
auvitek          driver     builtin    0     -        au8522,xc5k
bpf              driver     builtin    0     -        -
compat           misc       builtin    0     -        -
coredump         misc       filesys    1     3041     -
drm              misc       builtin    0     -        -
exec_elf32       misc       filesys    0     7416     coredump
exec_script      misc       filesys    0     1161     -
ffs              vfs        boot       0     166523   -
hdafg            driver     builtin    0     -        hdaudio
hdaudio          driver     builtin    1     -        -
ir               driver     builtin    0     -        -
kernfs           vfs        filesys    0     11102    -
procfs           vfs        filesys    0     28030    -
pseye            driver     builtin    0     -        -
ptyfs            vfs        filesys    0     8915     -
scsiverbose      misc       builtin    0     -        -
secmodel_bsd44   secmodel   builtin    0     -        suser,securelevel
securelevel      secmodel   builtin    1     -        -
suser            secmodel   builtin    1     -        -
wapbl            vfs        builtin    0     -        -
xc5k             driver     builtin    1     -        -
Index: sys/arch/amd64/conf/GENERIC
===================================================================
RCS file: /cvsroot/src/sys/arch/amd64/conf/GENERIC,v
retrieving revision 1.303
diff -u -p -r1.303 GENERIC
--- sys/arch/amd64/conf/GENERIC 13 Feb 2011 04:21:23 -0000      1.303
+++ sys/arch/amd64/conf/GENERIC 13 Feb 2011 05:16:39 -0000
@@ -26,6 +26,12 @@ options      INCLUDE_CONFIG_FILE     # embed con
 
 maxusers       64              # estimated number of users
 
+# For GENERIC, we build the exec formats as module(7)s by default.
+#options       EXEC_ELF32      # exec ELF 32-bits binaries
+no options     EXEC_ELF64      # exec ELF 64-bits binaries
+no options     EXEC_SCRIPT     # exec #! scripts
+no options     COREDUMP
+
 # delay between "rebooting ..." message and hardware reset, in milliseconds
 #options       CPURESET_DELAY=2000
 
@@ -65,6 +71,8 @@ options       SYSVMSG         # System V-like messag
 options        SYSVSEM         # System V-like semaphores
 options        SYSVSHM         # System V-like memory sharing
 #options       P1003_1B_SEMAPHORE      # p1003.1b semaphore support
+no options     AIO             # POSIX asynchronous I/O, built as a module(7)
+no options     MQUEUE          # POSIX messsage queues, built as a module(7)
 
 options        MODULAR         # new style module(7) framework
 options        USERCONF        # userconf(4) support
@@ -107,7 +115,7 @@ options     DDB_HISTORY_SIZE=512    # enable h
 #options       SYSCALL_TIMES   # per syscall times
 #options       SYSCALL_TIMES_HASCOUNTER        # use 'broken' rdtsc (soekris)
 
-# Compatibility options
+# Compatibility options, built as module(7)s by default
 options        COMPAT_15       # compatibility with NetBSD 1.5,
 options        COMPAT_16       # NetBSD 1.6,
 options        COMPAT_20       # NetBSD 2.0,
@@ -119,9 +127,8 @@ options     COMPAT_43       # and 4.3BSD
 
 options        COMPAT_OSSAUDIO
 options        COMPAT_NETBSD32
-options        COMPAT_LINUX
-options        COMPAT_LINUX32  # req. COMPAT_LINUX and COMPAT_NETBSD32
-options        EXEC_ELF32
+#options       COMPAT_LINUX
+#options       COMPAT_LINUX32  # req. COMPAT_LINUX and COMPAT_NETBSD32
 options        COMPAT_BSDPTY   # /dev/[pt]ty?? ptys.
 
 # Wedge support
@@ -131,29 +138,30 @@ options   DKWEDGE_METHOD_GPT      # Supports G
 #options       DKWEDGE_METHOD_BSDLABEL # Support disklabel entries as wedges
 #options       DKWEDGE_METHOD_MBR      # Support MBR partitions as wedges
 
-# File systems
 file-system    FFS             # UFS
-file-system    EXT2FS          # second extended file system (linux)
-file-system    LFS             # log-structured file system
-file-system    MFS             # memory file system
 file-system    NFS             # Network File System client
-file-system    NTFS            # Windows/NT file system (experimental)
-file-system    CD9660          # ISO 9660 + Rock Ridge file system
-file-system    MSDOSFS         # MS-DOS file system
-file-system    FDESC           # /dev/fd
-file-system    KERNFS          # /kern
-file-system    NULLFS          # loopback file system
-file-system    OVERLAY         # overlay file system
-file-system    PROCFS          # /proc
-file-system    PUFFS           # Userspace file systems (e.g. ntfs-3g & sshfs)
-file-system    SMBFS           # experimental - SMB/CIFS file-system
-file-system    UMAPFS          # NULLFS + uid and gid remapping
-file-system    UNION           # union file system
-file-system    CODA            # Coda File System; also needs vcoda (below)
-file-system    PTYFS           # /dev/pts/N support
-file-system    TMPFS           # Efficient memory file-system
-#file-system   UDF             # experimental - OSTA UDF CD/DVD file-system
-#file-system   HFS             # experimental - Apple HFS+ (read-only)
+# File systems, built as module(7)s by default
+#file-system   EXT2FS          # second extended file system (linux)
+#file-system   LFS             # log-structured file system
+#file-system   MFS             # memory file system
+#file-system   NTFS            # Windows/NT file system (experimental)
+#file-system   CD9660          # ISO 9660 + Rock Ridge file system
+#file-system   MSDOSFS         # MS-DOS file system
+#file-system   FDESC           # /dev/fd
+#file-system   KERNFS          # /kern
+#file-system   NULLFS          # loopback file system
+#file-system   OVERLAY         # overlay file system
+#file-system   PROCFS          # /proc
+#file-system   PUFFS           # Userspace file systems (e.g. ntfs-3g & sshfs)
+#file-system   SMBFS           # experimental - CIFS; also needs nsmb (below)
+#file-system   UMAPFS          # NULLFS + uid and gid remapping
+#file-system   UNION           # union file system
+#file-system   CODA            # Coda File System; also needs vcoda (below)
+#file-system   PTYFS           # /dev/ptm support
+#file-system   TMPFS           # Efficient memory file-system
+#file-system   UDF             # experimental - OSTA UDF CD/DVD file-system
+#file-system   HFS             # experimental - Apple HFS+ (read-only)
+#file-system   NILFS           # experimental - NTT's NiLFS(2)
 
 # File system options
 options        QUOTA           # UFS quotas
@@ -1134,9 +1142,9 @@ pseudo-device     bridge                  # simple 
inter-ne
 pseudo-device  agr                     # IEEE 802.3ad link aggregation
 
 #
-# accept filters
-pseudo-device   accf_data              # "dataready" accept filter
-pseudo-device   accf_http              # "httpready" accept filter
+# accept filters, built as module(7)s by default
+#pseudo-device   accf_data             # "dataready" accept filter
+#pseudo-device   accf_http             # "httpready" accept filter
 
 # miscellaneous pseudo-devices
 pseudo-device  pty                     # pseudo-terminals
@@ -1153,7 +1161,7 @@ pseudo-device     bcsp                    # BlueCore 
Serial P
 pseudo-device  btuart                  # Bluetooth HCI UART (H4)
 
 # a pseudo device needed for Coda      # also needs CODA (above)
-pseudo-device  vcoda           4       # coda minicache <-> venus comm.
+#pseudo-device vcoda           4       # coda minicache <-> venus comm.
 
 # a pseudo device needed for SMBFS
 pseudo-device  nsmb                    # experimental - SMB requester


Home | Main Index | Thread Index | Old Index