Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Feb 2000 12:18:13 +0300
From:      "Isaev M.  Alex" <sleepy@spylog.ru>
To:        AIC7xxx@FreeBSD.ORG
Subject:   I have a trouble wich SCSI disks (AIC7896 adapter)
Message-ID:  <00021713022701.03551@sleepy.intra.virus.ru>

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

I have a trouble wich SCSI disk (AIC 7896, Kernel 2.2.14-SMP).
If i write to disk use programm "test.c", i have 
a very horrible statistics.
What this and can i fix it?
-cut-
 vmstat -n 1
BEFORE RUNNING
   procs                      memory    swap          io     system         cpu
 r  b  w   swpd   free   buff  cache  si  so    bi    bo   in    cs  us  sy  id
 0 12  1   3476   2732 139960  66720   0   0   213    48  190   280   7   5  88
 0  8  0   3476   3356 136008  70340   0   0   950   211  752  2152  15  26  59
 0  4  0   3476   2936 135492  71108   0   0   252     0  415  2265  25  40  35
 0  6  0   3476   4000 131572  73908   0   0   749   107  423  2840  27  46  27
 0  4  1   3476   1648 131332  76148   0   0   610     2  394  1703  24  45  31
 2  5  0   3476   1232 127136  81996   0   0  1572     0  479  2361  21  53  26
 0  5  0   3476   2152 121744  86544   0   0  1447   179  528  1370  17  36  47
 0  7  0   3476   2936 120852  87424   0   0   319    23  428  2065  21  31  48
 1  3  0   3476   1676 120472  88084   0   0   186   256  436  2253  19  38  43
 0  4  1   3476   1124 119960  89980   0   0   606    96  465  2659  29  29  42
 0  7  2   3476   2660 111652  96816   0   0  1705   246  837  1972  25  14  62
 0  1  0   3476   1392 109476 100300   0   0   889    56  501  1021  22  17  61
 1  3  0   3476   2048 107428 102008   0   0   490    49  492  2072  17  26  57
 1  4  0   3476   3128 102952 105184   0   0   907    93  471  1558  13  22  65
 0  3  0   3476   2744  92204 116460   0   0  2868    65  805  1532  29  16  55
 2  6  0   3476   2432  84028 124116 100   0  1924    57  733  2081  29  16  55
 1  2  0   3476   3128  79868 127380   0   0   888   174  547  1935  18  14  69
 0  4  0   3476   2152  75648 132600   0   0  1378    65  672  1705  22  13  64
 1  2  0   3476   2344  73600 134484   0   0   545    65  567  2253  15  26  59
 0  4  0   3476   2152  75648 132600   0   0  1378    65  672  1705  22  13  64
 1  2  0   3476   2344  73600 134484   0   0   545    65  567  2253  15  26  59
 1  3  0   3476   2696  70016 137484   0   0   814   101  561  1845  19  16  65
 0  4  0   3476   2496  59660 147384   0   0  2540   134  585  1258  26  20  54
 1  5  0   3476   1396  53260 154968   0   0  1919    29  760  1400  14  21  65
AFTER RUNNING
 0  5  1   3476   2264  51084 156232   0   8   322  2644  497  1059   2  31  67
 0  5  2   3612   1488  51080 157144   0 128   194  2004  423   792   1  10  89
 0  4  2   3612   2484  56876 150692   0   0    10  2029  296   328   2  36  62
 0  4  3   3612   3172  68168 138720   0   0     1  2049  247   269   0  11  89
 0  4  3   3612   1136  80496 128432   0   0     0  2080  241   264   1  12  87
 0  4  2   3612   1112  88380 120572   0   0     1  1743  242   235   1   8  91
 0  4  2   3728   3080  98384 108720   0 116     4  2189  259   182   0  15  85
 0  4  2   3728   3096 110252  96836   0   0     0  2064  252   258   1  11  88
 0  4  2   3728   3140 116160  90888   0   0     0  2064  257   291   1   8  91
 0  4  2   3728   3092 122904  84084   0   0     0  2042  244   264   0   9  90
 0  4  1   3728   3188 130936  75756   0   0     8  2097  285   200   2  13  86
 0  3  2   3728   3140 133256  73396   0   0     0  2005  239   264   0   8  91
 0  3  2   3728   3156 134752  71848   0   0     0  2064  240   263   0  10  90
 0  3  2   3728   3176 135844  70708   0   0     0  2004  249   264   1   9  90
 0  3  2   3728   2468 140464  66732   0   0     0  2000  249   280   0  10  90
 0  3  2   3728   2376 156388  50520   0   0     0  2183  249   278   0  15  84
 0  3  2   3728   2444 159428  47340   0   0     0   817  275   316   0   5  94
 0 26  1   3728   2880 168044  38020   0   0    86  1708  336   524   2  11  86
 0 16  1   3728   1704 169956  36988   0   0  1574  1500  547   746   2   9  89
 0  4  2   3856   3192 194668  10544   0 128   169  3117  413   383   1  30  69
 0  4  2   3856   3196 194720  10484   0   0     0  2080  251   266   0   9  91
 0  4  2   3856   3160 194772  10468   0   0     0  2080  241   275   1   8  91
 0  4  2   3856   3136 194804  10460   0   0     0  2048  251   260   1   7  91
 0  4  2   3856   3100 194856  10444   0   0     0  2048  241   267   1   8  90
-cut-

disks:
(scsi0) <Adaptec AIC-7896/7 Ultra2 SCSI host adapter> found at PCI 12/0
(scsi0) Wide Channel A, SCSI ID=7, 32/255 SCBs
(scsi0) Downloading sequencer code... 385 instructions downloaded
(scsi1) <Adaptec AIC-7896/7 Ultra2 SCSI host adapter> found at PCI 12/1
(scsi1) Wide Channel B, SCSI ID=7, 32/255 SCBs
(scsi1) Downloading sequencer code... 385 instructions downloaded
scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.21/3.2.4
       <Adaptec AIC-7896/7 Ultra2 SCSI host adapter>
scsi1 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.21/3.2.4
       <Adaptec AIC-7896/7 Ultra2 SCSI host adapter>
scsi : 2 hosts.
(scsi0:0:0:0) Synchronous at 80.0 Mbyte/sec, offset 31.
  Vendor: IBM       Model: DMVS36V           Rev: 0250
  Type:   Direct-Access                      ANSI SCSI revision: 03
Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
(scsi0:0:1:0) Synchronous at 80.0 Mbyte/sec, offset 31.
  Vendor: IBM       Model: DMVS36V           Rev: 0100
  Type:   Direct-Access                      ANSI SCSI revision: 03
Detected scsi disk sdb at scsi0, channel 0, id 1, lun 0
scsi : detected 2 SCSI disks total.
SCSI device sda: hdwr sector= 512 bytes. Sectors= 71687340 [35003 MB] [35.0 GB]
SCSI device sdb: hdwr sector= 512 bytes. Sectors= 71687340 [35003 MB] [35.0 GB]




--test.c---
#include <stdio.h>

#define BLOCK (1024*1024)
#define COUNT (1024)

main()
 {
  FILE * f;
  char buffer[BLOCK];
  int i;
  f=fopen("test","wb");
  if (f==NULL)
   {
    puts("Error !");
    return -1;
   }
  for (i=0;i<COUNT;i++)
      fwrite(buffer,BLOCK,1,f);
  fclose(f);
  return 0;
 }         
---test.c---

-- 
    Isaev M. Alex
System Administrator
   www.spylog.com
 sleepy@spylog.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe aic7xxx" in the body of the message




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