Re: System crashes under heavy disk i/o

2009-12-19 Thread Mel Flynn
On Thursday 17 December 2009 12:57:30 Erik Norgaard wrote:
 Mel Flynn wrote:
  Turn down operating mode via atacontrol. If using dump(8) use the cache
  feature and/or do the backup from live disk, so no other services are
  running and disk isn't accessed other then by dump.
 
 Thanks, is there a way to set UDMA mode at boot?

Roll your own rc(8). I know not of a loader tunable or device.hints setting, 
but I'm happily corrected on that.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


System crashes under heavy disk i/o

2009-12-17 Thread Erik Norgaard

Hi:

I have had this problem for a while, both on 7.x and now with 8.0:

I have a:

FreeBSD 8.0-RELEASE-p1 #0: Fri Dec 11 11:53:19 CET 2009
norga...@localhost:/usr/local/obj/usr/local/src/sys/GENERIC
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: VIA Nehemiah (800.04-MHz 686-class CPU)
  Origin = CentaurHauls  Id = 0x69a  Stepping = 10
real memory  = 268435456 (256 MB)
avail memory = 231383040 (220 MB)
atapci0: VIA 6420 SATA150 controller
ad6: 476940MB Seagate ST3500320NS SN04 at ata3-master SATA150

In normal operation I have no problem, but when performing intensive 
read or write for a prolonged time the system crashes. This happens also 
even if the partition is read-only. The crash occurs both with single 
large files (1GB) as well as many small files (10kb-10MB).


Currently, I'm backing up to an external drive over the network. I don't 
know if it's network related or disk related, but I guess it's disk 
related as I have no log of the failure. I don't know if it's the disk, 
contoller or something else. This is a headless machine, so I'm left 
guessing.


My two questions:

- is there any utility that I can use monitor the system to see what's 
going on, when or why?


- is there any way that I can slow down the disk i/o?

since the system works fine in normal operation, I hope that slowing 
down the disk operation would be a workaround, at least till I get my 
data onto the external drive.


Thanks, Erik

--
Erik Nørgaard
Ph: +34.666334818/+34.915211157  http://www.locolomo.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: System crashes under heavy disk i/o

2009-12-17 Thread Chuck Swiger
Hi--

On Dec 17, 2009, at 1:26 PM, Erik Norgaard wrote:
 FreeBSD 8.0-RELEASE-p1 #0: Fri Dec 11 11:53:19 CET 2009
norga...@localhost:/usr/local/obj/usr/local/src/sys/GENERIC
 Timecounter i8254 frequency 1193182 Hz quality 0
 CPU: VIA Nehemiah (800.04-MHz 686-class CPU)
  Origin = CentaurHauls  Id = 0x69a  Stepping = 10
 real memory  = 268435456 (256 MB)
 avail memory = 231383040 (220 MB)
 atapci0: VIA 6420 SATA150 controller
 ad6: 476940MB Seagate ST3500320NS SN04 at ata3-master SATA150
 
 In normal operation I have no problem, but when performing intensive read or 
 write for a prolonged time the system crashes. This happens also even if the 
 partition is read-only. The crash occurs both with single large files (1GB) 
 as well as many small files (10kb-10MB).

That's probably a sign of either thermal problems from inadequate cooling, or 
possibly PSU not giving stable voltage rails and sagging a bit too low; also, 
at least the older VIA C3 EPIA hardware had somewhat flaky PATA interfaces; if 
I tried to use both PATA channels I'd see lockups, unless I turned everything 
down to UDMA-33 speeds.  

Hopefully their SATA implementation has been improved since.  Consider looking 
at smartctl and see whether your drive temps are running too hot-- supposedly, 
drives are rated up to around 60C, but I don't like to see drives going above 
40C given any choice in the matter.

Regards,
-- 
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: System crashes under heavy disk i/o

2009-12-17 Thread Mel Flynn
On Thursday 17 December 2009 12:26:12 Erik Norgaard wrote:

 My two questions:
 
 - is there any utility that I can use monitor the system to see what's
 going on, when or why?

gstat(8)
Also, perhaps syslog to a different machine or nfs mount /var/log if you feel 
you're missing a log message due to this error.

 - is there any way that I can slow down the disk i/o?

Turn down operating mode via atacontrol. If using dump(8) use the cache 
feature and/or do the backup from live disk, so no other services are running 
and disk isn't accessed other then by dump.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: System crashes under heavy disk i/o

2009-12-17 Thread Erik Norgaard

Chuck Swiger wrote:

Hi--

On Dec 17, 2009, at 1:26 PM, Erik Norgaard wrote:

FreeBSD 8.0-RELEASE-p1 #0: Fri Dec 11 11:53:19 CET 2009
   norga...@localhost:/usr/local/obj/usr/local/src/sys/GENERIC
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: VIA Nehemiah (800.04-MHz 686-class CPU)
 Origin = CentaurHauls  Id = 0x69a  Stepping = 10
real memory  = 268435456 (256 MB)
avail memory = 231383040 (220 MB)
atapci0: VIA 6420 SATA150 controller
ad6: 476940MB Seagate ST3500320NS SN04 at ata3-master SATA150

In normal operation I have no problem, but when performing intensive read or 
write for a prolonged time the system crashes. This happens also even if the 
partition is read-only. The crash occurs both with single large files (1GB) as 
well as many small files (10kb-10MB).


That's probably a sign of either thermal problems from inadequate cooling, or possibly PSU not giving stable voltage rails and sagging a bit too low; also, at least the older VIA C3 EPIA hardware had somewhat flaky PATA interfaces; if I tried to use both PATA channels I'd see lockups, unless I turned everything down to UDMA-33 speeds.  


I doubt it's the cooling, processor is currently at 48C with passive 
cooling. But it could be PSU, I got the system for low power fanless 
silent operation, but after having disk crashes with laptop disks under 
heavy i/o, I got a server disk to sustain the continuous use.


I'll try to slow it down and see if it helps, thanks for the advice.

Erik

--
Erik Nørgaard
Ph: +34.666334818/+34.915211157  http://www.locolomo.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: System crashes under heavy disk i/o

2009-12-17 Thread Erik Norgaard

Mel Flynn wrote:

Turn down operating mode via atacontrol. If using dump(8) use the cache 
feature and/or do the backup from live disk, so no other services are running 
and disk isn't accessed other then by dump.


Thanks, is there a way to set UDMA mode at boot?

BR, Erik
--
Erik Nørgaard
Ph: +34.666334818/+34.915211157  http://www.locolomo.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org