Re: EIDE Problems - fsbn read error

2000-08-05 Thread Soren Schmidt

It seems Lew payne wrote:
 
 One of our new FreeBSD 3.5-REL systems is periodically locking up,
 due to an apparent disk error.  These are brand-new IBM 7200 RPM
 60 GB ATA/66 EIDE drives, in a ccd configuration as follows:
 
 Filesystem  1K-blocks UsedAvail Capacity  Mounted on
 /dev/da0s1a 79359203575265428%/
 /dev/da0s1f   8025325  1023010  636028914%/usr
 /dev/da0s1e119055 3401   106130 3%/var
 procfs  440   100%/proc
 /dev/ccd0c  239854317 127105965 9356000758%/spool
 
 cat /etc/ccd.conf
 # ccd ileave flags component devices
 ccd0  128none  /dev/wd0s1e /dev/wd2s1e /dev/wd1s1e /dev/wd3s1e
 
 and the error message (which repeats infinitely) is:
 
 Jul 31 01:02:06 news /kernel: wd0s1e: soft error reading fsbn 81057521
   of 81057520-81057551 (wd0s1 bn 81057521; cn 64331 tn 7 sn 20)
   (status 58rdy,seekdone,drq error 1no_dam)
 Jul 31 01:02:16 news /kernel: wd0s1e: soft error reading fsbn 81057521
   of 81057520-81057551 (wd0s1 bn 81057521; cn 64331 tn 7 sn 20)
   (status 58rdy,seekdone,drq error 1no_dam)
 
 The system just gets stuck doing this seek over and over again, at
 which point it becomes impossible to log in via the console, or do
 anything else (I/O bound).
 
 Is there a trick to getting soft-recovery working with EIDE devices?
 Better yet, how can I get rid of this problem without getting rid of
 the new drives?  It seems that it sits there trying to recover from
 this "soft error" but never does, and never maps it in the replacement
 block table as "bad".
 
 Is there a way to "reformat" the drive (low level, perhaps) so that
 it maps out the appropriate replacement table for the darn fsbn? Or
 how about a way of adding bad blocks to it?
 
 Any help in solving this would be appreciated !!

Upgrade to 4.0 or better yet 4.1, the new ATA drivers there has better
error recovery...

Oh, and there is no idea in reformatting a modern ATA/IDE drive, if 
they have bad sectors they have used up all their spares, and should
be retired asap...

-Søren


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Does sysinstall ever listen to a config file or command line ? - Not mine

2000-08-05 Thread Johan Kruger

Problem using sysinstall command line version ??

