home *** CD-ROM | disk | FTP | other *** search
/ AMIGA PD 1 / AMIGA-PD-1.iso / NetBSD / docs-netbsd / 386BSD-FAQ / BSD-FAQ-part07 < prev    next >
Text File  |  1994-11-27  |  25KB  |  567 lines

  1. Archive-name: 386bsd-faq/part7
  2.  
  3. Section 6.    (Interaction with MS-DOS)
  4.  
  5. 6.0    Working with DOS and BNR/2 related software.
  6.  
  7.     This section is designed to cover some of the more common 
  8.     problems that DOS will have when interacting with BNR/2.
  9.     There are other sections of the FAQ that deal with 
  10.     indirectly with this .  Try looking in sections 0, 1, and 2
  11.     to see if something in there (particularly when talking 
  12.     about DOS and *BSD coexisting on a single drive).
  13.  
  14.     
  15. 6.1    Formatting a floppy
  16.  
  17.     There is a rumor that floppy formatting either is possible or was
  18.     possible at one time.  If you see any software or FTP sites with 
  19.     anything about this, please contact burgess@hrd769.brooks.af.mil
  20.     and I will make sure it gets updated in here.
  21.  
  22.     There was a set of patches that were developed to allow floppy
  23.     formatting.  They are not currently included in any of the *BSD
  24.     systems.
  25.  
  26.     I have actually applied the patches for floppy formatting here on 
  27.     NetBSD, and they seem to work just fine.  The fdformat program 
  28.     could use some work, but seems to work OK.  According to the author,
  29.     similar patches are available for NetBSD and the original 386BSD.
  30.     Presumably, FreeBSD patches can't be too far behind.  The package 
  31.     that I used here was posted in comp.os.386bsd.* somewhere.  I think
  32.     that it is available by anonymous FTP from hrd769.brooks.af.mil.  
  33.     If not, E-Mail me at burgess@hrd769.brooks.af.mil and I will mail
  34.     you a tar file with the stuff that i have available.
  35.     
  36.  
  37. 6.2    Sharing the Disk with MS-DOS
  38.  
  39.     There are a myriad of questions about how to share a disk between
  40.     386bsd and MS-DOS.  They all boils down to one of the <n> following
  41.     questions:
  42.  
  43.     1)  How can I partition my drive for both MS-DOS and 386bsd?
  44.     2)  I can install using the whole disk, but I can't install when 
  45.     I try to share the drive between 386bsd and MS-DOS.  Why?
  46.     3)  I can use either MS-DOS or 386BSD on my hard drive,
  47.     but shutdown -todos doesn't seem to work.
  48.  
  49.  
  50. 6.2.1    How can I partition my drive to support both MS-DOS and *bsd?
  51.  
  52.     NOTE:  Before attempting to install *bsd on a computer with an
  53.     active DOS partition, ALWAYS back up your hard drive.  No one on 
  54.     the net, no matter how talented, can help you recover a hosed 
  55.     MS-DOS file system.  If you lose all of your data, it is YOUR
  56.     fault.
  57.  
  58.     During the install phase, you need to have un-allocated space left
  59.     on your disk drive.  This allows the install program to correctly
  60.     install the *bsd partition in the partition table and DOS to
  61.     peacefully co-exist with *bsd.
  62.  
  63.     If you do not have any space available on your hard drive, you will
  64.     not be able to install both.  Re-fdisk your hard drive and make
  65.     sure you have left un-allocated space in the partition table.  
  66.     This WILL wipe out your DOS partition - Permanently.
  67.  
  68.     Even though the partition table procedure above may have worked, 
  69.     there are still no guarantees that your system will boot after
  70.     the install.  This problem most often manifests itself as one of
  71.     the endless reboot problems.  You would normally be able to boot
  72.     DOS from the hard disk, but not *bsd (once that partition is
  73.     marked as active).
  74.  
  75.     Once the partition table has been correctly defined with both
  76.     DOS and *bsd, there can still be problem.  One of the most
  77.     common is that the disk drive works in some sort of translation
  78.     mode.  This is particularly common with drives that physically have
  79.     more than 1024 cylinders.  DOS cannot access a drive with more than
  80.     1024 cylinders.  Translation mode will have to be turned off, usually
  81.     by redefining your hard drive in SETUP as one of the user definable
  82.     types.  This change will normally trash your hard drive, or at least
  83.     render your DOS partition unreadable.
  84.  
  85.     The solution to this problem is to install *bsd at the end of the
  86.     hard drive.  While DOS cannot use cylinders above 1024, *bsd has
  87.     no such limitations, once it has booted.  During the boot-up phase,
  88.     some of the newer boot blocks will refer to the BIOS for some
  89.     services.  Specifically, the disk is checked for a bad sector map
  90.     on the last track.  Since the BIOS cannot deal with cylinders
  91.     higher than 1024, your bad sector map will be incorrectly
  92.     identified as 1023 if the number of cylinders is larger than that.
  93.     This problem is being worked on, and I hope to change this section
  94.     with better news later.
  95.  
  96.     NOTE:  The only people that this problem will effect are those 
  97.     MFM and ESDI users that have drives with more than 1023 tracks.  
  98.     While drives of this type are not the overwhelming majority, 
  99.     neither are they an anomoly.  People are working on it.
  100.  
  101.     As an example, if your hard disk physically has 8 heads, 16 sectors 
  102.     per track, and 2000 cylinders (128M); you MUST use some sort of disk
  103.     translation in order to use the entire drive.  An obvious geometry
  104.     for this drive (for DOS) would be 16 heads, 16 sectors, and 1000
  105.     cylinders.  Unfortunately, *bsd operates using the disk drives
  106.     native geometry as reported during the probe phase of boot up.  This
  107.     will probably be 8/16/2000, and will NOT agree with your translated
  108.     disk geometry.  This causes an endless reboot cycle.  If you change
  109.     the geometry so that the drive agrees with the disklabel, your DOS
  110.     partition is toast.
  111.  
  112.     The best way to operate in this case would be to (for example)
  113.     split the disk in half.  That leaves 64M for DOS, using a 
  114.     geometry of 8 heads, 16 sectors per track, and the first 1000 
  115.     cylinders for DOS.  The second 1000 cylinders could then safely
  116.     be used for *bsd.  The DOS partition table may even be capable of
  117.     showing this partition as it actually exists.
  118.  
  119.     Luke Mewburn <zak@rmit.edu.au> has provided the following tutorial on 
  120.     using the pfdisk program and making your *bsd/NetBSD partitions
  121.     peacefully coexist with DOS.  While this is kind of a 'cookbook' 
  122.     approach, please keep in mind that this is probably easily 
  123.     transferrable to all BNR derived Unices.
  124.  
  125.  
  126.             Getting NetBSD 0.8 to coexist with DOS.
  127.  
  128.             Written 930510 by Luke Mewburn <zak@rmit.edu.au>
  129.  
  130.  
  131.     NetBSD can be made to happily co-exist with DOS if its install
  132.     program knows how to modify the partition table. This assumes
  133.     that you have access to a program which enables you to edit the
  134.     partition table of your hard drive (such as Norton Utilities, or
  135.     pfdisk).
  136.  
  137.     When you partition your hard drive, you will probably have a large
  138.     partition in which you wish to place NetBSD. This has to have the
  139.     partition ID of 165d (or 0xA5). To change this, you can use the
  140.     'Partition Edit' section of Norton's, or you can use pfdisk.
  141.     This document will go into more detail on how to use pfdisk, as it's
  142.     freely available.
  143.  
  144.     I'll use my personal drive specifications in the following example.
  145.     It is a 1001 cylinder, 15 trk/cyl, 17 sec/trk, 125MB drive. I
  146.     low-level formatted it, and used fdisk on a MS-DOS 5.0 boot disk to
  147.     create a primary partition '1' of 32MB, and an extended partition '2'
  148.     of 93MB.  I formatted the drive with format c: /s to give myself a
  149.     bootstrap for DOS (much faster than floppies :), but this isn't that
  150.     necessary. Now, the next stage...
  151.  
  152.     Running pfdisk 0 (to access my first (and only :) HD) came up with
  153.     something like:
  154.     
  155.     For help, enter: '?'
  156.     pfdisk>
  157.  
  158.     At the prompt, enter 'l' to list partitions, giving (in my case),
  159.     something like:
  160.  
  161.     # Partition table on device: 0
  162.     geometry 1000 15 17 (cyls heads sectors)
  163.     #  ID  First(cyl)  Last(cyl)  Name  # start, length (sectors)
  164.     1   4      0        256       DOS16 # 17, 65518
  165.     2   0    257        999       unkno # 65535, 189465
  166.     3   0      0          0       empty # 0, 0
  167.     4   0      0          0       empty # 0, 0
  168.     active: 0 (none)
  169.  
  170.     (Note that there is 1 cylinder less - the last one is, I think,
  171.     for the IDE controller to use when auto-mapping dud sectors out.)
  172.  
  173.     Now, we want to change the type of #2 (the prospective NetBSD
  174.     partition) to 165. You can obtain a list of known IDs by selecting
  175.     'I'. Depending on the version of pfdisk you have, 165 may or may not
  176.     be known. This doesn't matter too much either way. To get the NetBSD
  177.     install program to use the 2nd partition, I would enter:
  178.  
  179.     pfdisk> 2 165 257 999
  180.  
  181.     Another 'l' to list partitions would show that the entry for
  182.     partition 2 will either look like one of the following (depending
  183.     on whether pfdisk knows about the 386bsd partition type or not):
  184.  
  185.     2 165    257        999       unkno # 65535, 189465
  186.     or
  187.     2 165    257        999       386BS # 65535, 189465
  188.  
  189.  
  190.     You could set the active partition with 'a 2' if you want NetBSD
  191.     to always boot, but I personally recommend that you obtain a copy
  192.     of OS-BS 1.35 or BOOTEASY to save you the hassle of running fdisk
  193.     or pfdisk every time you wish to swap system types.
  194.  
  195.     To complete everything off, do 'w' to write out the info (once
  196.     you're sure it's correct! :), and 'q' to quit the program.
  197.  
  198.  
  199.     Well, I hope that is useful to someone. Comments can be directed
  200.     to the author (Email: <zak@rmit.edu.au>).
  201.  
  202.  
  203. 6.2.2    I can install using the whole disk, but I can't install when 
  204.     I try to share the drive between 386bsd and MS-DOS.  Why?
  205.  
  206.     This is an extension of the question above.  The most common reason
  207.     for this is, once again, disk translation problems.  If the 
  208.     disklabel does not agree with the disk geometry, the install will
  209.     fail.  Other incarnations of this problem are that you can install
  210.     DOS, then 386bsd, and DOS will be hosed, or vice versa.
  211.  
  212.     There are more than a couple of people who will blithely suggest that
  213.     this is a good thing, and you should install 386bsd exclusively,
  214.     job not withstanding.
  215.  
  216.  
  217. 6.2.3    I can use either MS-DOS or 386BSD on my hard drive,
  218.     but shutdown -todos doesn't seem to work.
  219.  
  220.     There is a known bug in shutdown that prevents the -todos option 
  221.     from working as advertised on all but the smallest DOS partitions.
  222.     Many people have reported some success while using a very small
  223.     (less than 32M) DOS partition as the first partition.
  224.  
  225.     There is a utility available for 386bsd which operates very much
  226.     like the MS-DOS fdisk partitioning program.  You can use this program
  227.     to mark the DOS partition active from 386bsd.  A similar procedure
  228.     is used (fdisk in DOS) to mark the 386bsd partition as the active
  229.     boot partition.  Boot managers are also an excellent investment for
  230.     those individuals that need to boot both DOS and 386BSD.
  231.  
  232.  
  233. 6.2.4    Is there any hope of ever running MS-DOS applications under any of
  234.     the free BSD systems?
  235.  
  236.     There is currently a project in development to port the Windows 
  237.     program exvironment to Linux and the *BSD systems.  Here is an
  238.     excerpt from the original message announcing the project:
  239.  
  240.     As many of you already know, we are in the process of creating a
  241.     Windows emulator.  This emulator is similar to Sun's Wabi product, 
  242.     but is being developed completely independent of them.  Many of 
  243.     you are anxious to hear the latest status of the project.  I have 
  244.     created a mailing list for those of you.  To join the list, simply 
  245.     send mail to:
  246.  
  247.     wine-project-info@amscons.com
  248.  
  249.     If your mailing address is not easy to deduce from the mail 
  250.     headers, then place the following line in the body of the message 
  251.     that you send.
  252.  
  253.     Reply-To: youraddress@yourmachine
  254.  
  255.     where youraddress@yourmachine should be replaced by your actual 
  256.     mailing address.
  257.  
  258.  
  259. 6.3    Accessing the MS-DOS filesystem 
  260.  
  261.     One of the most common MS-DOS related questions (with the possible
  262.     exception of 6.2 above) is how to access the DOS disk partitions
  263.     from 386bsd.  One way is to modify mtools so that it recognizes your
  264.     DOS partition.  This solution is provided by Jim Paradis 
  265.     (paradis@sousa.ltn.dec.com):
  266.  
  267.     --------------------------------------------------------------------
  268.     To build a /usr/othersrc/public/mtools.2.0.5/devices.c file that 
  269.     lets you access the DOS partition, you need to know the byte offset 
  270.     of the DOS partition from the start of the hard disk.  You would then 
  271.     add an entry to the devices[] array as follows:
  272.  
  273.     {'C', "/dev/wd0d", <byte-offset>L, 16, 0, (int (*) ()) 0, 0, 0, 0},
  274.  
  275.     So, f'rinstance, if your DOS partition starts at the beginning of
  276.     the disk, you'd have:
  277.  
  278.     {'C', "/dev/wd0d", 0L, 16, 0, (int (*) ()) 0, 0, 0, 0},
  279.  
  280.     On the other hand, if your DOS partition starts 32MB into the disk,
  281.     you'd say something like:
  282.  
  283.     {'C', "/dev/wd0d", (32768L * 1024L), 16, 0, (int (*) ()) 0, 0, 0, 0},
  284.  
  285.     --------------------------------------------------------------------
  286.     Of course, this is both the hard and VERY non-portable way of
  287.     solving this problem.  An easier way would be to add PCFS to your 
  288.     386bsd/NetBSD system.  Both the PC File system and PC Network File 
  289.     System (PC-NFS) code has been ported to 386bsd/NetBSD/FreeBSD.  These 
  290.     are available from several sources, including the patchkit. 
  291.  
  292.     The instructions for using PCFS with 386BSD are provided by Scott 
  293.     Miles <gt1679c@prism.gatech.EDU>. 
  294.  
  295.         What would probably be easier would be to add a partition to 
  296.         the disklabel for your DOS drive and then just mount it with 
  297.         PCFS.  I don't know if it's in the FAQ now, I haven't read it 
  298.         for a while, but this is what I did:
  299.  
  300.         1) run 'fdisk' and write down the DOS partition info for 
  301.         the start and size that it gives you.
  302.  
  303.         2) disklabel -e -r /dev/<raw device>
  304.               - Add 1 to the '# partitions:', and then add another line 
  305.               for the DOS partition .  Mine went in after e: as 
  306.  
  307.        f:   130977     63   unused      0     0     # (Cyl.    0*- 129*)
  308.  
  309.     (Ed.Note:  The unused should be something else, although I really
  310.         couldn't tell you what. MSDOS is a recognized partition 
  311.         type name, maybe that should be used.  Also, make sure that
  312.         your c: and d: partitions do not overlap this area.  h: might 
  313.         be a better partition letter to use; that way the MSDOS 
  314.         partition is graphically separate from the rest of the BSD
  315.         partitions.  DO NOT USE a:, b:, c:, or d: for your DOS 
  316.         partition.  These are RESERVED for your BSD system and any 
  317.         attempt to use these for anything but what BSD uses them for 
  318.         will result in a completely hosed, totally dead, absolutely 
  319.         screwed up file system.  You have been warned! )
  320.  
  321.         3) Add a line to /etc/fstab if you want it mounted 
  322.         automatically.
  323.              Mine is:
  324.              /dev/wd0f       /dos            pcfs    rw              1       2
  325.  
  326.            Otherwise, just mount -t pcfs /dev/<part> /<dir>
  327.  
  328.     Mount has other options that may improve performance or increase
  329.     security for your system.  See 'man mount' for more information 
  330.     about mounting your system read-only and other advanced features.
  331.  
  332.     In addition to this, Jordan Hubbard has provided us with the
  333.     following description for mounting the DOS partition specifically
  334.     from FreeBSD:
  335.  
  336.         How to mount your DOS partition from FreeBSD
  337.  
  338.     1. First, be root.  The following won't work as an ordinary user.
  339.  
  340.     2. Second, use 'fdisk' to see where your DOS partition starts.  
  341.     It will be labeled as type DOS.  On my system, 'fdisk /dev/sd0d' 
  342.     produces the following:
  343.  
  344.         ... (extraneous output, not of interest) ...
  345.     The data for partition 0 is:
  346.     sysid 6,(Primary 'big' DOS (> 32MB))
  347.         start 32, size 306400 (149 Meg), flag 0
  348.             beg: cyl 0/ sector 1/ head 1;
  349.             end: cyl 149/ sector 32/ head 39
  350.  
  351.         This shows me that my DOS partition starts at sector 32, and 
  352.     is 306400 (512 byte) sectors long.
  353.  
  354.     NOTE:  If you're trying to mount a DOS `EXTENDED' partition, then 
  355.     you need to add `32' to this start address you got from fdisk in 
  356.     subsequent calculations, I.E. in the above example (assuming it 
  357.     was an EXTENDED partition rather than the Primary), you'd use 
  358.     `start 64, size 306400'.
  359.  
  360.     [Ed.Note.  This example assumes a SCSI disk.  For disks with a 
  361.     number of sectors per track which is different than 32, you will
  362.     probably see the 32s above replaced with your number of sectors
  363.     per track. ]
  364.  
  365.     3. Next, using this information, you craft a new disk entry in your
  366.        /etc/disktab file that assigns one of your unused "UNIX" 
  367.        partitions to this DOS region.  Again, using my system as a 
  368.        default, you see I've created:
  369.  
  370.     disk0|DEC 5501:\
  371.         :ty=winchester:dt=SCSI:se#512:nt#8:ns#256:nc#1001:rm#3600:\
  372.         :pa#956416:oa#307200:ba#8192:fa#1024:ta=4.2BSD:\
  373.         :pb#131072:ob#1263616:tb=swap:\
  374.         :pc#1087488:oc#307200:tc=UNUSED:\
  375.         :pe#306400:oe#32:te=MSDOS:
  376.  
  377.        As you can see, partition 'e' now points to the DOS partition as
  378.        pointed out by fdisk.
  379.  
  380.        [Ed.Note again.  Remember what I said about the 32 above...]
  381.        
  382.  
  383.     4. Now we have to actually stick the label on the disk, which is done
  384.        with disklabel.  Using my example, this would be:
  385.  
  386.         disklabel -r -w sd0 disk0 SCSI /usr/mdec/sdboot /usr/mdec/bootsd
  387.  
  388.     5. Reboot your system to see the new disk label.
  389.  
  390.     6. Mount the DOS partition.  I do:
  391.  
  392.         mount -t pcfs /dev/sd0e /dos_c
  393.  
  394.        Where /dos_c is just a convenient directory to mount it.
  395.  
  396.     7. You're set!
  397.  
  398.     With the exception that the '-t' option is msdos in NetBSD, these 
  399.     instructions seem to work with the same facility for NetBSD.  I
  400.     also received a note a couple of weeks ago (that I promptly deleted
  401.     because I new that I would remember what it said) that DOS extended
  402.     partitions are readable if you skip the first 'n' blocks in your 
  403.     computations (where 'n' is your number of sectors per track).  This 
  404.     way, you skip over the 'new' part of the DOS file system.  That means 
  405.     that insted of the oe:32 above, you would need an oe:48 instead.  
  406.  
  407.     Also remember that the compressed file system in DOS 6 will probably
  408.     be completely greek to your NetBSD/FreeBSD system.  I seriuosly 
  409.     doubt that you will be able to read the compressed DOS file system
  410.     anytime in the forseeable future.
  411.      
  412.  
  413. 6.4    NFS/PC-NFS support
  414.  
  415.     The problems normally associated with PC-NFS are also associated 
  416.     with NFS in general.  
  417.  
  418.  
  419. 6.4.1    Can I use 8K packets for NFS?  When I try, I have all kinds of 
  420.     problems.
  421.  
  422.     In addition to the NE2000 card, this problem can also manifest 
  423.     itself on other ISA networks cards that have a limited amount of
  424.     memory.  Ken Raeburn (raeburn@cambridge.cygnus.com) has identified 
  425.     a common problem with the NE2000 card and provided us with a work
  426.     around:
  427.  
  428.     --------------------------------------------------------------------
  429.     I reported previously that I was seeing problems reading files over
  430.     NFS using the ne2000 driver; timeouts would eventually be reported, no
  431.     data would be read.  Listing files and directories (small ones
  432.     anyway) were not a problem.
  433.  
  434.     After playing with etherfind and kernel printfs, I've come to this
  435.     conclusion: Fragmented 8K UDP packets from the NFS server are not
  436.     reaching the UDP layer in 386bsd.  The Sun is sending them (according
  437.     to another Sun spying on the network), but the UDP input routine is
  438.     never called.  I don't know if the bug here is on the 386bsd or Sun
  439.     side, and won't have time to look into it in the next couple of days.
  440.  
  441.     In the meantime, mounting NFS file systems with "rsize=1024" does get
  442.     rid of this problem.
  443.  
  444.     Ken
  445.     --------------------------------------------------------------------
  446.  
  447.     As a matter of policy, specifying "rsize=1024,wsize=1024" works very
  448.     well also, and makes the transfers seem to run faster.  This is
  449.     probably because there are fewer collisions.  The disadvantage of 
  450.     this method comes from the kernel 'sync'ing after all NFS writes.  
  451.     This can slow NFS accesses considerably.  As with most 
  452.     generalizations, this one too can do nearly as much harm as good.  
  453.     Charles Hannum reports that he has no trouble using the default 8K 
  454.     packet size.  If you have trouble, reduce your default packet size
  455.     until the problem goes away.
  456.  
  457.     WIth the newer drivers (especially the ed driver) most of these 
  458.     problems are solved automagically.  If you are still using the
  459.     original 386bsd 0.1 release, you REALLY need to upgrade.
  460.     
  461.  
  462. 6.4.2    How do I get around the NFS "Permission denied" error?
  463.  
  464.     The problem is not the configuration of the server (unless there is
  465.     no real requirement to run it in "secure" mode, and you happen to
  466.     be running it that way anyway).  The problem is the fact that,
  467.     even though mount request are sent on a privileged port, NFS
  468.     connections are not.  This is part of secure NFS, and is not
  469.     supported in 386BSD.
  470.     
  471.  
  472. 6.4.3    What does the message "BAD MNT RPC: RPC Authentication error; 
  473.     why = Invalid client credential" mean when I try to mount something
  474.     from another machine?
  475.  
  476.     Hellmuth Michaelis (hm@hcshh.hcs.de) offers the solution to this
  477.     relatively common problem:
  478.  
  479.     You have to make sure that the user "root" is not present in more
  480.     than 8 entries in the "/etc/group" - file on the 386BSD machine.
  481.     Simply remove some entries and the NFS mounts will succeed.
  482.  
  483.     The problem is also explained in the Clarkson Driver documentation.
  484.     On 386bsd, the maximum number of groups that can be associated with
  485.     a particular user is specified in the source (in a #DEFINE).  In 
  486.     386bsd, this number is set to 8.  So, you actually have two routes
  487.     you can take to correct this problem.  The first is outlined by
  488.     Hellmuth, above, and the second is to edit and recompile the NSF
  489.     software to allow more groups.
  490.  
  491.  
  492. 6.4.4    What does the message "Bad MNT RPC: RPC: Authentication error; 
  493.     why = Client credential too weak" mean when I try to mount something
  494.     from another machine?
  495.  
  496.     This problem is a standard NFS problem; it simply means that your 
  497.     user number is not one of the ones that can mount this NFS.  
  498.     Normally, you will get this message when you are trying to mount 
  499.     a filesystem from a machine that allows 'root' to mount an NFS,
  500.     but limits other users.
  501.  
  502.  
  503. 6.4.5    I get a lot of 'ring buffer overflow' messages using NFS and the
  504.     ed0 driver.  Is there a problem?
  505.  
  506.     David Greenman (davidg@implode.rain.com), the original author of 
  507.     the ed0 driver, provides us with some insight into the inner 
  508.     workings of the ed0 driver.
  509.  
  510.        It always surpises me that people don't just ask the original 
  511.     author these questions. :-) Anyway, the reason these are happening 
  512.     is that the access to the 8bit boards shared memory simply isn't 
  513.     fast enough to deal with full wire speeds...but the driver tries 
  514.     hard...so even though packets get dropped, your performance only 
  515.     drops to about what the ethernet board is capable of (should be 
  516.     in the 400-600k range with an 8bit card). NFS is especially bad 
  517.     because the UDP window is quite large (40k last time I looked), 
  518.     so the overflow condition can happen easily. I've explained this
  519.     for the most part in the release notes for the driver, but these 
  520.     didn't make it into either the FreeBSD or NetBSD releases (we 
  521.     couldn't find an appropriate place to put them).
  522.  
  523.     >From the release notes:
  524.  
  525.     receive
  526.     -------
  527.        The 8390 implements a shared memory ring-buffer to store 
  528.     incoming packets.  The 8bit boards (3c503, and 8003) usually have 
  529.     only 8k bytes of shared memory.  This is only enough room for about 
  530.     4 full size (1500 byte) packets. This can sometimes be a problem, 
  531.     especially on the original WD8003E and 3c503.  This is because these 
  532.     boards' shared memory access speed is also quite slow compared to 
  533.     newer boards - typically only about 1MB/second. The additional 
  534.     overhead of this slow memory access, and the fact that there is 
  535.     only room for 4 full-sized packets means that the ring-buffer 
  536.     will occassionally overflow.  When this happens, the board must 
  537.     be reset to avoid a lockup problem in early revision 8390's.  
  538.     Resetting the board will cause all of the data in the ring-buffer 
  539.     to be lost - requiring it to be re-transmitted/received...slowing 
  540.     things even further.  Because of these problems, maximum throughput 
  541.     on boards of this type is only about 400-600k per second. The 16bit 
  542.     boards (8013 series), however, have 16k of memory as well as much 
  543.     faster memory access speed. Typical memory access speed on these 
  544.     boards is about 4MB/second. These boards generally have no problems 
  545.     keeping up with full ethernet speed. The only problem I've seen 
  546.     with these boards is related to the (slow) performance of 386BSD's 
  547.     malloc code when additional mbufs must be added to the pool. This 
  548.     can sometimes increase the total time to remove a packet enough 
  549.     for a ring-buffer overflow to occur.  
  550.  
  551.  
  552. 6.4.6    Is there any PC software that will allow me to use my enormous PC
  553.     with all of the unsupported hardware as a PC-NFS server?
  554.  
  555.     Yes.  It is called SOSS, and is available from MANY FTP sources.
  556.     You will need the aforementioned Clarkson Packet Drivers for it
  557.     to work, but that should cause too many problems for most people.
  558.  
  559. -- 
  560. ------
  561. TSgt Dave Burgess               | Dave Burgess
  562. NCOIC, USSTRATCOM/J6444         | *BSD FAQ Maintainer
  563. Offutt AFB, NE                  | Burgess@hrd769.brooks.af.mil
  564.  
  565.  
  566.  
  567.