Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jun 1996 11:33:26 +0200
From:      peppe@unipg.it (Giuseppe Vitillaro)
To:        freebsd-hackers@freebsd.org
Subject:   paging activity on Adaptec 1542B
Message-ID:  <9606120933.AA11213@egeo.unipg.it>

next in thread | raw e-mail | index | archive | help

  I'm trying to use an old SCSI Adaptec 1542b controller
  to setup my new Pentium FreeBSD WS, with FreeBSD 2.1.0R.
  The controller alredy has the updated 3.20 Adaptec BIOS
  and firmware.

  I'm just testing the configuration using a little program
  that just produce a lot of paging activity.

  Here is the program:
================================================
#include <stdlib.h>
#include <stdio.h>
#include <time.h>

#define LEN 20*1024*1024

int main ( int argc, char **argv )
{
  char *p;
  int i=0,j;
  time_t t;

  p = malloc(LEN);
  if (!p) {
    printf("Alloc error\n");
    exit(1);
  }

  while(++i) {
    for ( j=0; j < LEN; j++ )
        p[j] = 0xAA;

    sleep(60);

    time(&t);

    printf ("%010d - %s", i, ctime(&t));
    fflush(stdout);
  }

  free(p);

  return ( 0 );
}
================================================

The machines has 16Mb RAM, so this innocent program
is just stressing the machine by continuosly paging in
and out.

The machine work fine for one o two days, then panics
with messages like:

Jun 11 19:26:04 phoenix /kernel: swap_pager_finish: I/O error, clean of page 2e7000 failed
Jun 11 19:26:04 phoenix /kernel: sd0(aha0:0:0): timed out
Jun 11 19:26:04 phoenix /kernel: adapter not taking commands.. frozen?!
Jun 11 19:26:05 phoenix /kernel: Debugger("aha1542") called.
Jun 11 19:26:05 phoenix /kernel:
Jun 11 19:26:05 phoenix /kernel: sd0(aha0:0:0): timed out
Jun 11 19:26:05 phoenix /kernel: adapter not taking commands.. frozen?!
Jun 11 19:26:05 phoenix /kernel: Debugger("aha1542") called.
Jun 11 19:26:05 phoenix /kernel:  AGAIN
Jun 11 19:26:05 phoenix /kernel: aha0: MBO 02 and not 00 (free)
Jun 11 19:26:05 phoenix /kernel: sd0(aha0:0:0): timed out
Jun 11 19:26:05 phoenix /kernel: adapter not taking commands.. frozen?!
Jun 11 19:26:05 phoenix /kernel: Debugger("aha1542") called.
Jun 11 19:26:05 phoenix /kernel: 
Jun 11 19:26:06 phoenix /kernel: sd0(aha0:0:0): timed out
Jun 11 19:26:06 phoenix /kernel: adapter not taking commands.. frozen?!
Jun 11 19:26:06 phoenix /kernel: Debugger("aha1542") called.
Jun 11 19:26:06 phoenix /kernel:  AGAIN 
Jun 11 19:26:06 phoenix /kernel: aha0: MBO 02 and not 00 (free)
Jun 11 19:26:06 phoenix /kernel: sd0(aha0:0:0): timed out
Jun 11 19:26:06 phoenix /kernel: adapter not taking comman

I already tried to change the disk (thinking an HW error) but
I had the same problem again. The problem doesn't seems to
present if the machine is not paging so much.

Looking to this list I found another reference (but to a 2940 I
believe) on the same problem.

Any idea on what may be wrong? I suspect a SW problem, but
may be at the same time an HW problem.

Thank in advance, Peppe.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9606120933.AA11213>