I am running the following BSD ver ( release i built , maybe something does not
work, although i doubt it , i am using it finely )
FreeBSD ockle.dev.nanoteq.co.za 5.0-2724-SNAP FreeBSD 5.0-2724-SNAP #5:
Thu Jul 27 14:47:59 SAST 2000
[EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386



Made a MFS Boot image for CD-Installation.
Crunched 72 Megs of utils into 1.67 Megs, ( thanx to crunch )
Anyhow, i mount the CD with live filesystem on /cdrom on MFS filesystem, and
now runned /stand/sysinstall ( obviously after a chroot to /cdrom )

Works perfectly in interactive mode. I am trying to use on command
line as follows:
try 1:
/stand/sysinstall disk=ad0 partition=all diskPartitionWrite

it doesn't work
so i tried 
try 2:
/stand/sysinstall disk=ad0 partition=all noConfirm=yes diskPartitionWrite

it doesn't work
so i tried 
try 3:
echo aw | /stand/sysinstall disk=ad0 partition=all diskPartitionWrite
it does a Select All and Write, BUT sometimes goes bonkers

try x:
still doesnt work, so compiled sysinstall with LOAD_CONFIG_FILE=/tmp/jjk.conf
mounted a stiffy ( ufs ) on /tmp with my jjk.conf on it.

sysinstall does not even try to load a file ??? My sysinstall manpage specked
that i should put LOAD_CONFIG_FILE=whatever into the Makefile . does not 
use it

Want to use the command line version of sysinstall to partition disks, but
can't get it to work.
Am i doing something Wrong ??


--
E-Mail: Johan Kruger [EMAIL PROTECTED]
Date: 05-Aug-00
Time: 13:46:57

This message was sent by XFMail
--


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



ether_ifattach() issue

2000-08-05 Thread Dennis


The change in 4.1 to ether_ifattach() needs a check to see if the device is
already attached.

calling ether_ifattch() with a device already attached will lock up the
system consistently.

Dennis


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



FreeBSD belly up with big config

2000-08-05 Thread Dennis

With 1800 interfaces in the system Freebsd seems to use about 50Mhz of cpu
when idle in "interrupts" even when there are no interrupts to process. on
a 500Mhz box it uses 10% of the cpu and it seems linear with different
speed processors.

the 1800 interfaces are 900 DLCIs on a T3 frame with 900 bridge groups
(rather common for a DSL delivered via Frame). This with just one
line...the same problem could occur with say 8 T1 lines with 100+ DLCIs on
each.

It seems that there is substantial overhead just scanning interfaces for
some routine maintenance...is there any hope of alleviating this deboggle?

Dennis


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: FreeBSD belly up with big config

2000-08-05 Thread Poul-Henning Kamp

In message [EMAIL PROTECTED], Dennis writes:
With 1800 interfaces in the system Freebsd seems to use about 50Mhz of cpu
when idle in "interrupts" even when there are no interrupts to process. on
a 500Mhz box it uses 10% of the cpu and it seems linear with different
speed processors.

the 1800 interfaces are 900 DLCIs on a T3 frame with 900 bridge groups
(rather common for a DSL delivered via Frame). This with just one
line...the same problem could occur with say 8 T1 lines with 100+ DLCIs on
each.

It seems that there is substantial overhead just scanning interfaces for
some routine maintenance...is there any hope of alleviating this deboggle?

Sure:  send us your patches!

--
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD coreteam member | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: How to make *real* random bits.

2000-08-05 Thread Alexander Langer

Thus spake Poul-Henning Kamp ([EMAIL PROTECTED]):

 between events. Because of this your T3 value can be considered the T1
 value for the next random bit you generate. 
 No it cannot.  If you did that then the probability would skew from
 bit to bit.  If the (t3-t2) was large bit N == 1 and the probability
 of bit N+1 == 0 is  .5 then.

Yes, but you can use the 3rd bit as bit 1 for the next step.
With 15 events, that gives 7 bits/second:

bit  1: 3 1 (is event 3 of the last bit)
bit  2: 2 1st
bit  3: 3 1
bit  4: 2 2nd
bit  5: 3 1
bit  6: 2 3rd
bit  7: 3 1
bit  8: 2 4th
bit  9: 3 1
bit 10: 2 5th
bit 11: 3 1
bit 12: 2 6th
bit 13: 3 1
bit 14: 2 7th
bit 15: 3 1 (is event 1 for the next bit)

Alex
-- 
cat: /home/alex/.sig: No such file or directory


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: US$100 prize for adding ESS Audiodrive support to pcm

2000-08-05 Thread Andrzej Bialecki

On Mon, 31 Jul 2000, Cameron Grant wrote:

  I have for a long time said to myself that I would take the documents
  available and
  hack together a pcm driver for the audio chip built into my Asus P5A
  machine,
  and never sat down and done it. So, rather than whine to myself about
  it, or whine
  about nobody else doing it, I'll put my money where my mouth is.
 
 interested persons will want to investigate sys/dev/sound/pci/solo.c (just
 committed) which is 98% there.  i'm stumped.

On a simmilar note: what about a driver for ESS Maestro 2E? I'm certainly
willing to pay twice as much ($200) for working sound in most of laptops
within my reach...

Andrzej Bialecki

//  [EMAIL PROTECTED] WebGiro AB, Sweden (http://www.webgiro.com)
// ---
// -- FreeBSD: The Power to Serve. http://www.freebsd.org 
// --- Small  Embedded FreeBSD: http://www.freebsd.org/~picobsd/ 




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: US$100 prize for adding ESS Audiodrive support to pcm

2000-08-05 Thread Alan Clegg

Out of the ether, Andrzej Bialecki spewed forth the following bitstream:

 On a simmilar note: what about a driver for ESS Maestro 2E? I'm certainly
 willing to pay twice as much ($200) for working sound in most of laptops
 within my reach...

Add $100 from me.  There is one that works for some folks out there
by [EMAIL PROTECTED], but it does not work for me.

AlanC


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Problem linking/integrating Socket stuff into my driver code

2000-08-05 Thread Ari, Ismail


Hi everyone,

I wrote pseudo-device driver for FreeBSD kernel. It safely comes up at boot
time. There is also a corresponding device node "/dev/mydevice" for my code,
so that whenever someone makes an: 

fd = open("/dev/mydevice", .. );
ioctl( fd, COMMAND );

the "mydevioctl()" function within my code will take care of the COMMAND
requested. 

* NOW , My problem is !! **

I tried to add some networking functionality to my driver. Although I
#include'd every required socket and net related header in my code
sys/socket.h, netdb.h,  netinet/in.h and etc. I get the errors
"Undefined reference to socket()" , same for connect(),  gethostbyname(),
accept() etc. In my previous life B.K. ( Before Kernel ) I used to link  to
socket related libraries ( -lsocket, -lnls ), but this is not a standalone
program and I  am not supposed to make explicit linking to any library. This
is KERNEL anyway, it has object code for almost every standard function you
may want to use (e.g.socket() ..) For example: kern/uipc_syscalls.o has the
socket() definition and uipc_syscalls.o is already in the list of object
files to be used in kernel make; all being compiled together.

After including the required header files and after ensuring with (  nm -s
uipc_syscalls.o ) that socket() is defined there, how do I get my code to
see these functions.

Some Bullets that might help
--

* FUNNY:: I wrote a small client/server chat program (for testing) ;compiled
both client and server code using "cc -o server server.c", "cc -o client
client.c" and DID NOT LINK any special library... IT WORKED ??!! I put
server code on another PC over network and they get to communicate with the
client. "cc" somehow knows where to link I guess (Is there a list  of the
libraries that cc links somewhere? or does it just look under  /usr/lib)..
And the second funny thing is that, when I do a symbol lookup " nm -s
client" on the client program the functions that I use , socket(),
gethostbyname() still look U ( Unresolved, Undefined ?)  

* Kernel Makefile first compile everything with "cc -c " , i.e. "don't link
at this time" option * After everything is compiled, kernel links them
together using linker ld 
* cc without any option does all the compiling and linking job, but I am
bound to use the KERNEL's rules "cc -c" first then link everything together.
* Other drivers in the kernel ( e.g. aha SCSI driver) don't have any compile
and linking problem and usually none of them need a special treatment for
linking. Check /usr/src/sys/compile/GENERIC - Makefile . NORMAL_C type of
compilation is enough for them.

Please Respond to: [EMAIL PROTECTED] AND/OR [EMAIL PROTECTED]

Best Regards,

Ismail Ari
HP Labs


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Intel 840 Chipset Discontinue

2000-08-05 Thread Lanny Baron

Hi,
I was just going through some of the mail on this list and came across
this one. I started FreeBSDSystems.com back in '99. I use only Intel
chassis and server-boards. I have recently sent one down to the U.S. (we
are in Canada..physically). There has been no problems and the machine is
dual PIII Xeon but on a Cabrillo chassis. That babe is a 7U. There is a 1U
and 2U.

If we can be of any help, just call us. http://freedomtc.com

--Lanny

On Wed, 2 Aug 2000, Mike Smith wrote:

  Do you know of anybody building 1U or 2U rackmount systems for a
  reasonable price ($2000/node or less) around these motherboards?  It
  looks like most integrators are using the L44GX  its broken 32-bit
  66MHz slot which runs at the wrong voltage (Myrinet claims they're
  violating the PCI spec).
 
 BSDi/Telenet will have 1U and 2U systems based on either the Asus or Tyan 
 dual socket-370 boards very shortly.  If you want to talk more about 
 these, let me know.
 
 -- 
 ... every activity meets with opposition, everyone who acts has his
 rivals and unfortunately opponents also.  But not because people want
 to be opponents, rather because the tasks and relationships force
 people to take different points of view.  [Dr. Fritz Todt]
 
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-hardware" in the body of the message
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: FreeBSD belly up with big config

2000-08-05 Thread Doug White

On Sat, 5 Aug 2000, Dennis wrote:

 With 1800 interfaces in the system Freebsd seems to use about 50Mhz of cpu
 when idle in "interrupts" even when there are no interrupts to process. on
 a 500Mhz box it uses 10% of the cpu and it seems linear with different
 speed processors.

I would suspect the interface list is stored as a linear list and doesn't
scale up to that level.

 It seems that there is substantial overhead just scanning interfaces for
 some routine maintenance...is there any hope of alleviating this deboggle?

Send patches to rewrite the interface list to use some other data
structure.

Doug White|  FreeBSD: The Power to Serve
[EMAIL PROTECTED] |  www.FreeBSD.org



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Drivers for Dollars (was Re: US$100 prize for adding ESS Audiodrive support to pcm)

2000-08-05 Thread Nick Sayer

Alan Clegg wrote:
 
 Out of the ether, Andrzej Bialecki spewed forth the following bitstream:
 
  On a simmilar note: what about a driver for ESS Maestro 2E? I'm certainly
  willing to pay twice as much ($200) for working sound in most of laptops
  within my reach...
 
 Add $100 from me.  There is one that works for some folks out there
 by [EMAIL PROTECTED], but it does not work for me.
 

Since my experience with the Solo driver (it's still not quite done)
bounty,
I will put up a page where folks offering "driver bounties" can make
their offers
known. Such sites exist for software in general, but I will make one
just for
FreeBSD drivers.

More later.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Drivers for Dollars (was Re: US$100 prize for adding ESS Audiodrive support to pcm)

2000-08-05 Thread Kelly Yancey

On Sat, 5 Aug 2000, Nick Sayer wrote:

 Alan Clegg wrote:
  
  Out of the ether, Andrzej Bialecki spewed forth the following bitstream:
  
   On a simmilar note: what about a driver for ESS Maestro 2E? I'm certainly
   willing to pay twice as much ($200) for working sound in most of laptops
   within my reach...
  
  Add $100 from me.  There is one that works for some folks out there
  by [EMAIL PROTECTED], but it does not work for me.
  
 
 Since my experience with the Solo driver (it's still not quite done)
 bounty,
 I will put up a page where folks offering "driver bounties" can make
 their offers
 known. Such sites exist for software in general, but I will make one
 just for
 FreeBSD drivers.
 
 More later.
 

  Ideally, I should add this to the FreeBSD driver database. Now if I can only
find where I stashed that extra time... :)

  Kelly

--
Kelly Yancey  -  [EMAIL PROTECTED]  -  Belmont, CA
System Administrator, eGroups.com  http://www.egroups.com/
Maintainer, BSD Driver Database   http://www.posi.net/freebsd/drivers/
Coordinator, Team FreeBSDhttp://www.posi.net/freebsd/Team-FreeBSD/



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: FreeBSD belly up with big config

2000-08-05 Thread Mike Silbersack


On Sat, 5 Aug 2000, Doug White wrote:

 Send patches to rewrite the interface list to use some other data
 structure.
 
 Doug White|  FreeBSD: The Power to Serve
 [EMAIL PROTECTED] |  www.FreeBSD.org

If my memory serves me right, someone who was working with doing squid
benchmarks had such patches.  Searching through the archive for -net for
squid and/or freebsd 3.2 should find the message - he linked to a page
with performance tuning tips.  I'm not sure if there was much merit to
most of the suggestions, but one of them was definitely related to the
number of interfaces.

Mike "Silby" Silbersack



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message